Thread (3 messages) 3 messages, 3 authors, 2026-03-12

Re: [PATCH net] net/mana: Null service_wq on setup error to prevent double destroy

From: Simon Horman <horms@kernel.org>
Date: 2026-03-11 17:06:23
Also in: linux-rdma, lkml

On Mon, Mar 09, 2026 at 10:24:43AM -0700, Konstantin Taranov wrote:
From: Shiraz Saleem <redacted>

In mana_gd_setup() error path, set gc->service_wq to NULL after
destroy_workqueue() to match the cleanup in mana_gd_cleanup().
This prevents a use-after-free if the workqueue pointer is checked
after a failed setup.

Fixes: f975a0955276 ("net: mana: Fix double destroy_workqueue on service rescan PCI path")
Signed-off-by: Shiraz Saleem <redacted>
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help