Re: [PATCH net] net: phonet: free phonet_device after RCU grace period

From: patchwork-bot+netdevbpf

Date: Mon Jun 08 2026 - 20:40:14 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 3 Jun 2026 17:08:43 -0700 you wrote:
> phonet_device_destroy() removes a phonet_device from the per-net device
> list with list_del_rcu(), but frees it immediately. RCU readers walking
> the same list can still hold a pointer to the object after it has been
> removed, leading to a slab-use-after-free.
>
> Use kfree_rcu(), matching the lifetime rule already used by
> phonet_address_del() for the same object type.
>
> [...]

Here is the summary with links:
- [net] net: phonet: free phonet_device after RCU grace period
https://git.kernel.org/netdev/net/c/71de0177b28d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html