Home
last modified time | relevance | path

Searched hist:b4e00444cab4c3f3fec876dc0cccc8cbb0d1a948 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/kernel/
H A Dfork.cdiff b4e00444cab4c3f3fec876dc0cccc8cbb0d1a948 Sat Nov 07 00:47:22 CST 2020 Eddy Wu <itseddy0402@gmail.com> 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: Eddy Wu <eddy_wu@trendmicro.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>