diff options
| author | Peter Zijlstra <[email protected]> | 2022-02-14 09:16:57 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2022-02-19 10:11:05 +0000 |
| commit | b1e8206582f9d680cff7d04828708c8b6ab32957 (patch) | |
| tree | 75b3f3e6b2a396995b68db17b96efa51b4e499a6 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | Linux 5.17-rc4 (diff) | |
| download | kernel-b1e8206582f9d680cff7d04828708c8b6ab32957.tar.gz kernel-b1e8206582f9d680cff7d04828708c8b6ab32957.zip | |
sched: Fix yet more sched_fork() races
Where commit 4ef0c5c6b5ba ("kernel/sched: Fix sched_fork() access an
invalid sched_task_group") fixed a fork race vs cgroup, it opened up a
race vs syscalls by not placing the task on the runqueue before it
gets exposed through the pidhash.
Commit 13765de8148f ("sched/fair: Fix fault in reweight_entity") is
trying to fix a single instance of this, instead fix the whole class
of issues, effectively reverting this commit.
Fixes: 4ef0c5c6b5ba ("kernel/sched: Fix sched_fork() access an invalid sched_task_group")
Reported-by: Linus Torvalds <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Tadeusz Struk <[email protected]>
Tested-by: Zhang Qiao <[email protected]>
Tested-by: Dietmar Eggemann <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
