Re: [PATCH net] tipc: Fix a data race on mon->peer_cnt in mon_timeout()

From: patchwork-bot+netdevbpf

Date: Thu Sep 24 2026 - 13:46:29 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Tue, 22 Sep 2026 16:09:09 +0800 you wrote:
> mon_timeout() evaluates dom_size(mon->peer_cnt) before it takes mon->lock,
> while mon->peer_cnt is updated under that lock by tipc_mon_add_peer() and
> tipc_mon_remove_peer(). The value can therefore be stale, and the decision
> whether the local domain has to be recomputed can be based on an outdated
> member count.
>
> Read mon->peer_cnt inside the write_lock_bh(&mon->lock) protected region.
>
> [...]

Here is the summary with links:
- [net] tipc: Fix a data race on mon->peer_cnt in mon_timeout()
https://git.kernel.org/netdev/net/c/8e1937fed673

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