On Fri, Nov 20, 2026 at 07:32:14PM -0800, Dimitri Daskalakis wrote:
> From: Dimitri Daskalakis <dask…@meta.com>
>
> fbnic_queue_stop() stops the vector's Tx queues with netif_stop_subqueue(),
> which only sets the stop bit. This races with senders who are already in
> fbnic_xmit_frame().
>
> Use the new netif_disable_subqueue() helper prevent freeing rings
> while senders are still in xmit.
>
> This bug was found by AI and verified on HW.
>
> Forced by adding a 20ms delay in fbnic_tx_map() on Tx queue 5,
> binding devmem to rxq 5 under traffic:
> before: BUG: kernel NULL pointer dereference, address: 000000000000002e
> RIP: 0010:fbnic_clean_twq0+0xa8/0x290
> after: fbnic_queue_stop() waits for the in-flight xmit, no crash (10/10)
>
> Fixes: da43127a8edc ("eth: fbnic: support queue ops / zero-copy Rx")
> Signed-off-by: Dimitri Daskalakis <dask…@meta.com>
Reviewed-by: Simon Horman <hor…@kernel.org>