linux-yocto/net/appletalk
Eric Dumazet 242124e3e3 net: remove sock_i_uid()
[ Upstream commit c51da3f7a1 ]

Difference between sock_i_uid() and sk_uid() is that
after sock_orphan(), sock_i_uid() returns GLOBAL_ROOT_UID
while sk_uid() returns the last cached sk->sk_uid value.

None of sock_i_uid() callers care about this.

Use sk_uid() which is much faster and inlined.

Note that diag/dump users are calling sock_i_ino() and
can not see the full benefit yet.

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-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 5d6b58c932ec ("net: lockless sock_i_ino()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 19:02:26 +02:00
..
aarp.c net: appletalk: Fix use-after-free in AARP proxy probe 2025-07-21 16:55:08 -07:00
atalk_proc.c net: remove sock_i_uid() 2025-09-09 19:02:26 +02:00
ddp.c net: appletalk: Fix device refcount leak in atrtr_create() 2025-07-10 18:01:08 -07:00
Kconfig appletalk: remove ipddp driver 2023-10-10 17:49:00 -07:00
Makefile appletalk: Remove deadcode 2024-10-04 12:42:32 +01:00
sysctl_net_atalk.c appletalk: Remove the now superfluous sentinel elements from ctl_table array 2024-05-03 13:29:42 +01:00