On Wed, 16 Oct 2024 14:13:38 +0800, Xinqi Zhang wrote: > The scmi_dev->name is released prematurely in __scmi_device_destroy(), > which causes slab-use-after-free when accessing scmi_dev->name in > scmi_bus_notifier(). So move the release of scmi_dev->name to > scmi_device_release() to avoid slab-use-after-free. > > ================================================================== > BUG: KASAN: slab-use-after-free in strncmp+0xe4/0xec > Read of size 1 at addr ffffff80a482bcc0 by task swapper/0/1 > > [...] Applied to sudeep.holla/linux (for-next/scmi/fixes), thanks! [1/1] firmware: arm_scmi: fix slab-use-after-free in scmi_bus_notifier() https://git.kernel.org/sudeep.holla/c/295416091e44 -- Regards, Sudeep