Re: [PATCH net v2] af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg

From: patchwork-bot+netdevbpf
Date: Fri May 10 2024 - 22:30:53 EST


Hello:

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

On Thu, 9 May 2024 01:14:46 -0700 you wrote:
> A data-race condition has been identified in af_unix. In one data path,
> the write function unix_release_sock() atomically writes to
> sk->sk_shutdown using WRITE_ONCE. However, on the reader side,
> unix_stream_sendmsg() does not read it atomically. Consequently, this
> issue is causing the following KCSAN splat to occur:
>
> BUG: KCSAN: data-race in unix_release_sock / unix_stream_sendmsg
>
> [...]

Here is the summary with links:
- [net,v2] af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg
https://git.kernel.org/netdev/net/c/540bf24fba16

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