928ea98252
In fsl_mc_bus_remove(), mc->root_mc_bus_dev->mc_io is passed to
fsl_destroy_mc_io(). However, mc->root_mc_bus_dev is already freed in
fsl_mc_device_remove(). Then reference to mc->root_mc_bus_dev->mc_io
triggers KASAN use-after-free. To avoid the use-after-free, keep the
reference to mc->root_mc_bus_dev->mc_io in a local variable and pass to
fsl_destroy_mc_io().
This patch needs rework to apply to kernels older than v5.15.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
dpbp.c | ||
dpcon.c | ||
dpmcp.c | ||
dprc-driver.c | ||
dprc.c | ||
fsl-mc-allocator.c | ||
fsl-mc-bus.c | ||
fsl-mc-msi.c | ||
fsl-mc-private.h | ||
fsl-mc-uapi.c | ||
mc-io.c | ||
mc-sys.c | ||
obj-api.c |