diff options
author | Eric Dumazet <edumazet@google.com> | 2024-01-22 12:25:56 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-23 15:13:54 +0100 |
commit | e50e10ae5d81ddb41547114bfdc5edc04422f082 (patch) | |
tree | 2742a8e62bd5c75b5cec5b6ad53af0bfb0533350 /net/sctp | |
parent | sock_diag: annotate data-races around sock_diag_handlers[family] (diff) | |
download | linux-e50e10ae5d81ddb41547114bfdc5edc04422f082.tar.xz linux-e50e10ae5d81ddb41547114bfdc5edc04422f082.zip |
inet_diag: annotate data-races around inet_diag_table[]
inet_diag_lock_handler() reads inet_diag_table[proto] locklessly.
Use READ_ONCE()/WRITE_ONCE() annotations to avoid potential issues.
Fixes: d523a328fb02 ("[INET]: Fix inet_diag dead-lock regression")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions