Re: [PATCH net] vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting
From: patchwork-bot+netdevbpf
Date: Thu Apr 23 2026 - 07:10:49 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Mon, 20 Apr 2026 15:20:51 +0200 you wrote:
> From: Stefano Garzarella <sgarzare@xxxxxxxxxx>
>
> virtio_transport_init_zcopy_skb() uses iter->count as the size argument
> for msg_zerocopy_realloc(), which in turn passes it to
> mm_account_pinned_pages() for RLIMIT_MEMLOCK accounting. However, this
> function is called after virtio_transport_fill_skb() has already consumed
> the iterator via __zerocopy_sg_from_iter(), so on the last skb, iter->count
> will be 0, skipping the RLIMIT_MEMLOCK enforcement.
>
> [...]
Here is the summary with links:
- [net] vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting
https://git.kernel.org/netdev/net/c/1cb36e252211
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html