aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-06-20 20:56:21 +0000
committerPaolo Abeni <[email protected]>2024-06-25 09:10:18 +0000
commitfaf489e6896d645a679d3d90a2d1d5d12c6b3e13 (patch)
treeaaf95bbcdcfddab81bbec0a7dbc52aa62460e9be /tools/testing/selftests/net/lib/py/utils.py
parentaf_unix: Define locking order for U_RECVQ_LOCK_EMBRYO in unix_collect_skb(). (diff)
downloadkernel-faf489e6896d645a679d3d90a2d1d5d12c6b3e13.tar.gz
kernel-faf489e6896d645a679d3d90a2d1d5d12c6b3e13.zip
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 <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions