Jiri Kosina a5b4592cf7 brk: make sys_brk() honor COMPAT_BRK when computing lower bound
Fix a regression introduced by

commit 4cc6028d4040f95cdb590a87db478b42b8be0508
Author: Jiri Kosina <jkosina@suse.cz>
Date:   Wed Feb 6 22:39:44 2008 +0100

    brk: check the lower bound properly

The check in sys_brk() on minimum value the brk might have must take
CONFIG_COMPAT_BRK setting into account.  When this option is turned on
(i.e.  we support ancient legacy binaries, e.g.  libc5-linked stuff), the
lower bound on brk value is mm->end_code, otherwise the brk start is
allowed to be arbitrarily shifted.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-06-06 11:29:09 -07:00
..
2008-03-19 18:53:35 -07:00
2008-03-19 18:53:35 -07:00
2008-06-06 11:29:09 -07:00
2008-04-17 20:05:36 +02:00
2008-05-24 09:56:07 -07:00
2007-10-20 01:27:18 +02:00
2008-04-30 08:29:55 -07:00
2008-04-28 08:58:18 -07:00
2007-10-18 14:37:31 -07:00
2007-05-21 09:18:19 -07:00
2008-05-24 09:56:09 -07:00
2008-02-05 09:44:19 -08:00
2007-10-20 01:27:18 +02:00
2008-04-28 08:58:18 -07:00
2008-05-19 20:55:25 +03:00
2008-05-22 19:52:18 +03:00
2008-05-24 09:56:09 -07:00
2007-11-14 18:45:41 -08:00
2008-05-13 08:02:23 -07:00