diff options
| author | Eddy Wu <itseddy0402@gmail.com> | 2020-11-07 14:47:22 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-10 10:22:20 +0100 |
| commit | 33175e2d8fdf7b07be9691ee7747a3982dcf52cd (patch) | |
| tree | 4a478e10958b3049ba014e2d61347858a36e92d0 /tools/perf/scripts | |
| parent | 81f26642406c16bf52015683511c814ecbe2abc3 (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 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
