Re: [PATCH net] bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom
From: patchwork-bot+netdevbpf
Date: Mon Nov 02 2026 - 01:22:45 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Mon, 2 Nov 2026 02:23:43 +0800 you wrote:
> When an LWT xmit program returns BPF_OK, bpf_xmit() makes sure that
> the skb still has room for the link layer header. If
> pskb_expand_head() fails there, bpf_xmit() returns -ENOMEM without
> freeing the skb. Its callers, lwtunnel_xmit() and then
> ip_finish_output2() or ip6_finish_output2(), take any return value
> other than LWTUNNEL_XMIT_CONTINUE to mean that the skb has been
> consumed, so nothing frees it.
>
> [...]
Here is the summary with links:
- [net] bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom
https://git.kernel.org/bpf/bpf/c/5e96760b25fd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html