commit | 0e8e50e20c837eeec8323bba7dcd25fe5479194c | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@linux-foundation.org> | Fri Aug 20 16:49:40 2010 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Sat Aug 21 08:50:00 2010 -0700 |
tree | 12c7ec767a4a8508be33442c6fb55c28a26c94cd | |
parent | 7798330ac8114c731cfab83e634c6ecedaa233d7 [diff] |
mm: make stack guard page logic use vm_prev pointer 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>