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)
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

diff --cc mm/mlock.c
Simple merge