android_kernel_xiaomi_sm7250/kernel/sched
Pavankumar Kondeti 029925a787 sched/core: Fix use after free issue in is_sched_lib_based_app()
is_sched_lib_based_app() function introduced by 'commit d43b69c4ad2a
("sched/core: fix userspace affining threads incorrectly")' traverses
all the executable VMA regions of a task for which the affinity change
is requested by the userspace. The mm->mmap_sem lock is acquired to
lock the VMA regions, however the task mm itself can go away when
the task is exited. The get_task_struct() does not prevent this from
happening. Add protection by incrementing task's mm reference count.

Change-Id: I39d835a8d7d53d9b9eca90baf73d3fcfad9d164b
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2022-11-12 11:25:05 +00:00
..
autogroup.c
autogroup.h
boost.c
clock.c
completion.c
core_ctl.c
core.c sched/core: Fix use after free issue in is_sched_lib_based_app() 2022-11-12 11:25:05 +00:00
cpuacct.c
cpudeadline.c
cpudeadline.h
cpufreq_schedutil.c kernel: sched: merge changes from LA.UM.9.12.R2.10.00.00.685.011 2022-11-12 11:25:03 +00:00
cpufreq.c
cpupri.c
cpupri.h
cputime.c
deadline.c BACKPORT: sched/core: Further clarify sched_class::set_next_task() 2022-11-12 11:20:56 +00:00
debug.c
fair.c sched: fine tune task placement for prioritized tasks 2022-11-12 11:25:05 +00:00
features.h
idle.c BACKPORT: sched/core: Further clarify sched_class::set_next_task() 2022-11-12 11:20:56 +00:00
isolation.c
loadavg.c
Makefile
membarrier.c
OWNERS
pelt.c
pelt.h
psi.c Revert "psi: Use deferrable psi_avgs_work" 2022-11-12 11:20:35 +00:00
rt.c sched: reduce softirq conflicts with RT 2022-11-12 11:25:01 +00:00
sched_avg.c
sched-pelt.h
sched.h sched: fine tune task placement for prioritized tasks 2022-11-12 11:25:05 +00:00
stats.c
stats.h
stop_task.c BACKPORT: sched/core: Further clarify sched_class::set_next_task() 2022-11-12 11:20:56 +00:00
swait.c
topology.c sched/walt: Fix negative count of sched_asym_cpucapacity static key 2022-11-12 11:24:57 +00:00
tune.c sched: separate boost signal from placement hint 2022-11-12 11:25:03 +00:00
tune.h sched: separate boost signal from placement hint 2022-11-12 11:25:03 +00:00
wait_bit.c
wait.c do accept() in LIFO order for cache efficiency 2022-11-12 11:24:43 +00:00
walt.c sched: do not allocate window cpu arrays separately 2022-11-12 11:24:41 +00:00
walt.h Revert "sched/fair: Add policy for restricting prefer_spread to newly idle balance" 2022-11-12 11:24:56 +00:00