Re: [PATCH net-next] ppp: require callers of ppp_dev_name() to hold RCU

From: patchwork-bot+netdevbpf

Date: Tue Mar 17 2026 - 19:33:30 EST


Hello:

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

On Mon, 16 Mar 2026 17:28:23 +0800 you wrote:
> ppp_dev_name() holds the RCU read lock internally to protect pch->ppp.
> However, as it returns netdev->name to the caller, the caller should
> also hold either RCU or RTNL lock to prevent the netdev from being
> freed.
>
> The only two references of the function is in the L2TP driver, both of
> which already hold RCU. So remove the internal RCU lock and document
> that callers must hold RCU.
>
> [...]

Here is the summary with links:
- [net-next] ppp: require callers of ppp_dev_name() to hold RCU
https://git.kernel.org/netdev/net-next/c/bb8539e0e609

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