summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEddy Wu <itseddy0402@gmail.com>2020-11-07 14:47:22 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-10 12:37:32 +0100
commitbeeb658cfd3544ceca894375c36b6572e4ae7a5f (patch)
treea5dbc820b5ab4abfafd454f6968b3ff55d4a9063 /drivers
parent642181fe3567419d84d2457b58f262c37467f525 (diff)
fork: fix copy_process(CLONE_PARENT) race with the exiting ->real_parent
commit b4e00444cab4c3f3fec876dc0cccc8cbb0d1a948 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions