mm: make the mlock() stack guard page checks stricter
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 23:39:25 +0000 (16:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Aug 2010 15:49:50 +0000 (08:49 -0700)
commit7798330ac8114c731cfab83e634c6ecedaa233d7
tree76c15db91609ad3355add2a6f23823ea27cf920d
parent297c5eee372478fc32fec5fe8eed711eedb13f3d
mm: make the mlock() stack guard page checks stricter

If we've split the stack vma, only the lowest one has the guard page.
Now that we have a doubly linked list of vma's, checking this is trivial.

Tested-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mlock.c