On Sun, Nov 29, 2026 at 01:53:08PM +0000, Anurag Mandal wrote:
> ixgbe_alloc_rx_queue_mbufs() returns on the first
> allocation failure and leaves the mbufs already
> allocated in the software ring.
>
> When called from ixgbe_dev_rx_queue_start(),
> nothing releases them and the queue stays in
> stopped state, so the ethdev layer does not
> call the queue stop callback either.
> The next start attempt overwrites the ring
> entries and leaks those mbufs.
>
> Free the partially allocated mbufs before
> returning the error.
>
> Fixes: 029fd06d40fa ("ixgbe: queue start and stop")
> Cc: [email protected]
>
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
> drivers/net/intel/ixgbe/ixgbe_rxtx.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH 8/8] net/ixgbe: fix VF interrupt callback... Bruce Richardson
- [PATCH 6/8] net/ixgbe: fix security context leak on init ... Anurag Mandal
- Re: [PATCH 6/8] net/ixgbe: fix security context leak... Bruce Richardson
- [PATCH 5/8] net/ixgbe: fix VF representor port leak Anurag Mandal
- Re: [PATCH 5/8] net/ixgbe: fix VF representor port l... Bruce Richardson
- [PATCH 2/8] net/ixgbe: fix Tx queue leak on ring allocati... Anurag Mandal
- Re: [PATCH 2/8] net/ixgbe: fix Tx queue leak on ring... Bruce Richardson
- [PATCH 1/8] net/ixgbe: fix Tx mbuf leak on queue stop Anurag Mandal
- Re: [PATCH 1/8] net/ixgbe: fix Tx mbuf leak on queue... Bruce Richardson
- [PATCH 3/8] net/ixgbe: fix Rx mbuf leak on queue start fa... Anurag Mandal
- Re: [PATCH 3/8] net/ixgbe: fix Rx mbuf leak on queue... Bruce Richardson
- [PATCH v2 0/9] net/ixgbe: fix memory and resource leaks Anurag Mandal
- [PATCH v2 2/9] net/ixgbe: fix Tx queue leak on ring ... Anurag Mandal
- [PATCH v2 4/9] net/ixgbe: fix MAC address leak on de... Anurag Mandal
- [PATCH v2 7/9] net/ixgbe: fix eventfd leak on start ... Anurag Mandal
- [PATCH v2 1/9] net/ixgbe: fix Tx mbuf leak on queue ... Anurag Mandal
- [PATCH v2 9/9] net/ixgbe: fix VF interrupt callback ... Anurag Mandal
- [PATCH v2 8/9] net/ixgbe: fix VF use after free in i... Anurag Mandal
- [PATCH v2 6/9] net/ixgbe: fix security context leak ... Anurag Mandal
- [PATCH v2 3/9] net/ixgbe: fix Rx mbuf leak on queue ... Anurag Mandal
- [PATCH v2 5/9] net/ixgbe: fix VF representor port le... Anurag Mandal

