Re: [PATCH] fork: fix copy_process(CLONE_PARENT) race with the exiting ->real_parent

From: Linus Torvalds
Date: Sun Nov 08 2020 - 14:19:37 EST


On Fri, Nov 6, 2020 at 10:47 PM Eddy Wu <itseddy0402@xxxxxxxxx> wrote:
>
> 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.

Applied. Thanks,

Linus