View | Details | Raw Unified | Return to bug 48728
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +8 lines)
Line  Link Here
0
-- 2.4.23aa1/mm/mremap.c.~1~   2003-12-13 01:32:30.000000000 +0100
0
++ 2.4.23aa1/mm/mremap.c       2003-12-13 03:30:47.000000000 +0100
Lines 279-284 unsigned long do_mremap(unsigned long ad Link Here
279
279
280
               if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len)
280
               if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len)
281
                       goto out;
281
                       goto out;
282
               /*
283
                * Allow new_len == 0 only if new_addr == addr
284
                * to preserve truncation in place (that was working
285
                * safe and some app may depend on it).
286
                */
287
               if (unlikely(!new_len && new_addr != addr))
288
                       goto out;
282
289
283
               /* Check if the location we're moving into overlaps the
290
               /* Check if the location we're moving into overlaps the
284
                * old location at all, and fail if it does.
291
                * old location at all, and fail if it does.

Return to bug 48728