Re: [PATCH net-next v2] net: do not use SOCK_INODE() in sock_init_data_uid()
From: patchwork-bot+netdevbpf
Date: Tue Nov 24 2026 - 09:20:17 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 19 Nov 2026 18:04:14 +0800 you wrote:
> Since commit 5d6b58c932ec ("net: lockless sock_i_ino()"),
> sk_set_socket() reads i_uid and i_ino through SOCK_INODE(sock).
> sock_init_data_uid() calls sk_set_socket(), but its only direct users
> are tun and tap, which pass &tfile->socket and &q->sock. Those sockets
> are embedded in struct tun_file and struct tap_queue, not in a struct
> socket_alloc, so SOCK_INODE() points at whatever follows the socket in
> those structures and both reads return unrelated data.
>
> [...]
Here is the summary with links:
- [net-next,v2] net: do not use SOCK_INODE() in sock_init_data_uid()
https://git.kernel.org/netdev/net-next/c/ffa5035673e4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html