diff options
| author | Oleg Nesterov <[email protected]> | 2023-08-24 14:32:01 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-10-04 17:41:56 +0000 |
| commit | d639cf4abb4d171ab2456904da5668c42b5c1937 (patch) | |
| tree | 4f4d1c2c495b08807ddbe2ee0dc583e3346234fe /init/init_task.c | |
| parent | introduce __next_thread(), fix next_tid() vs exec() race (diff) | |
| download | kernel-d639cf4abb4d171ab2456904da5668c42b5c1937.tar.gz kernel-d639cf4abb4d171ab2456904da5668c42b5c1937.zip | |
change next_thread() to use __next_thread() ?: group_leader
This relies on fact that group leader is always the 1st entry in the
signal->thread_head list.
With or without this change, if the lockless next_thread(last_thread)
races with exec it can return the old or the new leader.
We are almost ready to kill task->thread_group, after this change its
only user is thread_group_empty().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions
