diff options
| author | Fan Wu <fanwu01@zju.edu.cn> | 2026-08-14 08:25:50 +0000 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-09-04 10:40:36 +0200 |
| commit | 2b19cf3e50cddaff07b657dae1a8f30f06032852 (patch) | |
| tree | f5427211f50b009f541f5b8b147445bdea05d51d /scripts/Makefile.thinlto | |
| parent | 6feadbecdae60a6324c967f3b1493741083793a3 (diff) | |
| download | linux-next-2b19cf3e50cddaff07b657dae1a8f30f06032852.tar.gz linux-next-2b19cf3e50cddaff07b657dae1a8f30f06032852.zip | |
mmc: mmci: Fix use-after-free in busy-timeout work
ux500_busy_complete() can queue ux500_busy_timeout_work for an R1b
command, but mmci_remove() never cancels it. The work can subsequently
dereference the devm-allocated mmci_host after it has been released.
Mask the controller interrupts and disable the delayed work during
removal. This drains any queued instance and stops an IRQ handler that
is still in progress from queueing the work again once it has been
disabled.
This issue was found by an in-house static analysis tool.
Fixes: b1a665932dc2 ("mmc: mmci: Add support for SW busy-end timeouts")
Cc: stable@vger.kernel.org # v6.10+
Assisted-by: Codex:gpt-5.6
Signed-off-by: Fan Wu <fanwu01@zju.edu.cn>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
