[PATCH net] rxrpc: Fix potential data race in rxrpc_wait_to_be_connected()
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Thu Apr 27 01:10:19 PDT 2023
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni at redhat.com>:
On Tue, 25 Apr 2023 13:56:35 +0100 you wrote:
> Inside the loop in rxrpc_wait_to_be_connected() it checks call->error to
> see if it should exit the loop without first checking the call state. This
> is probably safe as if call->error is set, the call is dead anyway, but we
> should probably wait for the call state to have been set to completion
> first, lest it cause surprise on the way out.
>
> Fix this by only accessing call->error if the call is complete. We don't
> actually need to access the error inside the loop as we'll do that after.
>
> [...]
Here is the summary with links:
- [net] rxrpc: Fix potential data race in rxrpc_wait_to_be_connected()
https://git.kernel.org/netdev/net/c/2b5fdc0f5caa
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