From: Linus Torvalds Date: Fri, 20 Aug 2010 23:49:40 +0000 (-0700) Subject: mm: make stack guard page logic use vm_prev pointer X-Git-Tag: v2.6.36-rc2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e8e50e20c837eeec8323bba7dcd25fe5479194c;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed