Files
linux-stable-mirror/include/net
Eric Dumazet e84a4927a4 net: annotate races around sk->sk_uid
sk->sk_uid can be read while another thread changes its
value in sockfs_setattr().

Add sk_uid(const struct sock *sk) helper to factorize the needed
READ_ONCE() annotations, and add corresponding WRITE_ONCE()
where needed.

Fixes: 86741ec254 ("net: core: Add a UID field to struct sock.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Reviewed-by: Maciej Żenczykowski <maze@google.com>
Link: https://patch.msgid.link/20250620133001.4090592-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-06-23 17:04:03 -07:00
..
2024-12-09 14:44:59 -08:00
2025-05-27 18:18:55 -07:00
2025-01-20 12:16:04 -08:00
2025-04-24 17:03:45 -07:00
2025-03-24 10:26:53 +00:00
2024-12-09 14:44:59 -08:00
2024-11-13 18:49:50 -08:00
2025-06-17 18:18:45 -07:00
2024-12-06 17:43:08 -08:00
2025-04-15 08:21:46 -07:00
2025-06-23 17:04:03 -07:00
2025-04-11 18:58:10 -07:00
2025-04-11 18:58:10 -07:00
2025-06-23 17:04:03 -07:00