android_kernel_motorola_sm6375/kernel/sched
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lukasz Luba 91c21bea59 UPSTREAM: sched/fair: Fix wrong negative conversion in find_energy_efficient_cpu()
In find_energy_efficient_cpu() 'cpu_cap' could be less that 'util'.
It might be because of RT, DL (so higher sched class than CFS), irq or
thermal pressure signal, which reduce the capacity value.
In such situation the result of 'cpu_cap - util' might be negative but
stored in the unsigned long. Then it might be compared with other unsigned
long when uclamp_rq_util_with() reduced the 'util' such that is passes the
fits_capacity() check.

Prevent this situation and make the arithmetic more safe.

Fixes: 1d42509e475cd ("sched/fair: Make EAS wakeup placement consider uclamp restrictions")
Signed-off-by: Lukasz Luba <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Valentin Schneider <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
(cherry picked from commit da0777d35f47892f359c3f73ea155870bb595700)
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Change-Id: Ib3e22c155eb031854cfb4428494c1c4da57692b1
2020-11-14 16:20:56 +01:00
..
autogroup.c
autogroup.h
clock.c
completion.c
core.c ANDROID: GKI: core: Export for runqueues 2020-09-28 18:10:39 +00:00
cpuacct.c
cpudeadline.c
cpudeadline.h
cpufreq.c cpufreq: Avoid leaving stale IRQ work items during CPU offline 2019-12-31 16:46:06 +01:00
cpufreq_schedutil.c UPSTREAM: sched/uclamp: Rename uclamp_util_with() into uclamp_rq_util_with() 2020-02-01 14:35:36 +00:00
cpupri.c UPSTREAM: sched/rt: cpupri_find: Trigger a full search as fallback 2020-04-03 16:14:43 +01:00
cpupri.h UPSTREAM: sched/rt: Optimize cpupri_find() on non-heterogenous systems 2020-04-03 16:14:27 +01:00
cputime.c ANDROID: GKI: cputime: Export for thread_group_cputime_adjusted 2020-09-28 18:10:12 +00:00
deadline.c sched/deadline: Initialize ->dl_boosted 2020-06-30 15:37:02 -04:00
debug.c sched/debug: Make sd->flags sysctl read-only 2020-07-09 09:37:50 +02:00
fair.c UPSTREAM: sched/fair: Fix wrong negative conversion in find_energy_efficient_cpu() 2020-11-14 16:20:56 +01:00
features.h UPSTREAM: sched/fair/util_est: Implement faster ramp-up EWMA on utilization increases 2020-10-26 12:24:35 +00:00
idle.c sched/core: Further clarify sched_class::set_next_task() 2020-01-26 10:01:03 +01:00
isolation.c
loadavg.c ANDROID: GKI: loadavg: Export for get_avenrun 2020-09-28 18:10:02 +00:00
Makefile
membarrier.c UPSTREAM: fix "sched/membarrier: Fix p->mm->membarrier_state racy load" 2019-10-02 19:13:20 +02:00
pelt.c
pelt.h
psi.c sched/psi: Fix OOB write when writing 0 bytes to PSI files 2020-02-28 17:22:21 +01:00
rt.c ANDROID: Add vendor hooks to the scheduler 2020-08-21 14:55:19 +00:00
sched-pelt.h
sched.h This is the 5.4.48 stable release 2020-06-22 11:43:59 +02:00
stats.c
stats.h
stop_task.c sched/core: Further clarify sched_class::set_next_task() 2020-01-26 10:01:03 +01:00
swait.c
topology.c This is the 5.4.59 stable release 2020-08-19 08:40:57 +02:00
wait.c
wait_bit.c