Re: [PATCH net] tun: free page on build_skb failure in tun_xdp_one()

From: patchwork-bot+netdevbpf

Date: Fri May 22 2026 - 13:27:27 EST


Hello:

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

On Thu, 21 May 2026 09:33:13 -0700 you wrote:
> When build_skb() fails in tun_xdp_one(), the function sets ret to
> -ENOMEM and jumps to the out label, which returns without freeing the
> page that vhost_net_build_xdp() allocated for the frame. As with the
> short-frame rejection path, tun_sendmsg() discards the per-buffer error
> and still returns total_len, so vhost_tx_batch() takes the success path
> and never frees the page. Each build_skb() failure in a batch leaks one
> page-frag chunk.
>
> [...]

Here is the summary with links:
- [net] tun: free page on build_skb failure in tun_xdp_one()
https://git.kernel.org/netdev/net/c/aa8963fdce66

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