net: annotate data-races around sk->sk_max_pacing_rate
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:10 +0000 (15:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2023 17:13:41 +0000 (18:13 +0100)
commitea7f45ef77b39e72244d282e47f6cb1ef4135cd2
tree5bdc4e61b408719dc8d8d31a92120aaf6644e4fe
parentc76a0328899bbe226f8adeb88b8da9e4167bd316
net: annotate data-races around sk->sk_max_pacing_rate

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

Fixes: 62748f32d501 ("net: introduce SO_MAX_PACING_RATE")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c