]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fix sys_getppid oopses on debug kernel
authorKirill Korotaev <dev@openvz.org>
Fri, 24 Nov 2006 02:08:27 +0000 (03:08 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 24 Nov 2006 02:08:27 +0000 (03:08 +0100)
commit7eeeab0403c1d0dffbbe236e229ab98fde0aacac
tree0d5e1ec5dd71c1953a706f3d837f7f1fd3a1b286
parentd6042b2ec9446e7955d72a2155a4dff473ccc511
fix 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.

Signed-off-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
kernel/timer.c