[PATCH 1/1] net/mlx5: fix crash if malloc FCQS fails

Dariusz Sosnowski dsosnowski at nvidia.com
Fri May 8 14:51:57 CEST 2026


On Fri, Apr 24, 2026 at 06:48:33PM +0800, Yunjian Wang wrote:
> A crash is triggered when memory malloc for FCQS fails. Currently,
> the abnormal branch releases the txq, and it removes the 'txq_ctrl->obj'
> from the linked list, but the 'txq_ctrl->obj' has not actually been
> added to the linked list yet. This triggers a null pointer reference
> issue.
> 
> The call stack is as follows:
> Program terminated with signal 11, Segmentation fault.
> 1210			LIST_REMOVE(txq_ctrl->obj, next);
> (gdb) bt
>  #0 mlx5_txq_release
>  #1 mlx5_txq_start
>  #2 mlx5_dev_start
>  #3 rte_eth_dev_start
>  #4 member_start
>  #5 bond_ethdev_start
> 
> Fixes: f49f44839df3 ("net/mlx5: share Tx control code")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>

Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Thank you for the contribution.

Best regards,
Dariusz Sosnowski


More information about the dev mailing list