Re: [PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-09-05 Thread Eduardo Valentin
On Mon, Aug 13, 2018 at 08:14:00PM +0300, Dmitry Osipenko wrote: > This patch fixes use-after-free that was detected by KASAN. The bug is > triggered on a CPUFreq driver module unload by freeing 'cdev' on device > unregister and then using the freed structure during of the cdev's sysfs > data

Re: [PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-09-05 Thread Eduardo Valentin
On Mon, Aug 13, 2018 at 08:14:00PM +0300, Dmitry Osipenko wrote: > This patch fixes use-after-free that was detected by KASAN. The bug is > triggered on a CPUFreq driver module unload by freeing 'cdev' on device > unregister and then using the freed structure during of the cdev's sysfs > data

Re: [PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-09-03 Thread Viresh Kumar
On 13-08-18, 20:14, Dmitry Osipenko wrote: > This patch fixes use-after-free that was detected by KASAN. The bug is > triggered on a CPUFreq driver module unload by freeing 'cdev' on device > unregister and then using the freed structure during of the cdev's sysfs > data destruction. The solution

Re: [PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-09-03 Thread Viresh Kumar
On 13-08-18, 20:14, Dmitry Osipenko wrote: > This patch fixes use-after-free that was detected by KASAN. The bug is > triggered on a CPUFreq driver module unload by freeing 'cdev' on device > unregister and then using the freed structure during of the cdev's sysfs > data destruction. The solution

[PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-08-13 Thread Dmitry Osipenko
This patch fixes use-after-free that was detected by KASAN. The bug is triggered on a CPUFreq driver module unload by freeing 'cdev' on device unregister and then using the freed structure during of the cdev's sysfs data destruction. The solution is to unregister the sysfs at first, then destroy

[PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-08-13 Thread Dmitry Osipenko
This patch fixes use-after-free that was detected by KASAN. The bug is triggered on a CPUFreq driver module unload by freeing 'cdev' on device unregister and then using the freed structure during of the cdev's sysfs data destruction. The solution is to unregister the sysfs at first, then destroy