🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Stefan Schmidt Thu, 26 Nov 2026 09:24
Re: [PATCH net v3] mac802154: validate pinned interface before beacon transmission
#22996
Author: Stefan Schmidt
Date: Thu, 26 Nov 2026 09:24
24 lines
8348 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads