summaryrefslogtreecommitdiff
path: root/include/linux/panic.h
diff options
context:
space:
mode:
authorGui-Dong Han <hanguidong02@gmail.com>2025-12-03 01:44:38 +0800
committerChristophe Leroy (CS GROUP) <chleroy@kernel.org>2026-01-06 18:56:32 +0100
commit148891e95014b5dc5878acefa57f1940c281c431 (patch)
tree569b7fb51c68223bceb329f8133cc3a6591d9c34 /include/linux/panic.h
parentc8dff80a3108a2cb85ac7ac5b1a75c247ac55fd2 (diff)
bus: fsl-mc: fix use-after-free in driver_override_show()
The driver_override_show() function reads the driver_override string without holding the device_lock. However, driver_override_store() uses driver_set_override(), which modifies and frees the string while holding the device_lock. This can result in a concurrent use-after-free if the string is freed by the store function while being read by the show function. Fix this by holding the device_lock around the read operation. Fixes: 1f86a00c1159 ("bus/fsl-mc: add support for 'driver_override' in the mc-bus") Cc: stable@vger.kernel.org Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com> Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20251202174438.12658-1-hanguidong02@gmail.com Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Diffstat (limited to 'include/linux/panic.h')
0 files changed, 0 insertions, 0 deletions