Re: [PATCH net v2] l2tp: only return sessions of the given tunnel in l2tp_session_get()

From: patchwork-bot+netdevbpf

Date: Wed Nov 04 2026 - 18:07:25 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 29 Oct 2026 23:26:17 -0400 you wrote:
> Commit 5f77c18ea556 ("l2tp: use IDR for all session lookups") made
> pppol2tp_connect() and the netlink session commands find sessions with
> l2tp_session_get(), passing the socket of the tunnel they name.
>
> L2TPv3 session IDs are unique per network namespace, except that
> sessions carried over UDP are only unique per UDP socket, the socket of
> their tunnel. However, l2tp_v3_session_get() only checks the socket when
> another session has the same session ID. Otherwise it returns the
> session, whichever tunnel it belongs to. As of now, a session command
> that names the wrong tunnel acts on a session of another tunnel, and a
> PPPoL2TP socket for a second L2TPv3 tunnel fails with EEXIST, because it
> finds session 0 of the first tunnel.
>
> [...]

Here is the summary with links:
- [net,v2] l2tp: only return sessions of the given tunnel in l2tp_session_get()
https://git.kernel.org/netdev/net/c/a75facf4bb3e

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