Re: [PATCH 1/2] cpufreq/powernv: Fix use-after-free

2020-03-17 Thread Michael Ellerman
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

Re: [PATCH 1/2] cpufreq/powernv: Fix use-after-free

2020-02-26 Thread Michael Ellerman
Andrew Donnellan writes: > On 6/2/20 5:26 pm, 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

Re: [PATCH 1/2] cpufreq/powernv: Fix use-after-free

2020-02-24 Thread Andrew Donnellan
On 6/2/20 5:26 pm, 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

Re: [PATCH 1/2] cpufreq/powernv: Fix use-after-free

2020-02-24 Thread Gautham R Shenoy
On Thu, Feb 06, 2020 at 05:26:21PM +1100, 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

[PATCH 1/2] cpufreq/powernv: Fix use-after-free

2020-02-05 Thread Oliver O'Halloran
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