Re: [PATCH net] tap: free page on error paths in tap_get_user_xdp()

From: patchwork-bot+netdevbpf

Date: Fri May 22 2026 - 13:33:19 EST


Hello:

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

On Thu, 21 May 2026 09:32:31 -0700 you wrote:
> tap_get_user_xdp() rejects a frame shorter than ETH_HLEN with -EINVAL,
> and returns -ENOMEM when build_skb() fails. Both paths jump to the err
> label without freeing the page that vhost_net_build_xdp() allocated for
> the frame. tap_sendmsg() discards the per-buffer return value and always
> returns 0, so vhost_tx_batch() takes the success path and never frees
> the page; each rejected frame in a batch leaks one page-frag chunk.
>
> [...]

Here is the summary with links:
- [net] tap: free page on error paths in tap_get_user_xdp()
https://git.kernel.org/netdev/net/c/3bcf7aec6a9d

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