Kuniyuki Iwashima faf489e689 af_unix: Set sk_peer_pid/sk_peer_cred locklessly for new socket.
init_peercred() is called in 3 places:

  1. socketpair() : both sockets
  2. connect()    : child socket
  3. listen()     : listening socket

The first two need not hold sk_peer_lock because no one can
touch the socket.

Let's set cred/pid without holding lock for the two cases and
rename the old init_peercred() to update_peercred() to properly
reflect the use case.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-06-25 11:10:18 +02:00
..
2024-05-29 09:25:15 -07:00
2024-06-14 19:08:50 -07:00
2024-06-05 10:18:06 +01:00
2024-06-10 11:54:18 +01:00
2024-05-28 07:27:29 -07:00
2024-06-17 13:14:09 +01:00
2024-06-13 11:07:32 -07:00