[PATCH net] rxrpc: Fix call timer start racing with call destruction

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Thu Mar 31 03:50:10 PDT 2022


Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <pabeni at redhat.com>:

On Wed, 30 Mar 2022 15:39:16 +0100 you wrote:
> The rxrpc_call struct has a timer used to handle various timed events
> relating to a call.  This timer can get started from the packet input
> routines that are run in softirq mode with just the RCU read lock held.
> Unfortunately, because only the RCU read lock is held - and neither ref or
> other lock is taken - the call can start getting destroyed at the same time
> a packet comes in addressed to that call.  This causes the timer - which
> was already stopped - to get restarted.  Later, the timer dispatch code may
> then oops if the timer got deallocated first.
> 
> [...]

Here is the summary with links:
  - [net] rxrpc: Fix call timer start racing with call destruction
    https://git.kernel.org/netdev/net/c/4a7f62f91933

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