]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sys_getppid oopses on debug kernel
authorKirill Korotaev <dev@sw.ru>
Mon, 14 Aug 2006 06:24:23 +0000 (23:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Aug 2006 21:13:31 +0000 (14:13 -0700)
commit024bd8b8e0a55a53422d5f6138974b2c83f0a73e
tree0e1249901619185a415a0804ceeca6f65db2a627
parentbb417c4bad96b07f075b98f874fb28cf258f8065
sys_getppid oopses on debug kernel

sys_getppid() optimization can access a freed memory.  On kernels with
DEBUG_SLAB turned ON, this results in Oops.  As Dave Hansen noted, this
optimization is also unsafe for memory hotplug.

So this patch always takes the lock to be safe.

[oleg@tv-sign.ru: simplifications]

Signed-off-by: Kirill Korotaev <dev@openvz.org>
Cc: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/timer.c