Skip to content

vsock/virtio: fix vsockmon tap skb construction

Stefano Garzarella kvm lkml netdev virtualization 1 version 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

  1. v1 Latest2 patches 5 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2vsock/virtio: fix length and offset in tap skb for split packetsnet/vmw_vsock/virtio_transport_common.c+6 -52 repliesApplied
2/2vsock/virtio: fix empty payload in tap skb for non-linear buffersnet/vmw_vsock/virtio_transport_common.c+12 -282 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBobby EshlemanMichael S. TsirkinArseniy Krasnov
SeriesA-b
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net 0/2] vsock/virtio: fix vsockmon tap skb construction

While reviewing the patch posted by Yiqi Sun [1] to fix an issue in virtio_transport_build_skb(), I discovered another issue related to the offset and length of the payload to be copied in the new skb. This was introduced when we did the skb conversion, and fixed by patch 1.

Patch 2 fixes the issue found by Yiqi Sun in a different way: using iov_iter_kvec() to properly initialize all the iov_iter fields and removing the linear vs non-linear split like we alredy do in vhost-vsock.

It could have been a single patch, but since there were two affected commits, I decided to keep the fixes separate.

[1] https://lore.kernel.org/netdev/[email protected]/

Stefano Garzarella (2):
vsock/virtio: fix length and offset in tap skb for split packets vsock/virtio: fix empty payload in tap skb for non-linear buffers

 net/vmw_vsock/virtio_transport_common.c | 47 +++++++++----------------
 1 file changed, 16 insertions(+), 31 deletions(-)
Signature · 1 line
2.54.0