From: Simon Horman <horms@kernel•org>
To: Konstantin Taranov <kotaranov@linux•microsoft.com>
Cc: shirazsaleem@microsoft•com, kotaranov@microsoft•com,
pabeni@redhat•com, haiyangz@microsoft•com, kys@microsoft•com,
edumazet@google•com, kuba@kernel•org, davem@davemloft•net,
decui@microsoft•com, wei.liu@kernel•org, longli@microsoft•com,
jgg@ziepe•ca, leon@kernel•org, linux-rdma@vger•kernel.org,
linux-kernel@vger•kernel.org, netdev@vger•kernel.org
Subject: Re: [PATCH net] net/mana: Null service_wq on setup error to prevent double destroy
Date: Wed, 11 Mar 2026 17:06:17 +0000 [thread overview]
Message-ID: <20260311170617.GA1133151@kernel.org> (raw)
In-Reply-To: <20260309172443.688392-1-kotaranov@linux.microsoft.com>
On Mon, Mar 09, 2026 at 10:24:43AM -0700, Konstantin Taranov wrote:
> From: Shiraz Saleem <shirazsaleem@microsoft•com>
>
> 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 <shirazsaleem@microsoft•com>
> Signed-off-by: Konstantin Taranov <kotaranov@microsoft•com>
Reviewed-by: Simon Horman <horms@kernel•org>
next prev parent reply other threads:[~2026-03-11 17:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 17:24 [PATCH net] net/mana: Null service_wq on setup error to prevent double destroy Konstantin Taranov
2026-03-11 17:06 ` Simon Horman [this message]
2026-03-12 3:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260311170617.GA1133151@kernel.org \
--to=horms@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=decui@microsoft$(echo .)com \
--cc=edumazet@google$(echo .)com \
--cc=haiyangz@microsoft$(echo .)com \
--cc=jgg@ziepe$(echo .)ca \
--cc=kotaranov@linux$(echo .)microsoft.com \
--cc=kotaranov@microsoft$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=kys@microsoft$(echo .)com \
--cc=leon@kernel$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-rdma@vger$(echo .)kernel.org \
--cc=longli@microsoft$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=shirazsaleem@microsoft$(echo .)com \
--cc=wei.liu@kernel$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox