Re: [PATCH net v2] mac802154: lock rx_mac_cmd_list and drain it before freeing sdata

From: Jakub Kicinski

Date: Fri Jul 24 2026 - 18:02:13 EST


On Wed, 22 Jul 2026 12:16:08 +0200 Ibrahim Hashimov wrote:
> rx_mac_cmd_list has no locking. The RX softirq producer in
> ieee802154_subif_frame() list_add_tail()s while the mac_wq worker
> list_del()s, and the worker dereferences mac_pkt->sdata with no
> liveness check.

Both sashikos complain about races:
https://sashiko.dev/#/patchset/20260722101608.37744-1-security@xxxxxxxxxxxx
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260722101608.37744-1-security@xxxxxxxxxxxx