Re: [PATCH net v3 0/3] nfc: fix LLCP, nfcsim, and digital teardown ordering races

From: bin luo

Date: Sun Dec 06 2026 - 06:04:20 EST


Hi,

Here is the discovery and reproduction summary for this series:

- Patch 1/3 ("nfc: llcp: fix work and timer teardown order in
local_cleanup()"):
* Discovery: static analysis and AI-assisted code review.
* Reproduction: theoretical / not triggered into a standalone crash
without delay injection. Regression-tested in QEMU KVM (KASAN,
LOCKDEP, DEBUG_OBJECTS_TIMERS, DEBUG_OBJECTS_WORK) across 200
nfcsim load/unload cycles with active LLCP links and against
tools/testing/selftests/nci/nci_dev (8/8 passed).

- Patch 2/3 ("nfc: nfcsim: stop link and works before unregistering
digital device"):
* Discovery: static analysis and live QEMU KVM testing.
* Reproduction: triggered live in QEMU KVM on an unmodified kernel
without delay injection while unloading nfcsim during active LLCP
traffic:

BUG: KASAN: slab-use-after-free in digital_send_cmd_complete+0x76/0xa0
Write of size 8 at addr ffff888007d9bb20 by task kworker/3:4/66
Workqueue: events nfcsim_recv_wq [nfcsim]

Verified fixed across 200 nfcsim load/unload cycles (29s total,
zero KASAN/LOCKDEP/ODEBUG warnings, zero teardown stalls) and 30
rapid back-to-back insmod/rmmod cycles (1s).

- Patch 3/3 ("nfc: digital: stop works and drain commands before
nfc_remove_device()"):
* Discovery: static analysis and AI-assisted code review after
observing nfc_llcp_recv() callbacks running during nfcsim unload.
* Reproduction: the nfc_llcp_local use-after-free was not triggered
into a standalone KASAN splat without delay injection; regression-
tested across the same 200 nfcsim load/unload cycles and
tools/testing/selftests/nci/nci_dev (8/8 passed).

Best regards,
Bin Luo