]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] uclinux: correctly remap bin_fmtflat exe allocated mem regions
authorGreg Ungerer <gerg@snapgear.com>
Wed, 7 Feb 2007 02:03:08 +0000 (12:03 +1000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 9 Feb 2007 18:45:33 +0000 (10:45 -0800)
commit72613e5f44adf2fe2684a5f1c1b62c2ee9984f40
tree14cb1a018093cd1b5a0924850d36106cc0cd40d9
parentc051b01129560ea02ea2cebdf00db0721cc9a618
[PATCH] uclinux: correctly remap bin_fmtflat exe allocated mem regions

remap() the region we get from mmap() to mark the fact that we are
using all of the available slack space. Any slack space is used
to form a simple brk region, and potentially more stack space than
requested at load time.

Any searches of the vma chain may well fail looking for
stack (and especially arg) addresses if the remaping is not done.
The simplest example is /proc/<pid>/cmdline, since the args
are pretty much always at the top of the data/bss/stack region.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_flat.c