public inbox for virtualization@lists.linux-foundation.org
 help / color / mirror / Atom feed
* [PATCH net v2 0/3] virtio-net: fixes for mergeable XDP receive path
@ 2025-06-30 14:42 Bui Quang Minh
  2025-06-30 14:42 ` [PATCH net v2 1/3] virtio-net: ensure the received length does not exceed allocated size Bui Quang Minh
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Bui Quang Minh @ 2025-06-30 14:42 UTC (permalink / raw)
  To: netdev
  Cc: Michael S. Tsirkin, Jason Wang, Xuan Zhuo, Eugenio Pérez,
	Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Alexei Starovoitov, Daniel Borkmann,
	Jesper Dangaard Brouer, John Fastabend, Stanislav Fomichev,
	virtualization, linux-kernel, bpf, Bui Quang Minh

Hi everyone,

This series contains fixes for XDP receive path in virtio-net
- Patch 1: add a missing check for the received data length with our
allocated buffer size in mergeable mode.
- Patch 2: remove a redundant truesize check with PAGE_SIZE in mergeable
mode
- Patch 3: make the current repeated code use the check_mergeable_len to
check for received data length in mergeable mode

Version 2 changes:
- Move the check_mergeable_len helper definition to the patch 1.
- Remove patch 4.

Thanks,
Quang Minh.

Bui Quang Minh (3):
  virtio-net: ensure the received length does not exceed allocated size
  virtio-net: remove redundant truesize check with PAGE_SIZE
  virtio-net: use the check_mergeable_len helper

 drivers/net/virtio_net.c | 75 ++++++++++++++++++++++------------------
 1 file changed, 42 insertions(+), 33 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-07-03  9:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 14:42 [PATCH net v2 0/3] virtio-net: fixes for mergeable XDP receive path Bui Quang Minh
2025-06-30 14:42 ` [PATCH net v2 1/3] virtio-net: ensure the received length does not exceed allocated size Bui Quang Minh
2025-07-01  2:19   ` Jason Wang
2025-06-30 14:42 ` [PATCH net v2 2/3] virtio-net: remove redundant truesize check with PAGE_SIZE Bui Quang Minh
2025-06-30 14:42 ` [PATCH net v2 3/3] virtio-net: use the check_mergeable_len helper Bui Quang Minh
2025-07-01  2:20   ` Jason Wang
2025-07-03  9:10 ` [PATCH net v2 0/3] virtio-net: fixes for mergeable XDP receive path patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox