diff options
author | Eddy Wu <[email protected]> | 2020-11-07 14:47:22 +0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-11-08 11:18:39 -0800 |
commit | b4e00444cab4c3f3fec876dc0cccc8cbb0d1a948 (patch) | |
tree | 72e12c5023507b955eed888011eca19f579a38ed /scripts/gdb/linux/utils.py | |
parent | 9dbc1c03eeb534b82647cccb059aca0685d449a7 (diff) |
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 <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions