Kirill Korotaev 6997a6faaa [PATCH] 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: <stable@kernel.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>
2006-08-14 12:54:29 -07:00
..
2006-07-01 05:43:06 -04:00
2005-04-16 15:20:36 -07:00
2006-08-06 08:57:46 -07:00
2006-03-26 08:57:03 -08:00
2005-10-08 15:00:57 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:04 -07:00
2006-08-14 12:54:28 -07:00
2005-04-16 15:20:36 -07:00
2006-04-19 16:27:18 -07:00
2006-07-10 13:24:25 -07:00