[PATCH v2 7/7] net/ice: fix ACL profile segment leak
Bruce Richardson
bruce.richardson at intel.com
Wed Nov 4 17:45:00 CET 2026
On Mon, Nov 02, 2026 at 08:10:37AM +0000, Anurag Mandal wrote:
> ice_acl_prof_init() allocates a flow segment to add the ACL profiles,
> but only frees it on the error path, so it leaks on every ACL engine
> init.
>
> ice_flow_add_prof() copies the segments, so the buffer is only needed
> while adding the profiles.
>
> Allocate it on the stack instead, which removes the need to free it.
>
> Fixes: 40d466fa9f76 ("net/ice: support ACL filter in DCF")
> Cc: stable at dpdk.org
>
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---
> drivers/net/intel/ice/ice_acl_filter.c | 46 +++++++++++---------------
> 1 file changed, 20 insertions(+), 26 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the stable
mailing list