Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit b1e82065 authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

sched: Fix yet more sched_fork() races

Where commit 4ef0c5c6 ("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 13765de8 ("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: 4ef0c5c6

 ("kernel/sched: Fix sched_fork() access an invalid sched_task_group")
Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarTadeusz Struk <tadeusz.struk@linaro.org>
Tested-by: default avatarZhang Qiao <zhangqiao22@huawei.com>
Tested-by: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://lkml.kernel.org/r/YgoeCbwj5mbCR0qA@hirez.programming.kicks-ass.net
parent 754e0b0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment