On Thu, 2020-02-06 at 06:26:21 UTC, Oliver O'Halloran wrote: > 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. > > Cc: Vaidyanathan Srinivasan <sva...@linux.vnet.ibm.com> > Fixes: c5e29ea ("cpufreq: powernv: Fix bugs in powernv_cpufreq_{init/exit}") > Signed-off-by: Oliver O'Halloran <ooh...@gmail.com>
Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/d0a72efac89d1c35ac55197895201b7b94c5e6ef cheers