net/mlx5e: Prevent stale XSK buffer release on refill retry
Subsystems (7)
PATCH v2 1/1 net/mlx5e: Prevent stale XSK buffer release on refill retry
When an XDP redirect to an AF_XDP socket fails because its RX ring is full, the XSK core frees the buffer. During the subsequent batched refill of a legacy cyclic RQ, mlx5e also releases the WQE's XSK buffer before allocating a replacement. If that refill succeeds only partially, a WQE left without a replacement retains its old buffer pointer.
The buffer can meanwhile be allocated to another WQE. A later refill retry can then free the live buffer through the stale pointer and publish the same UMEM frame twice.
Mark the WQE as released immediately after the driver-side free. The flag is already cleared when a replacement buffer is assigned, so refill retries no longer release stale pointers.
The failure is silent and produces no kernel warning or splat. A standalone legacy cyclic-RQ zero-copy libxsk reproducer, using 64-byte UDP traffic offered at 12 Mpps, detected it: stock stopped after 2,854,914 packets in 4.094 seconds, with 4,542 xdp_rx_ring_full events and 64 ownership/double-publication errors. With this change it processed 356,904,225 packets in 30 seconds despite 571,405 xdp_rx_ring_full events, with no ownership or data errors.
---
Changes in v2:
- Reorder and tighten the problem statement.
- State explicitly that the failure produces no warning or splat.
- Add Dragos' Reviewed-by tag.
v1: https://lore.kernel.org/netdev/[email protected]/
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5 -2
@@ -410,8 +410,11 @@ static inline void mlx5e_free_rx_wqe(struct mlx5e_rq *rq,static void mlx5e_xsk_free_rx_wqe (struct mlx5e_wqe_frag_info *wi) { -if (!(wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ))) -xsk_buff_free (*wi->xskp); +if (wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE )) +return ; + +xsk_buff_free (*wi->xskp); + wi->flags |=BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ); }static void mlx5e_dealloc_rx_wqe (struct mlx5e_rq *rq,u16 ix)
Signature · 1 line
2.55.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Incomplete Fix: Double Free in MPWQE path on XSK ring full --
--- Patch [1]: [PATCH net v2] net/mlx5e: Prevent stale XSK buffer release on refill retry --- commit c24da150351198b044b52cb55d5ba341b752ae81
Author: Jerome Tollet <[email protected]>
net/mlx5e: Prevent stale XSK buffer release on refill retry
When an XDP redirect to an AF_XDP socket fails because its RX ring is full, the XSK core frees the buffer. During the subsequent batched refill of a legacy cyclic RQ, mlx5e also releases the WQE's XSK buffer before allocating a replacement. If that refill succeeds only partially, a WQE left without a replacement retains its old buffer pointer.
Quoted 6 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +0
-0@@ -410,8 +410,11 @@ static inline void mlx5e_free_rx_wqe(struct mlx5e_rq *rq,
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c static inline void mlx5e_free_rx_wqe(struct mlx5e_rq *rq, · line 418
Quoted 10 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5
-2static void mlx5e_xsk_free_rx_wqe (struct mlx5e_wqe_frag_info *wi) { -if (!(wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ))) -xsk_buff_free (*wi->xskp); +if (wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE )) +return ; + +xsk_buff_free (*wi->xskp); + wi->flags |=BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ); }
[Severity: High]
This isn't a bug introduced by this patch, but does a similar double-free vulnerability exist in the MPWQE path?
It looks like the same sequence of events can happen for multi-packet WQEs when the XSK RX ring is full. In mlx5e_post_rx_mpwqes() (in en_rx.c):
mlx5e_post_rx_mpwqes() {
...
mlx5e_free_rx_mpwqe();
...
alloc_err = mlx5e_xsk_alloc_rx_mpwqe();
if (unlikely(alloc_err)) {
...
break;
}
}If mlx5e_xsk_alloc_rx_mpwqe() fails (e.g., returning -ENOMEM), it returns without filling the skip_release_bitmap with 1s. This differs from the standard mlx5e_alloc_rx_mpwqe() path which correctly calls bitmap_fill() on error.
When the allocation fails, the loop breaks early and actual_wq_head is not advanced.
On the next NAPI poll, won't mlx5e_post_rx_mpwqes() process this same WQE head again? Since skip_release_bitmap is still 0, mlx5e_free_rx_mpwqe() will execute xsk_buff_free() on the same pointers, causing a double-free.
Should mlx5e_xsk_alloc_rx_mpwqe() also fill the skip_release_bitmap on error, or should mlx5e_free_rx_mpwqe() update the bitmap immediately after freeing the buffers, similar to your fix here for the legacy cyclic RQ?
Quoted 2 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +0
-0static void mlx5e_dealloc_rx_wqe (struct mlx5e_rq *rq,u16 ix)
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
v3 cover net/mlx5e: Prevent stale XSK buffer release on refill retries
In reply to Jerome TolletPrevent duplicate XSK buffer release when a deferred RX refill fails and the same WQE is retried.
Patch 1 fixes legacy cyclic RQ. It is unchanged from v2 and retains Dragos' Reviewed-by tag.
Patch 2 fixes the analogous striding-RQ MPWQE path pointed out by the Sashiko automated review. Targeted fault injection forced three consecutive allocation failures for one MPWQE. Stock freed the same 16 XSK buffer pointers three times; the fix freed each pointer only once, made subsequent releases no-ops, and preserved the successful allocation path's bitmap reset.
Changes in v3:
- Turn the submission into a two-patch series.
- Add the striding-RQ MPWQE fix and its dedicated Fixes tag.
- Rebase onto net/main at 4e15e89faac9.
v2: https://lore.kernel.org/netdev/[email protected]/
Jerome Tollet (2):
net/mlx5e: Prevent stale XSK buffer release on refill retry net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
Signature · 1 line
2.55.0
PATCH v3 1/2 net/mlx5e: Prevent stale XSK buffer release on refill retry
When an XDP redirect to an AF_XDP socket fails because its RX ring is full, the XSK core frees the buffer. During the subsequent batched refill of a legacy cyclic RQ, mlx5e also releases the WQE's XSK buffer before allocating a replacement. If that refill succeeds only partially, a WQE left without a replacement retains its old buffer pointer.
The buffer can meanwhile be allocated to another WQE. A later refill retry can then free the live buffer through the stale pointer and publish the same UMEM frame twice.
Mark the WQE as released immediately after the driver-side free. The flag is already cleared when a replacement buffer is assigned, so refill retries no longer release stale pointers.
The failure is silent and produces no kernel warning or splat. A standalone legacy cyclic-RQ zero-copy libxsk reproducer, using 64-byte UDP traffic offered at 12 Mpps, detected it: stock stopped after 2,854,914 packets in 4.094 seconds, with 4,542 xdp_rx_ring_full events and 64 ownership/double-publication errors. With this change it processed 356,904,225 packets in 30 seconds despite 571,405 xdp_rx_ring_full events, with no ownership or data errors.
--- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5 -2
@@ -410,8 +410,11 @@ static inline void mlx5e_free_rx_wqe(struct mlx5e_rq *rq,static void mlx5e_xsk_free_rx_wqe (struct mlx5e_wqe_frag_info *wi) { -if (!(wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ))) -xsk_buff_free (*wi->xskp); +if (wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE )) +return ; + +xsk_buff_free (*wi->xskp); + wi->flags |=BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ); }static void mlx5e_dealloc_rx_wqe (struct mlx5e_rq *rq,u16 ix)
Signature · 1 line
2.55.0
PATCH v3 2/2 net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
In reply to Jerome TolletWith AF_XDP on a striding RQ, mlx5e defers releasing XSK buffers until an MPWQE is refilled. If XSK allocation then returns -ENOMEM, actual_wq_head is not advanced and a later NAPI poll retries the same WQE.
mlx5e_free_rx_mpwqe() currently leaves each released slot marked as releasable. On retry it can therefore call xsk_buff_free() again through stale pointers after the frames have returned to the XSK pool and been reallocated.
Mark each slot as released immediately after xsk_buff_free(). The successful allocation path already clears the bitmap after replacing all buffers, so retries become idempotent without changing the success path.
Fault injection forced three consecutive allocation failures for one selected MPWQE in AF_XDP zero-copy mode. Stock freed the same 16 XSK buffer pointers on all three attempts, for 48 frees. With this change, only the initial 16 frees occurred; retries observed a full bitmap, and a later successful allocation cleared it.
--- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5 -2
@@ -609,9 +609,12 @@ mlx5e_free_rx_mpwqe(struct mlx5e_rq *rq, struct mlx5e_mpw_info *wi)* is no way to return the page to userspace when the interface * goes down. */ -for (i =0 ; i < rq->mpwqe.pages_per_wqe; i++) -if (no_xdp_xmit || !test_bit (i, wi->skip_release_bitmap)) +for (i =0 ; i < rq->mpwqe.pages_per_wqe; i++) { +if (no_xdp_xmit || !test_bit (i, wi->skip_release_bitmap)) {xsk_buff_free (xsk_buffs[i]); +__set_bit (i, wi->skip_release_bitmap); + } + } }else {for (i =0 ; i < rq->mpwqe.pages_per_wqe; i++) {if (no_xdp_xmit || !test_bit (i, wi->skip_release_bitmap)) {
Signature · 1 line
2.55.0
Re: [PATCH net v3 2/2] net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
Quoted 37 lines · Jerome Tollet
With
AF_XDPon a striding RQ, mlx5e defers releasing XSK buffers until an MPWQE is refilled. If XSK allocation then returns-ENOMEM,actual_wq_headis not advanced and a later NAPI poll retries the same WQE.
mlx5e_free_rx_mpwqe()currently leaves each released slot marked as releasable. On retry it can therefore callxsk_buff_free()again through stale pointers after the frames have returned to the XSK pool and been reallocated.Mark each slot as released immediately after
xsk_buff_free(). The successful allocation path already clears the bitmap after replacing all buffers, so retries become idempotent without changing the success path.Fault injection forced three consecutive allocation failures for one selected MPWQE in
AF_XDPzero-copy mode. Stock freed the same 16 XSK buffer pointers on all three attempts, for 48 frees. With this change, only the initial 16 frees occurred; retries observed a full bitmap, and a later successful allocation cleared it.Fixes 4c2a13236807 ("net/mlx5e: RX, Defer page release in striding rq for better recycling")Signed-off-by Jerome Tollet <[email protected]>--- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +0
-1@@ -609,9 +609,12 @@ mlx5e_free_rx_mpwqe(struct mlx5e_rq *rq, struct mlx5e_mpw_info *wi)* is no way to return the page to userspace when the interface * goes down. */ -for (i =0 ; i < rq->mpwqe.pages_per_wqe; i++)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c mlx5e_free_rx_mpwqe(struct mlx5e_rq *rq, struct mlx5e_mpw_info *wi) · line 620
Quoted 10 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5
-1-if (no_xdp_xmit || !test_bit (i, wi->skip_release_bitmap)) +for (i =0 ; i < rq->mpwqe.pages_per_wqe; i++) { +if (no_xdp_xmit || !test_bit (i, wi->skip_release_bitmap)) {xsk_buff_free (xsk_buffs[i]); +__set_bit (i, wi->skip_release_bitmap); + } + } }else {for (i =0 ; i < rq->mpwqe.pages_per_wqe; i++) {if (no_xdp_xmit || !test_bit (i, wi->skip_release_bitmap)) {
I'd change this to be consistent with mlx5e_alloc_rx_mpwqe(): set skip_release_bitmap bits in error path of mlx5e_xsk_alloc_rx_mpwqe.
Thanks,
Dragos
Re: [PATCH net v3 2/2] net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
Hi Dragos,
Agreed, thanks. I changed the patch to set all skip_release_bitmap bits in the common error path of mlx5e_xsk_alloc_rx_mpwqe(), consistently with mlx5e_alloc_rx_mpwqe().
I tested both early and partial allocation failures. With three consecutive failures on the same MPWQE, the original 16 XSK buffers were released only once. Retries observed a full bitmap, and a later successful allocation cleared it. The partial case allocated 8 of 16 replacement buffers before unwinding.
I also ran a 20-second AF_XDP zero-copy striding-RQ pressure test with the clean patch. It exercised 1,575,262 XSK buffer allocation failures and reported no invalid descriptors, WQE errors, or kernel warnings.
I'll send v4 with this change.
Thanks,
Jerome
Re: [PATCH net v3 2/2] net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
Hi Jerome,
Quoted 12 lines · Jerome Tollet
Hi Dragos,
Agreed, thanks. I changed the patch to set all
skip_release_bitmapbits in the common error path ofmlx5e_xsk_alloc_rx_mpwqe(), consistently withmlx5e_alloc_rx_mpwqe().I tested both early and partial allocation failures. With three consecutive failures on the same MPWQE, the original 16 XSK buffers were released only once. Retries observed a full bitmap, and a later successful allocation cleared it. The partial case allocated 8 of 16 replacement buffers before unwinding.
Quoted 6 lines
I also ran a 20-second
AF_XDPzero-copy striding-RQ pressure test with the clean patch. It exercised 1,575,262 XSK buffer allocation failures and reported no invalid descriptors, WQE errors, or kernel warnings.I'll send v4 with this change.
Thanks for the v4 and the thorough testing! v4 looks good to me.
Thanks,
Dragos
v4 cover net/mlx5e: Prevent stale XSK buffer release on refill retries
In reply to Jerome TolletPrevent duplicate XSK buffer release when a deferred RX refill fails and the same WQE is retried.
Patch 1 fixes legacy cyclic RQ. It is unchanged from v3 and retains Dragos' Reviewed-by tag.
Patch 2 fixes the analogous striding-RQ MPWQE path. Following Dragos' review, it now fills skip_release_bitmap in the common error path of mlx5e_xsk_alloc_rx_mpwqe(), consistently with mlx5e_alloc_rx_mpwqe().
Targeted fault injection covered both an early allocation failure and a partial 8-of-16-buffer unwind. With three consecutive failures for one MPWQE, the original 16 XSK buffers were released only once, retries saw a full bitmap, and a later successful allocation cleared it. A clean 20-second AF_XDP zero-copy pressure run exercised 1,575,262 buffer allocation failures without invalid descriptors, WQE errors, or kernel warnings.
Changes in v4:
- Keep patch 1 unchanged.
- Move the MPWQE bitmap update from the release loop to the common XSK allocator error path, as suggested by Dragos.
- Validate both early and partial allocation failures and run an additional zero-copy pressure test.
v3: https://lore.kernel.org/netdev/[email protected]/
Jerome Tollet (2):
net/mlx5e: Prevent stale XSK buffer release on refill retry net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c | 2 ++ drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-)
base-commit: 4e15e89faac9f308baeb01f46c13a051814d2449
Signature · 1 line
2.55.0
PATCH v4 1/2 net/mlx5e: Prevent stale XSK buffer release on refill retry
When an XDP redirect to an AF_XDP socket fails because its RX ring is full, the XSK core frees the buffer. During the subsequent batched refill of a legacy cyclic RQ, mlx5e also releases the WQE's XSK buffer before allocating a replacement. If that refill succeeds only partially, a WQE left without a replacement retains its old buffer pointer.
The buffer can meanwhile be allocated to another WQE. A later refill retry can then free the live buffer through the stale pointer and publish the same UMEM frame twice.
Mark the WQE as released immediately after the driver-side free. The flag is already cleared when a replacement buffer is assigned, so refill retries no longer release stale pointers.
The failure is silent and produces no kernel warning or splat. A standalone legacy cyclic-RQ zero-copy libxsk reproducer, using 64-byte UDP traffic offered at 12 Mpps, detected it: stock stopped after 2,854,914 packets in 4.094 seconds, with 4,542 xdp_rx_ring_full events and 64 ownership/double-publication errors. With this change it processed 356,904,225 packets in 30 seconds despite 571,405 xdp_rx_ring_full events, with no ownership or data errors.
--- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +5 -2
@@ -410,8 +410,11 @@ static inline void mlx5e_free_rx_wqe(struct mlx5e_rq *rq,static void mlx5e_xsk_free_rx_wqe (struct mlx5e_wqe_frag_info *wi) { -if (!(wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ))) -xsk_buff_free (*wi->xskp); +if (wi->flags &BIT (MLX5E_WQE_FRAG_SKIP_RELEASE )) +return ; + +xsk_buff_free (*wi->xskp); + wi->flags |=BIT (MLX5E_WQE_FRAG_SKIP_RELEASE ); }static void mlx5e_dealloc_rx_wqe (struct mlx5e_rq *rq,u16 ix)
Signature · 1 line
2.55.0
PATCH v4 2/2 net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
In reply to Jerome TolletWith AF_XDP on a striding RQ, mlx5e defers releasing XSK buffers until an MPWQE is refilled. If XSK allocation then returns -ENOMEM, actual_wq_head is not advanced and a later NAPI poll retries the same WQE.
mlx5e_free_rx_mpwqe() leaves each released slot marked as releasable. On retry it can therefore call xsk_buff_free() again through stale pointers after the frames have returned to the XSK pool and been reallocated.
Set all skip_release_bitmap bits in the common error path of mlx5e_xsk_alloc_rx_mpwqe(). This matches mlx5e_alloc_rx_mpwqe(). A successful allocation already clears the bitmap after replacing every buffer, so retries become idempotent without changing the success path.
Fault injection forced three consecutive failures for one selected MPWQE. Both an early allocation failure and a partial 8-of-16-buffer unwind released the original 16 XSK buffers only once. Each error left a full bitmap, the following NAPI retry skipped the release, and a later successful allocation cleared it. A 20-second AF_XDP zero-copy pressure run exercised 1,575,262 buffer allocation failures without invalid descriptors, WQE errors, or kernel warnings.
--- drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c +2 -0
@@ -3,6 +3,7 @@#include "rx.h" #include "en/xdp.h" +#include <linux/bitmap.h> #include <net/xdp_sock_drv.h> #include <linux/filter.h>
@@ -156,6 +157,7 @@ err_reuse_batch:xsk_buff_free (xsk_buffs[batch]); err: +bitmap_fill (wi->skip_release_bitmap, rq->mpwqe.pages_per_wqe); rq->stats->buff_alloc_err++;return -ENOMEM ; }
Signature · 1 line
2.55.0
Re: [PATCH net v4 2/2] net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
Quoted 42 lines · Jerome Tollet
With
AF_XDPon a striding RQ, mlx5e defers releasing XSK buffers until an MPWQE is refilled. If XSK allocation then returns-ENOMEM,actual_wq_headis not advanced and a later NAPI poll retries the same WQE.
mlx5e_free_rx_mpwqe()leaves each released slot marked as releasable. On retry it can therefore callxsk_buff_free()again through stale pointers after the frames have returned to the XSK pool and been reallocated.Set all
skip_release_bitmapbits in the common error path ofmlx5e_xsk_alloc_rx_mpwqe(). This matchesmlx5e_alloc_rx_mpwqe(). A successful allocation already clears the bitmap after replacing every buffer, so retries become idempotent without changing the success path.Fault injection forced three consecutive failures for one selected MPWQE. Both an early allocation failure and a partial 8-of-16-buffer unwind released the original 16 XSK buffers only once. Each error left a full bitmap, the following NAPI retry skipped the release, and a later successful allocation cleared it. A 20-second
AF_XDPzero-copy pressure run exercised 1,575,262 buffer allocation failures without invalid descriptors, WQE errors, or kernel warnings.Fixes 4c2a13236807 ("net/mlx5e: RX, Defer page release in striding rq for better recycling")Signed-off-by Jerome Tollet <[email protected]>--- drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c +1
-0@@ -3,6 +3,7 @@#include "rx.h" #include "en/xdp.h" +#include <linux/bitmap.h> #include <net/xdp_sock_drv.h> #include <linux/filter.h>
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c err_reuse_batch: · line 163
Quoted 7 lines
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c +1
-0@@ -156,6 +157,7 @@ err_reuse_batch:xsk_buff_free (xsk_buffs[batch]); err: +bitmap_fill (wi->skip_release_bitmap, rq->mpwqe.pages_per_wqe); rq->stats->buff_alloc_err++;return -ENOMEM ; }
Thanks,
Dragos
Re: [PATCH net v4 2/2] net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
In reply to Jerome TolletHi Dragos,
Thanks for the review and for suggesting the error-path approach.
Regards,
Jerome
Re: [PATCH net v4 2/2] net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
In reply to Jerome TolletAdding William Tu to Cc, as suggested by get_maintainer.pl. Apologies for the omission.
Regards,
Jerome
Re: [PATCH net v4 0/2] net/mlx5e: Prevent stale XSK buffer release on refill retries
In reply to Jerome TolletThis series was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 11 lines · On Mon, 24 Aug 2026 16:16:43 +0200 you wrote:
Prevent duplicate XSK buffer release when a deferred RX refill fails and the same WQE is retried.
Patch 1 fixes legacy cyclic RQ. It is unchanged from v3 and retains Dragos' Reviewed-by tag.
Patch 2 fixes the analogous striding-RQ MPWQE path. Following Dragos' review, it now fills
skip_release_bitmapin the common error path ofmlx5e_xsk_alloc_rx_mpwqe(), consistently withmlx5e_alloc_rx_mpwqe().[...]
Here is the summary with links:
- [net,v4,1/2] net/mlx5e: Prevent stale XSK buffer release on refill retry
https://git.kernel.org/netdev/net/c/e01620844c5c - [net,v4,2/2] net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry https://git.kernel.org/netdev/net/c/63811edf5125
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html