OSDN Git Service

[PATCH] prevent do_brk() from allocating below mmap_min_addr
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2007 18:14:03 +0000 (19:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2007 18:14:03 +0000 (19:14 +0100)
commit69a1b88e83cbabba2ff07467ee80b06aab5067dd
tree04be702635be1d7e7b0438ad7749dc07794f600a
parentd5d88bbfbaab2bcdd83c43e54b084951671fa327
[PATCH] prevent do_brk() from allocating below mmap_min_addr

This is the 2.4 equivalent of the following 2.6 patch by Eric Paris :
ecaf18c15aac8bb9bed7b7aa0e382fe252e275d5

Given a specifically crafted binary do_brk() can be used to get low
pages available in userspace virtually memory and can thus be used to
circumvent the mmap_min_addr low memory protection.  Add security checks
in do_brk().

Signed-off-by: Willy Tarreau <w@1wt.eu>
mm/mmap.c