From: Kirill Korotaev Date: Mon, 14 Aug 2006 06:24:23 +0000 (-0700) Subject: [PATCH] sys_getppid oopses on debug kernel X-Git-Tag: v2.6.18-rc5~88 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6997a6faaa129a1c91775f7344c8d371a05178ea;p=pandora-kernel.git [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 Cc: Cc: Dave Hansen Signed-off-by: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed