Re: [PATCH net] ipv6, calipso: fix data-race in calipso_cache_add() bucketsize check
From: patchwork-bot+netdevbpf
Date: Fri Nov 20 2026 - 19:11:08 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sun, 15 Nov 2026 22:45:07 +0800 you wrote:
> Issue found by sashiko when reviewing my data-races patch [1]. This is
> not a plain READ_ONCE() annotation like the rest of that series but a
> real fix, so it is sent separately.
>
> calipso_cache_add() reads calipso_cache_bucketsize twice: the "<= 0"
> guard on entry, then the "size < bucketsize" test after taking the
> bucket lock. A writer can flip it to 0 in between:
>
> [...]
Here is the summary with links:
- [net] ipv6, calipso: fix data-race in calipso_cache_add() bucketsize check
https://git.kernel.org/netdev/net/c/18a7abf1a0b1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html