Re: [PATCH net v5] net: erspan: set lltx to avoid sch_direct_xmit deadlock

From: patchwork-bot+netdevbpf

Date: Thu Oct 15 2026 - 20:30:24 EST


Hello:

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

On Thu, 8 Oct 2026 17:38:24 +0800 you wrote:
> The ERSPAN xmit path re-enters the network stack, causing nested
> acquisition of _xmit_lock on the underlay device while already holding
> the ERSPAN device's _xmit_lock, creating an ABBA deadlock. This happens
> for both IPv4 ERSPAN (erspan_xmit() -> ip_tunnel_xmit()) and IPv6 ERSPAN
> (ip6erspan_tunnel_xmit() -> ip6_tnl_xmit()):
>
> sch_direct_xmit [lock erspan] -> erspan_xmit -> ip_tunnel_xmit ->
> ip_output -> __dev_queue_xmit -> sch_direct_xmit [lock underlay]
>
> [...]

Here is the summary with links:
- [net,v5] net: erspan: set lltx to avoid sch_direct_xmit deadlock
https://git.kernel.org/netdev/net/c/2d36ec73836e

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