Re: [PATCH] thermal: cpufreq_cooling: fix slab OOB issue

2020-12-28 Thread Lukasz Luba
On 12/23/20 7:48 AM, Michael Kao wrote: From: brian-sy yang Slab OOB issue is scanned by KASAN in cpu_power_to_freq(). If power is limited below the power of OPP0 in EM table, it will cause slab out-of-bound issue with negative array index. Return the lowest frequency if limited power

[PATCH] thermal: cpufreq_cooling: fix slab OOB issue

2020-12-22 Thread Michael Kao
From: brian-sy yang Slab OOB issue is scanned by KASAN in cpu_power_to_freq(). If power is limited below the power of OPP0 in EM table, it will cause slab out-of-bound issue with negative array index. Return the lowest frequency if limited power cannot found a suitable OPP in EM table to fix