On Sun, Nov 29, 2026 at 01:53:11PM +0000, Anurag Mandal wrote:
> ixgbe_ipsec_ctx_create() stores the newly allocated
> security context in the device before registering the
> security dynamic mbuf field.
> If that registration fails, eth_ixgbe_dev_init()
> returns without freeing the context, and
> rte_eth_dev_release_port() does not free it either.
>
> Go through the existing error path, which frees the context.
>
> Fixes: 614af7548968 ("security: switch metadata to dynamic mbuf field")
> Cc: [email protected]
>
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
> drivers/net/intel/ixgbe/ixgbe_ethdev.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>
- [PATCH 0/8] net/ixgbe: fix memory and resource leaks Anurag Mandal
- [PATCH 4/8] net/ixgbe: fix MAC address leak on devic... Anurag Mandal
- Re: [PATCH 4/8] net/ixgbe: fix MAC address leak ... Bruce Richardson
- [PATCH 7/8] net/ixgbe: fix eventfd leak on start fai... Anurag Mandal
- Re: [PATCH 7/8] net/ixgbe: fix eventfd leak on s... Bruce Richardson
- [PATCH 8/8] net/ixgbe: fix VF interrupt callback lea... Anurag Mandal
- Re: [PATCH 8/8] net/ixgbe: fix VF interrupt call... Bruce Richardson
- [PATCH 6/8] net/ixgbe: fix security context leak on ... Anurag Mandal
- Re: [PATCH 6/8] net/ixgbe: fix security context ... Bruce Richardson
- [PATCH 5/8] net/ixgbe: fix VF representor port leak Anurag Mandal
- Re: [PATCH 5/8] net/ixgbe: fix VF representor po... Bruce Richardson
- [PATCH 2/8] net/ixgbe: fix Tx queue leak on ring all... Anurag Mandal
- Re: [PATCH 2/8] net/ixgbe: fix Tx queue leak on ... Bruce Richardson
- [PATCH 1/8] net/ixgbe: fix Tx mbuf leak on queue sto... Anurag Mandal
- Re: [PATCH 1/8] net/ixgbe: fix Tx mbuf leak on q... Bruce Richardson
- [PATCH 3/8] net/ixgbe: fix Rx mbuf leak on queue sta... Anurag Mandal
- Re: [PATCH 3/8] net/ixgbe: fix Rx mbuf leak on q... Bruce Richardson
- [PATCH v2 0/9] net/ixgbe: fix memory and resource le... Anurag Mandal
- [PATCH v2 2/9] net/ixgbe: fix Tx queue leak on r... Anurag Mandal

