Thread (3 messages) flat view 3 messages, 3 authors, 15d ago

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

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-05 08:41:09
Also in: lkml

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help