aboutsummaryrefslogtreecommitdiff
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
authorKirill Korotaev <dev@openvz.org>2006-11-24 03:08:27 +0100
committerAdrian Bunk <bunk@stusta.de>2006-11-24 03:08:27 +0100
commit7eeeab0403c1d0dffbbe236e229ab98fde0aacac (patch)
tree0d5e1ec5dd71c1953a706f3d837f7f1fd3a1b286 /fs/sysfs/file.c
parentd6042b2ec9446e7955d72a2155a4dff473ccc511 (diff)
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>
Diffstat (limited to 'fs/sysfs/file.c')
0 files changed, 0 insertions, 0 deletions