https://github.com/torvalds/linux
Revision 8057d763ed7a7365dc3402db0aed7c87d8531ecb authored by Rusty Russell on 29 August 2007, 20:35:08 UTC, committed by Linus Torvalds on 30 August 2007, 16:58:22 UTC
If the stack pointer is 0xc057a000, then the first stack page is at
0xc0579000 (the stack pointer is decremented before use).  Not
calculating this correctly caused guests with CONFIG_DEBUG_PAGEALLOC=y
to be killed with a "bad stack page" message: the initial kernel stack
was just proceeding the .smp_locks section which
CONFIG_DEBUG_PAGEALLOC marks read-only when freeing.

Thanks to Frederik Deweerdt for the bug report!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b07d68b
History
Tip revision: 8057d763ed7a7365dc3402db0aed7c87d8531ecb authored by Rusty Russell on 29 August 2007, 20:35:08 UTC
Fix lguest page-pinning logic ("lguest: bad stack page 0xc057a000")
Tip revision: 8057d76
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 607 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 89.3 KB
Kbuild -rw-r--r-- 1.5 KB
MAINTAINERS -rw-r--r-- 91.0 KB
Makefile -rw-r--r-- 50.1 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top