patch 'Revert "vhost: fix OOB access for invalid vhost ID"' has been queued to stable release 20.11.8

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Mar 15 23:45:58 CET 2023


Hi,

FYI, your patch has been queued to stable release 20.11.8

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/17/23. 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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/9bf78c69c32e0e0256e435ea4ecd0a63450afa55

Thanks.

Luca Boccassi

---
>From 9bf78c69c32e0e0256e435ea4ecd0a63450afa55 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <bluca at debian.org>
Date: Tue, 14 Mar 2023 23:32:47 +0000
Subject: [PATCH] Revert "vhost: fix OOB access for invalid vhost ID"

This reverts commit 145ffdbb7ea750f4d3b17446bde22a805957ad71.
---
 lib/librte_vhost/vhost.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h
index ee4e5317d0..92b67a2c6f 100644
--- a/lib/librte_vhost/vhost.h
+++ b/lib/librte_vhost/vhost.h
@@ -663,10 +663,7 @@ hva_to_gpa(struct virtio_net *dev, uint64_t vva, uint64_t len)
 static __rte_always_inline struct virtio_net *
 get_device(int vid)
 {
-	struct virtio_net *dev = NULL;
-
-	if (likely(vid >= 0 && vid < RTE_MAX_VHOST_DEVICE))
-		dev = vhost_devices[vid];
+	struct virtio_net *dev = vhost_devices[vid];
 
 	if (unlikely(!dev)) {
 		VHOST_LOG_CONFIG(ERR,
-- 
2.39.2



More information about the stable mailing list