From: Paolo Abeni <pabeni@redhat.com>
To: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>,
Jeremy Kerr <jk@codeconstruct.com.au>,
Matt Johnston <matt@codeconstruct.com.au>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] mctp: i3c: Fix potential thread leak on registration failure
Date: Mon, 23 Nov 2026 15:25:40 +0100 [thread overview]
Message-ID: <e6811e96-20df-49fd-a5b9-d343047dbd7b@redhat.com> (raw)
In-Reply-To: <20261117-571e631490-mctp-i3c-0@mail.sdu.edu.cn>
On 11/17/26 15:48, Guangshuo Li wrote:
> mctp_register_netdev() can fail before netdev registration begins,
> leaving the TX thread and bus list entry allocated. The error path
> assumes ndo_uninit has already cleaned them up.
>
> Always clean up on registration failure. Make bus cleanup idempotent
> because later registration failures can already have called ndo_uninit.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
Issues in error paths in device init/shutdown existing since the
beginning don't qualify for 'net' target. Applying to net-next.
/P
next prev parent reply other threads:[~2026-11-23 14:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 14:48 Guangshuo Li
2026-11-23 14:25 ` Paolo Abeni [this message]
2026-11-23 14:30 ` 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=e6811e96-20df-49fd-a5b9-d343047dbd7b@redhat.com \
--to=pabeni@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=jk@codeconstruct.com.au \
--cc=kuba@kernel.org \
--cc=liguangshuo@mail.sdu.edu.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeconstruct.com.au \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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
all inboxes | Powered by JetHome®