]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:41:44 +0000 (16:41 -0700)
commitb3ef5ce3d1bc48506a1ac5b046de0ccda7b02d07
treed0ab396aaad08b4d0cd564e423631efe635750f6
parent378776c287c66b32ff9a62c34a9715f702dc336e
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