[PATCH net] rxrpc, afs: Fix peer hash locking vs RCU callback

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Mon Jan 27 15:10:41 PST 2025


Hello:

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

On Thu, 23 Jan 2025 08:59:12 +0000 you wrote:
> In its address list, afs now retains pointers to and refs on one or more
> rxrpc_peer objects.  The address list is freed under RCU and at this time,
> it puts the refs on those peers.
> 
> Now, when an rxrpc_peer object runs out of refs, it gets removed from the
> peer hash table and, for that, rxrpc has to take a spinlock.  However, it
> is now being called from afs's RCU cleanup, which takes place in BH
> context - but it is just taking an ordinary spinlock.
> 
> [...]

Here is the summary with links:
  - [net] rxrpc, afs: Fix peer hash locking vs RCU callback
    https://git.kernel.org/netdev/net/c/79d458c13056

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





More information about the linux-afs mailing list