Re: [PATCH] net/mlx5: Reorder completion before putting command entry in cmd_work_handler

From: patchwork-bot+netdevbpf

Date: Mon Jun 01 2026 - 09:25:56 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Tue, 26 May 2026 19:29:32 +0300 you wrote:
> Assuming callback != NULL && !page_queue, cmd_work_handler takes
> command entry with refcnt == 1 from mlx5_cmd_invoke.
> If either semaphore timeout or index allocation error happens,
> it does final cmd_ent_put(ent). To avoid access to freed memory,
> notify slotted completion before cmd_ent_put.
>
> This is theoretical issue found by Svace static analyser.
>
> [...]

Here is the summary with links:
- net/mlx5: Reorder completion before putting command entry in cmd_work_handler
https://git.kernel.org/netdev/net/c/02896a7fa4cd

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html