[passt-dev] [bug] vhost-user multi-vector packets cause corrupted duplicates to be transmitted
Dear passt authors, I'm sending this bug report to you directly because I was unable to register to the bug tracker or subscribe to the mailing list. I've found an issue when attempting to use passt with qemu vhost-user. The VM guest is Windows 11 with the NetKVM driver. The issue can be reproduced more easily by disabling offloads. Unlike the Linux virtio driver, NetKVM places the frame headers and the payload in different buffers. Then for every UDP frame coming from the guest, the host sends 3 UDP packets: - 1 packet with the whole payload - 1 packet with no payload - 1 packet with the payload offset by 8 bytes (size of the header) This causes QUIC and DNS to work unreliably on the guest. I've attached a cut of the pcap and log files produced by passt 2026_10_02.cba3570-28-g094211f with flags `--debug --trace --pcap`, as well as the corresponding output of `strace -tt -e trace=network`. Reproducing the issue is quite difficult, since it requires setting up a Windows VM. As an alternative I've attached a largely "vibe-coded" test case. Place `multibuf.py` into `tests/vhost_user/multibuf.py`, then `chmod +x` and `./run vhost_user/multibuf.py`. This bug was introduced in commit ca38be0 "packet: Add support for multi-vector packets" Thanks, Agustín
Hi Augustin,
On Mon, 23 Nov 2026 04:27:33 -0300
Agustín Dall'Alba
Dear passt authors,
I'm sending this bug report to you directly because I was unable to register to the bug tracker or subscribe to the mailing list.
Thanks for the report. You should have received confirmation emails now. It would still be valuable if you could file this as a ticket.
I've found an issue when attempting to use passt with qemu vhost-user. The VM guest is Windows 11 with the NetKVM driver. The issue can be reproduced more easily by disabling offloads.
Unlike the Linux virtio driver, NetKVM places the frame headers and the payload in different buffers. Then for every UDP frame coming from the guest, the host sends 3 UDP packets:
- 1 packet with the whole payload - 1 packet with no payload - 1 packet with the payload offset by 8 bytes (size of the header)
This causes QUIC and DNS to work unreliably on the guest.
This should be addressed by this pending patch: https://archives.passt.top/passt-dev/20261102073011.3537587-1-luochunsheng@u... but it's not merged yet, because a part is missing. See: https://archives.passt.top/passt-dev/15a03a23-c8fb-49dc-8f65-6620e48b2941@re... ...we should understand if we want to merge it anyway for the moment, or if somebody finds the time to implement the missing bit... -- Stefano
participants (2)
-
Agustín Dall'Alba
-
Stefano Brivio