Skip to content
Commit 7eeeab04 authored by Kirill Korotaev's avatar Kirill Korotaev Committed by Adrian Bunk
Browse files

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: default avatarKirill Korotaev <dev@openvz.org>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent d6042b2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment