patch 'vhost: fix checksum offset check in Rx path' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:02:48 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/2a83acb04ac3b6f78f5e6a8f767926eca15981b1
Thanks.
Kevin
---
>From 2a83acb04ac3b6f78f5e6a8f767926eca15981b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Morten=20Br=C3=B8rup?= <mb at smartsharesystems.com>
Date: Mon, 19 Oct 2026 13:58:14 +0000
Subject: [PATCH] vhost: fix checksum offset check in Rx path
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[ upstream commit 2bcc71c576155059b85df0154eaaab72ae0eb29a ]
Writing the checksum in the packet needs room for 2 bytes, not 1 byte.
Fixes: ca7036b4af3a ("vhost: fix offload flags in Rx path")
Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
lib/vhost/virtio_net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c
index 8bdddedccf..eb099d206b 100644
--- a/lib/vhost/virtio_net.c
+++ b/lib/vhost/virtio_net.c
@@ -2849,5 +2849,5 @@ vhost_dequeue_offload(struct virtio_net *dev, struct virtio_net_hdr *hdr,
csum = ~csum;
off = hdr->csum_offset + hdr->csum_start;
- if (rte_pktmbuf_data_len(m) >= off + 1)
+ if (rte_pktmbuf_data_len(m) >= off + sizeof(uint16_t))
*rte_pktmbuf_mtod_offset(m, uint16_t *, off) = csum;
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:46.106606661 +0000
+++ 0242-vhost-fix-checksum-offset-check-in-Rx-path.patch 2026-12-03 12:52:39.198852480 +0000
@@ -1 +1 @@
-From 2bcc71c576155059b85df0154eaaab72ae0eb29a Mon Sep 17 00:00:00 2001
+From 2a83acb04ac3b6f78f5e6a8f767926eca15981b1 Mon Sep 17 00:00:00 2001
@@ -8,0 +9,2 @@
+[ upstream commit 2bcc71c576155059b85df0154eaaab72ae0eb29a ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 503b8907bc..0107efba15 100644
+index 8bdddedccf..eb099d206b 100644
@@ -24 +25 @@
-@@ -1603,5 +1603,5 @@ vhost_dequeue_offload(struct virtio_net *dev, struct virtio_net_hdr *hdr,
+@@ -2849,5 +2849,5 @@ vhost_dequeue_offload(struct virtio_net *dev, struct virtio_net_hdr *hdr,
More information about the stable
mailing list