From: Kenny Hsieh <kenny_hsieh@jabil.com>
To: "netdev-bot+sashiko@kernel.org" <netdev-bot+sashiko@kernel.org>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"jk@codeconstruct.com.au" <jk@codeconstruct.com.au>,
"matt@codeconstruct.com.au" <matt@codeconstruct.com.au>,
"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@kernel.org" <edumazet@kernel.org>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net v4] mctp i2c: fix double free of midev on netdev register failure
Date: Tue, 24 Nov 2026 05:21:00 +0000 [thread overview]
Message-ID: <DM8PR02MB80874F4F75254E2C19665EB98E442@DM8PR02MB8087.namprd02.prod.outlook.com> (raw)
In-Reply-To: <179542769062.3135.9147379725438179456@kernel.org>
The three mctp-i2c ones are right. v5 will:
- take the unlock marker off and splice tx_queue out under one hold
of the queue lock, so release_flow() can't requeue it in between
- stop the tx thread at the start of ndo_uninit, so on a failed
register it can't select midev again after the detach
- drop the unlock_reset() in mctp_i2c_midev_free(), since the tx
thread already drops the bus lock when it stops
The mctp-i3c issue and the mctp_dev leak in mctp_register_netdevice()
are outside mctp-i2c, so I'll leave them out of this series.
pw-bot: cr
prev parent reply other threads:[~2026-11-24 5:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 9:43 Kenny Hsieh
2026-11-23 9:54 ` netdev-bot+sashiko
2026-11-24 5:21 ` Kenny Hsieh [this message]
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=DM8PR02MB80874F4F75254E2C19665EB98E442@DM8PR02MB8087.namprd02.prod.outlook.com \
--to=kenny_hsieh@jabil.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=jk@codeconstruct.com.au \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeconstruct.com.au \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stable@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®