Re: [PATCH net] net: mctp: i3c: serialize probe with bus removal

From: patchwork-bot+netdevbpf

Date: Sat Sep 05 2026 - 04:41:22 EST


Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Wed, 2 Sep 2026 15:01:18 +0900 you wrote:
> mctp_i3c_probe() drops busdevs_lock after finding the matching bus. A
> concurrent I3C_NOTIFY_BUS_REMOVE can then unregister and free the bus
> netdev before probe passes its private data to mctp_i3c_add_device().
> The latter consequently adds a list node through a freed mbus pointer.
>
> Keep busdevs_lock held until the device has been added. This also
> satisfies the __must_hold annotation on mctp_i3c_add_device().
>
> [...]

Here is the summary with links:
- [net] net: mctp: i3c: serialize probe with bus removal
https://git.kernel.org/netdev/net/c/2b4707a149a5

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