patch 'net/ice: fix null dereference on ACL init failure' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:51:53 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
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/18/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/16923322b37d29ae15341c0aac29bc7dfc40bf07
Thanks.
Luca Boccassi
---
>From 16923322b37d29ae15341c0aac29bc7dfc40bf07 Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Fri, 6 Nov 2026 06:39:49 +0000
Subject: [PATCH] net/ice: fix null dereference on ACL init failure
[ upstream commit 93d07d28186b23e00d6ce08d3d80928c5f2ef65e ]
If ice_acl_init() fails to allocate the ACL profile array, it leaves
hw->acl_prof NULL. ice_flow_init() then fails and ice_dev_init() calls
ice_flow_uninit(), where ice_acl_prof_free() dereferences the NULL
array.
Return early from ice_acl_prof_free() when the array was never
allocated.
Fixes: 40d466fa9f76 ("net/ice: support ACL filter in DCF")
Fixes: 96b25c496aad ("net/ice: fix memzone leak after device init failure")
Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/ice/ice_acl_filter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/ice/ice_acl_filter.c
index 67c2a25c77..3a2080e791 100644
--- a/drivers/net/ice/ice_acl_filter.c
+++ b/drivers/net/ice/ice_acl_filter.c
@@ -1014,6 +1014,9 @@ ice_acl_prof_free(struct ice_hw *hw)
{
enum ice_fltr_ptype ptype;
+ if (hw->acl_prof == NULL)
+ return;
+
for (ptype = ICE_FLTR_PTYPE_NONF_NONE + 1;
ptype < ICE_FLTR_PTYPE_MAX; ptype++) {
rte_free(hw->acl_prof[ptype]);
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:18.065434767 +0000
+++ 0039-net-ice-fix-null-dereference-on-ACL-init-failure.patch 2026-11-16 22:52:16.476233166 +0000
@@ -1 +1 @@
-From 93d07d28186b23e00d6ce08d3d80928c5f2ef65e Mon Sep 17 00:00:00 2001
+From 16923322b37d29ae15341c0aac29bc7dfc40bf07 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 93d07d28186b23e00d6ce08d3d80928c5f2ef65e ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
- drivers/net/intel/ice/ice_acl_filter.c | 3 +++
+ drivers/net/ice/ice_acl_filter.c | 3 +++
@@ -24,5 +25,5 @@
-diff --git a/drivers/net/intel/ice/ice_acl_filter.c b/drivers/net/intel/ice/ice_acl_filter.c
-index 6cf8c83738..94c9ea89fd 100644
---- a/drivers/net/intel/ice/ice_acl_filter.c
-+++ b/drivers/net/intel/ice/ice_acl_filter.c
-@@ -1065,6 +1065,9 @@ ice_acl_prof_free(struct ice_hw *hw)
+diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/ice/ice_acl_filter.c
+index 67c2a25c77..3a2080e791 100644
+--- a/drivers/net/ice/ice_acl_filter.c
++++ b/drivers/net/ice/ice_acl_filter.c
+@@ -1014,6 +1014,9 @@ ice_acl_prof_free(struct ice_hw *hw)
@@ -37 +38 @@
- ice_free(hw, hw->acl_prof[ptype]);
+ rte_free(hw->acl_prof[ptype]);
More information about the stable
mailing list