From: Greg Ungerer Date: Wed, 7 Feb 2007 02:03:08 +0000 (+1000) Subject: [PATCH] uclinux: correctly remap bin_fmtflat exe allocated mem regions X-Git-Tag: v2.6.21-rc1~83^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72613e5f44adf2fe2684a5f1c1b62c2ee9984f40;p=pandora-kernel.git [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//cmdline, since the args are pretty much always at the top of the data/bss/stack region. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed