net: annotate data-race around sk->sk_txrehash
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:09 +0000 (15:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2023 17:13:41 +0000 (18:13 +0100)
commitc76a0328899bbe226f8adeb88b8da9e4167bd316
tree12ce3f51323a75a8ecdff5de9c2e699924ce57d9
parentfe11fdcb4207907d80cda2e73777465d68131e66
net: annotate data-race around sk->sk_txrehash

sk_getsockopt() runs locklessly. This means sk->sk_txrehash
can be read while other threads are changing its value.

Other locations were handled in commit cb6cd2cec799
("tcp: Change SYN ACK retransmit behaviour to account for rehash")

Fixes: 26859240e4ee ("txhash: Add socket option to control TX hash rethink behavior")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Akhmat Karakotov <hmukos@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c