mm: make the mlock() stack guard page checks stricter
commit259756fcc66e2d6dd732c0b4ff99f825e69b3ba2
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 23:39:25 +0000 (20 16:39 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:43:38 +0000 (26 16:43 -0700)
tree202d8e4d51bd6316b99eb637e76c5fd4885b5907
parent159e767472c7febb546db582327ff8bc14c06b98
mm: make the mlock() stack guard page checks stricter

commit 7798330ac8114c731cfab83e634c6ecedaa233d7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/mlock.c