[dpdk-stable] patch 'vhost: fix possible out of bound access' has been queued to stable release 18.08.1
Kevin Traynor
ktraynor at redhat.com
Fri Nov 23 11:26:54 CET 2018
Hi,
FYI, your patch has been queued to stable release 18.08.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/29/18. 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. If the code is different (ie: not only metadata diffs), due for example to
a change in context or macro names, please double check it.
Thanks.
Kevin Traynor
---
>From e1008b430ca92c3d9ce5b61731a1cda54dc1e368 Mon Sep 17 00:00:00 2001
From: Ferruh Yigit <ferruh.yigit at intel.com>
Date: Sun, 28 Oct 2018 01:08:46 +0000
Subject: [PATCH] vhost: fix possible out of bound access
[ upstream commit 7b178300accc661b7bbd47da93380106378dba1c ]
Fixes: d7280c9fffcb ("vhost: support selective datapath")
Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
lib/librte_vhost/vdpa.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/librte_vhost/vdpa.c b/lib/librte_vhost/vdpa.c
index c82fd4370..1b12e87f6 100644
--- a/lib/librte_vhost/vdpa.c
+++ b/lib/librte_vhost/vdpa.c
@@ -64,4 +64,7 @@ rte_vdpa_register_device(struct rte_vdpa_dev_addr *addr,
}
+ if (i == MAX_VHOST_DEVICE)
+ return -1;
+
sprintf(device_name, "vdpa-dev-%d", i);
dev = rte_zmalloc(device_name, sizeof(struct rte_vdpa_device),
--
2.19.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2018-11-23 10:22:55.555736957 +0000
+++ 0050-vhost-fix-possible-out-of-bound-access.patch 2018-11-23 10:22:54.000000000 +0000
@@ -1,10 +1,11 @@
-From 7b178300accc661b7bbd47da93380106378dba1c Mon Sep 17 00:00:00 2001
+From e1008b430ca92c3d9ce5b61731a1cda54dc1e368 Mon Sep 17 00:00:00 2001
From: Ferruh Yigit <ferruh.yigit at intel.com>
Date: Sun, 28 Oct 2018 01:08:46 +0000
Subject: [PATCH] vhost: fix possible out of bound access
+[ upstream commit 7b178300accc661b7bbd47da93380106378dba1c ]
+
Fixes: d7280c9fffcb ("vhost: support selective datapath")
-Cc: stable at dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
@@ -13,7 +14,7 @@
1 file changed, 3 insertions(+)
diff --git a/lib/librte_vhost/vdpa.c b/lib/librte_vhost/vdpa.c
-index c2c5dff1d..e7d849ee0 100644
+index c82fd4370..1b12e87f6 100644
--- a/lib/librte_vhost/vdpa.c
+++ b/lib/librte_vhost/vdpa.c
@@ -64,4 +64,7 @@ rte_vdpa_register_device(struct rte_vdpa_dev_addr *addr,
More information about the stable
mailing list