]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: make stack guard page logic use vm_prev pointer
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 23:49:40 +0000 (16:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:41:45 +0000 (16:41 -0700)
commit42fd8fdce2d33d0d84ce850b4d63a2385b8d889a
tree2fa7ef1043b708d64c6241ac52f9b993b2e20b39
parentb3ef5ce3d1bc48506a1ac5b046de0ccda7b02d07
mm: make stack guard page logic use vm_prev pointer

commit 0e8e50e20c837eeec8323bba7dcd25fe5479194c upstream.

Like the mlock() change previously, this makes the stack guard check
code use vma->vm_prev to see what the mapping below the current stack
is, rather than have to look it up with find_vma().

Also, accept an abutting stack segment, since that happens naturally if
you split the stack with mlock or mprotect.

Tested-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/memory.c