Skip to content
Commit b4e00444 authored by Eddy Wu's avatar Eddy Wu Committed by Linus Torvalds
Browse files

fork: fix copy_process(CLONE_PARENT) race with the exiting ->real_parent



current->group_leader->exit_signal may change during copy_process() if
current->real_parent exits.

Move the assignment inside tasklist_lock to avoid the race.

Signed-off-by: default avatarEddy Wu <eddy_wu@trendmicro.com>
Acked-by: default avatarOleg Nesterov <oleg@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9dbc1c03
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment