linux/drivers/crypto/amcc
Rosen Penev aacf3a6c47 crypto: amcc - fix racy teardown with devm_request_irq
The driver uses devm_request_irq() for the IRQ, but cleans up the
tasklet and DMA rings inside the remove function.  Since devres frees
the IRQ only after the remove function returns, a window exists where a
pending hardware interrupt can reschedule the tasklet after it has been
killed, leading to use-after-free of the descriptor rings.

Fix by switching to plain request_irq() and adding the corresponding
free_irq() calls in the remove function and the probe error path before
tasklet_kill(), ensuring the IRQ is fully torn down before the tasklet
is killed.

Rename goto error path to err_tasklet as that's more descriptive.

Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2026-08-10 18:28:56 +10:00
..
crypto4xx_alg.c crypto: crypto4xx - Use new AES library API 2026-01-15 14:09:08 -08:00
crypto4xx_core.c crypto: amcc - fix racy teardown with devm_request_irq 2026-08-10 18:28:56 +10:00
crypto4xx_core.h crypto: amcc - convert irq_of_parse_and_map to platform_get_irq 2026-06-12 09:56:45 +08:00
crypto4xx_reg_def.h crypto: crypto4xx - Remove insecure and unused rng_alg 2026-06-11 13:53:59 +08:00
crypto4xx_sa.h crypto: amcc - fix incorrect kernel-doc comment syntax in files 2021-03-26 20:15:58 +11:00
crypto4xx_trng.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
crypto4xx_trng.h crypto: amcc - fix incorrect kernel-doc comment syntax in files 2021-03-26 20:15:58 +11:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00