[dpdk-stable] patch 'examples/ipsec-secgw: fix access to freed packet' has been queued to LTS release 18.11.6

Kevin Traynor ktraynor at redhat.com
Fri Nov 22 15:41:14 CET 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.6

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/19. 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-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/7824c471ad33c02eb1c85c63880e699bb20ca2c9

Thanks.

Kevin.

---
>From 7824c471ad33c02eb1c85c63880e699bb20ca2c9 Mon Sep 17 00:00:00 2001
From: Anoob Joseph <anoobj at marvell.com>
Date: Thu, 22 Aug 2019 13:58:55 +0530
Subject: [PATCH] examples/ipsec-secgw: fix access to freed packet

[ upstream commit 1f868d90241cc6be2b378faa9dd43002b218226a ]

For unknown/unsupported packets, the packet would get checked for inline
offloads after the packet is freed.

Fixes: 0ccfd14bc10d ("examples/ipsec-secgw: support inline protocol")

Signed-off-by: Anoob Joseph <anoobj at marvell.com>
Acked-by: Akhil Goyal <akhil.goyal at nxp.com>
---
 examples/ipsec-secgw/ipsec-secgw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index dfb93375a..c55606e07 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -259,4 +259,5 @@ prepare_one_packet(struct rte_mbuf *pkt, struct ipsec_traffic *t)
 			rte_be_to_cpu_16(eth->ether_type));
 		rte_pktmbuf_free(pkt);
+		return;
 	}
 
-- 
2.21.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-11-22 14:36:56.719220771 +0000
+++ 0028-examples-ipsec-secgw-fix-access-to-freed-packet.patch	2019-11-22 14:36:55.197149286 +0000
@@ -1 +1 @@
-From 1f868d90241cc6be2b378faa9dd43002b218226a Mon Sep 17 00:00:00 2001
+From 7824c471ad33c02eb1c85c63880e699bb20ca2c9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1f868d90241cc6be2b378faa9dd43002b218226a ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 0d1fd6af6..fcd656b04 100644
+index dfb93375a..c55606e07 100644
@@ -22 +23 @@
-@@ -354,4 +354,5 @@ prepare_one_packet(struct rte_mbuf *pkt, struct ipsec_traffic *t)
+@@ -259,4 +259,5 @@ prepare_one_packet(struct rte_mbuf *pkt, struct ipsec_traffic *t)



More information about the stable mailing list