Skip to content

virtio-net: fixes for mergeable XDP receive path

Bui Quang Minh bpf lkml netdev stable virtualization 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied 3/3
  2. v14 patches 8 repliesSuperseded

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3virtio-net: ensure the received length does not exceed allocated sizedrivers/net/virtio_net.c+34 -41 replyApplied
2/3virtio-net: remove redundant truesize check with PAGE_SIZEdrivers/net/virtio_net.c+3 -40 repliesApplied
3/3virtio-net: use the check_mergeable_len helperdrivers/net/virtio_net.c+7 -271 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJason Wang
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/3] virtio-net: fixes for mergeable XDP receive path

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(-)
Signature · 1 line
2.43.0