linux/drivers/net/wireless/broadcom/brcm80211
Marek Szyprowski c623b63580 wifi: brcmfmac: Fix potential use-after-free issue when stopping watchdog task
Watchdog task might end between send_sig() and kthread_stop() calls, what
results in the use-after-free issue. Fix this by increasing watchdog task
reference count before calling send_sig() and dropping it by switching to
kthread_stop_put().

Cc: stable@vger.kernel.org
Fixes: 373c83a801 ("brcmfmac: stop watchdog before detach and free everything")
Fixes: a9ffda88be ("brcm80211: fmac: abstract bus_stop interface function pointer")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260416093339.2066829-1-m.szyprowski@samsung.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-04-27 12:37:54 +02:00
..
brcmfmac wifi: brcmfmac: Fix potential use-after-free issue when stopping watchdog task 2026-04-27 12:37:54 +02:00
brcmsmac wifi: brcmsmac: Fix dma_free_coherent() size 2026-04-07 12:34:03 +02:00
brcmutil kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2024-05-10 04:34:52 +09:00
include wifi: brcmfmac: fix 43752 SDIO FWVID incorrectly labelled as Cypress (CYW) 2025-09-03 10:08:04 +02:00
Kconfig wifi: brcm80211: BRCM_TRACING should depend on TRACING 2024-10-17 17:23:42 +03:00
Makefile