mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 05:14:35 +00:00
proc_fork_connector() uses ->real_parent lockless. This is not safe if copy_process() was called with CLONE_THREAD or CLONE_PARENT, in this case the parent != current can go away at any moment. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Vladimir Zapolskiy <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Evgeniy Polyakov <[email protected]> Cc: Evgeniy Polyakov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David S. Miller <[email protected]>