Re: [PATCH net v3] mac802154: validate pinned interface before beacon transmission

From: Stefan Schmidt

Date: Thu Nov 26 2026 - 04:24:23 EST


Hello Yifan Zhang.

On Wed, 04 Nov 2026 17:56:53 +0800, Yifan Zhang wrote:
> mac802154_beacon_worker() selects a beacon request under RCU and pins
> the corresponding netdev before dropping the read lock. The transmit
> helper used to read the request again, so a concurrent interface switch
> could make it dereference an unpinned netdev.
>
> Use the pinned wpan_dev throughout transmission. Under RTNL, verify that
> the request still belongs to that interface and that the interface is
> running. Build the beacon from the protected template while still
> holding RTNL, then hand it to the locked MLME transmit helper. Free the
> skb only on errors before that handoff.
>
> [...]

Applied to wpan/wpan.git, thanks!

[1/1] mac802154: validate pinned interface before beacon transmission
https://git.kernel.org/wpan/wpan/c/95f866334454

regards,
Stefan Schmidt