android_kernel_msm-6.1_noth.../kernel/sched
Shaleen Agrawal d7f85c8ec1 sched/walt: Prevent cgroup corruption in wake_up_new_task
Ensure that the cgroup attachment is only applied to a task that has
been initialized by WALT. If an uninitialized task is added to the
cgroup, it could lead to grp->tasks being corrupted once the task is
initialized.

Take the situation where cgroup_attach is happening on a task that has
not yet woken up, and the task is being attached to top-app cgroup.
In the present scenario, such a task would be added to grp->tasks list.

Then, when the task is woken up for the first time, WALT initialization
would INIT_LIST_HEAD(wts->grp_list), which is normally ok,
but for a task that has already inserted in linked list headed by
grp->tasks, it ends up corrupting the list.

Change-Id: Ic94b62cb15f4747576b76b7bdac867dcf9c47741
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
2023-02-03 16:17:44 -08:00
..
walt sched/walt: Prevent cgroup corruption in wake_up_new_task 2023-02-03 16:17:44 -08:00
android.h
autogroup.c sched/all: Change all BUG_ON() instances in the scheduler to WARN_ON_ONCE() 2022-08-12 11:25:10 +02:00
autogroup.h
build_policy.c
build_utility.c
clock.c
completion.c sched/completion: Add wait_for_completion_state() 2022-09-07 21:53:49 +02:00
core.c Linux 6.1-rc6 2022-11-21 08:39:18 +00:00
core_sched.c sched: Rename task_running() to task_on_cpu() 2022-09-07 21:53:47 +02:00
cpuacct.c
cpudeadline.c sched/core: Introduce sched_asym_cpucap_active() 2022-08-02 12:32:45 +02:00
cpudeadline.h
cpufreq.c
cpufreq_schedutil.c Linux 6.1-rc7 2022-11-28 16:47:55 +00:00
cpupri.c Merge 30c999937f ("Merge tag 'sched-core-2022-10-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip") into android-mainline 2022-10-12 10:13:13 +02:00
cpupri.h
cputime.c ANDROID: Sched: Add vendor hooks required for WALT 2022-11-08 22:13:09 +00:00
deadline.c sched: Introduce struct balance_callback to avoid CFI mismatches 2022-10-17 16:41:25 +02:00
debug.c Merge 0192445cb2 ("arch: mm: rename FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER") into android-mainline 2022-10-20 11:55:38 +02:00
fair.c ANDROID: Sched: Add vendor hooks required for WALT 2022-11-08 22:13:09 +00:00
features.h
idle.c context_tracking: Take idle eqs entrypoints over RCU 2022-07-05 13:32:16 -07:00
isolation.c
loadavg.c
Makefile Merge keystone/android-mainline-keystone-qcom-release.6.0 (dcb3fbd) into msm-pineapple 2022-10-23 23:33:09 -07:00
membarrier.c
OWNERS
pelt.c
pelt.h
psi.c PSI updates for v6.1: 2022-10-14 13:03:00 -07:00
rt.c Merge c70055d8d9 ("Merge tag 'sched_urgent_for_v6.1_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip") into android-mainline 2022-10-25 16:06:47 +02:00
sched-pelt.h
sched.h ANDROID: sched: gki: add padding to some structs to support WALT 2022-10-25 23:56:24 +00:00
smp.h
stats.c
stats.h sched/psi: Add PSI_IRQ to track IRQ/SOFTIRQ pressure 2022-09-09 11:08:32 +02:00
stop_task.c sched: Add update_current_exec_runtime helper 2022-08-27 00:05:35 +02:00
swait.c
topology.c ANDROID: Sched: Add vendor hooks required for WALT 2022-11-08 22:13:09 +00:00
vendor_hooks.c ANDROID: sched/cpuset: Add vendor hook to change tasks affinity 2022-11-16 10:25:14 -08:00
wait.c
wait_bit.c wait_on_bit: add an acquire memory barrier 2022-08-26 09:30:25 -07:00