Thread (6 messages) flat view 6 messages, 5 authors, 12d ago

Re: [PATCH net v4] net: reduce XMIT_RECURSION_LIMIT under KASAN

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-04 23:11:16
Also in: lkml, stable

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Wed,  2 Sep 2026 12:30:40 +0000 you wrote:
From: Tristan Madani <redacted>

Virtual network devices (ipvlan, macvlan, bonding) can enter legitimate
transmit recursion when combined with packet forwarding configurations
such as IPVS NAT.  The existing XMIT_RECURSION_LIMIT (8) in
__dev_queue_xmit() detects and breaks these loops, but the allowed
depth is too high for KASAN-instrumented kernels: each recursion level
consumes significantly more stack due to KASAN inline instrumentation,
and the cumulative usage overflows the kernel stack before the limit
fires.

[...]
Here is the summary with links:
  - [net,v4] net: reduce XMIT_RECURSION_LIMIT under KASAN
    https://git.kernel.org/netdev/net-next/c/7f1de03e3103

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help