]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mmap topdown fix for large stack limit, large allocation
authorChris Wright <chrisw@osdl.org>
Wed, 22 Jun 2005 00:14:52 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:16 +0000 (18:46 -0700)
commit0ad95659ac742ee4b87844e1ba7b0c06c2c6eb98
treec527691510f5a2b757eac424c5671704084fc9eb
parente6562f6d534162256c02a6618ef16dcff2ebb462
[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 <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c