Thread (7 messages) 7 messages, 6 authors, 2026-03-27

Re: [PATCH net-next] virtio_net: sync RX buffer before reading the header

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-03-27 03:20:28
Also in: bpf, lkml, virtualization

Hello:

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

On Tue, 24 Mar 2026 11:15:54 -0400 you wrote:
receive_buf() reads the virtio header through buf before
page_pool_dma_sync_for_cpu() runs in receive_small() or
receive_mergeable(). The header buffer is thus unsynchronized at the
point where flags and, for mergeable buffers, num_buffers are consumed.

Omar Elghoul reported that on s390x Secure Execution this showed up as
greatly reduced virtio-net performance together with "bad gso" and
"bad csum" messages in dmesg. This is because with SE sync actually
copies data, so the header is uninitialized.

[...]
Here is the summary with links:
  - [net-next] virtio_net: sync RX buffer before reading the header
    https://git.kernel.org/netdev/net-next/c/fe3e54253f0b

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