Files
linux/drivers
Oliver O'Halloran 35e68aef65 cpufreq: powernv: Fix use-after-free
commit d0a72efac8 upstream.

The cpufreq driver has a use-after-free that we can hit if:

a) There's an OCC message pending when the notifier is registered, and
b) The cpufreq driver fails to register with the core.

When a) occurs the notifier schedules a workqueue item to handle the
message. The backing work_struct is located on chips[].throttle and
when b) happens we clean up by freeing the array. Once we get to
the (now free) queued item and the kernel crashes.

Fixes: c5e29ea7ac ("cpufreq: powernv: Fix bugs in powernv_cpufreq_{init/exit}")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200206062622.28235-1-oohall@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:48:52 +02:00
..
2020-03-25 08:06:13 +01:00
2020-03-11 14:14:45 +01:00
2020-04-13 10:45:03 +02:00
2020-03-20 11:55:59 +01:00
2019-05-14 19:17:53 +02:00
2020-04-13 10:45:03 +02:00
2019-07-26 09:14:05 +02:00
2018-12-21 14:15:17 +01:00
2018-11-13 11:08:51 -08:00
2020-02-24 08:34:47 +01:00