diff options
| author | 2024-06-20 13:56:14 -0700 | |
|---|---|---|
| committer | 2024-06-25 11:10:18 +0200 | |
| commit | ed99822817cb728eee8786c1c921c69c6be206fe (patch) | |
| tree | defdd84f96cc78516f7b07e5a7766cb62b65ef0a /include/net/af_unix.h | |
| parent | af_unix: Define locking order for unix_table_double_lock(). (diff) | |
| download | wireguard-linux-ed99822817cb728eee8786c1c921c69c6be206fe.tar.xz wireguard-linux-ed99822817cb728eee8786c1c921c69c6be206fe.zip | |
af_unix: Define locking order for U_LOCK_SECOND in unix_state_double_lock().
unix_dgram_connect() and unix_dgram_{send,recv}msg() lock the socket
and peer in ascending order of the socket address.
Let's define the order as unix_state_lock_cmp_fn() instead of using
unix_state_lock_nested().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net/af_unix.h')
0 files changed, 0 insertions, 0 deletions
