From: Chris Wright Date: Wed, 22 Jun 2005 00:14:52 +0000 (-0700) Subject: [PATCH] mmap topdown fix for large stack limit, large allocation X-Git-Tag: v2.6.13-rc4~130^2~202^2~150 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73219d178051691a56d57184d8c7f6d0cbe3c5c1;p=pandora-kernel.git [PATCH] mmap topdown fix for large stack limit, large allocation The topdown changes in 2.6.12-rc1 can cause large allocations with large stack limit to fail, despite there being space available. The mmap_base-len is only valid when len >= mmap_base. However, nothing in topdown allocator checks this. It's only (now) caught at higher level, which will cause allocation to simply fail. The following change restores the fallback to bottom-up path, which will allow large allocations with large stack limit to potentially still succeed. Signed-off-by: Chris Wright Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed