diff options
author | Kirill Korotaev <dev@openvz.org> | 2006-11-24 03:08:27 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-11-24 03:08:27 +0100 |
commit | 7eeeab0403c1d0dffbbe236e229ab98fde0aacac (patch) | |
tree | 0d5e1ec5dd71c1953a706f3d837f7f1fd3a1b286 /fs/sysfs/file.c | |
parent | d6042b2ec9446e7955d72a2155a4dff473ccc511 (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