029925a787
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> |
||
---|---|---|
.. | ||
autogroup.c | ||
autogroup.h | ||
boost.c | ||
clock.c | ||
completion.c | ||
core_ctl.c | ||
core.c | ||
cpuacct.c | ||
cpudeadline.c | ||
cpudeadline.h | ||
cpufreq_schedutil.c | ||
cpufreq.c | ||
cpupri.c | ||
cpupri.h | ||
cputime.c | ||
deadline.c | ||
debug.c | ||
fair.c | ||
features.h | ||
idle.c | ||
isolation.c | ||
loadavg.c | ||
Makefile | ||
membarrier.c | ||
OWNERS | ||
pelt.c | ||
pelt.h | ||
psi.c | ||
rt.c | ||
sched_avg.c | ||
sched-pelt.h | ||
sched.h | ||
stats.c | ||
stats.h | ||
stop_task.c | ||
swait.c | ||
topology.c | ||
tune.c | ||
tune.h | ||
wait_bit.c | ||
wait.c | ||
walt.c | ||
walt.h |