WSL2-Linux-Kernel/kernel/sched
Peter Zijlstra b1e8206582 sched: Fix yet more sched_fork() races
Where commit 4ef0c5c6b5 ("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 13765de814 ("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: 4ef0c5c6b5 ("kernel/sched: Fix sched_fork() access an invalid sched_task_group")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Tested-by: Zhang Qiao <zhangqiao22@huawei.com>
Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://lkml.kernel.org/r/YgoeCbwj5mbCR0qA@hirez.programming.kicks-ass.net
2022-02-19 11:11:05 +01:00
..
Makefile sched, kcsan: Enable memory barrier instrumentation 2021-12-09 16:42:28 -08:00
autogroup.c sched/fair: Prevent dead task groups from regaining cfs_rq's 2021-11-11 13:09:33 +01:00
autogroup.h
clock.c
completion.c
core.c sched: Fix yet more sched_fork() races 2022-02-19 11:11:05 +01:00
core_sched.c sched/core: Accounting forceidle time for all tasks except idle task 2022-01-18 12:09:59 +01:00
cpuacct.c sched/cpuacct: Make user/system times in cpuacct.stat more precise 2021-11-23 09:55:22 +01:00
cpudeadline.c
cpudeadline.h
cpufreq.c
cpufreq_schedutil.c sched/fair: Replace CFS internal cpu_util() with cpu_util_cfs() 2021-12-11 09:10:00 +01:00
cpupri.c
cpupri.h
cputime.c Peter Zijlstra says: 2022-01-11 17:14:59 -08:00
deadline.c
debug.c sched/core: Forced idle accounting 2021-11-17 14:49:00 +01:00
fair.c sched/fair: Fix all kernel-doc warnings 2022-01-18 12:09:59 +01:00
features.h
idle.c
isolation.c
loadavg.c
membarrier.c sched/membarrier: Fix membarrier-rseq fence command missing from query bitmask 2022-01-25 22:30:25 +01:00
pelt.c
pelt.h sched/pelt: Relax the sync of util_sum with util_avg 2022-01-18 12:09:58 +01:00
psi.c psi: fix "defined but not used" warnings when CONFIG_PROC_FS=n 2022-01-30 09:56:58 +02:00
rt.c sched/rt: Try to restart rt period timer when rt runtime exceeded 2021-12-07 15:14:10 +01:00
sched-pelt.h
sched.h sched/fair: Replace CFS internal cpu_util() with cpu_util_cfs() 2021-12-11 09:10:00 +01:00
smp.h
stats.c
stats.h psi: Fix PSI_MEM_FULL state when tasks are in memstall and doing reclaim 2021-11-17 14:49:00 +01:00
stop_task.c
swait.c
topology.c Merge branch 'akpm' (patches from Andrew) 2021-11-06 14:08:17 -07:00
wait.c wait: add wake_up_pollfree() 2021-12-09 10:49:56 -08:00
wait_bit.c