]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 13:13:51 +0000 (15:13 +0200)
commit6c058a1f67f0b2cbc22dedb05b02e1555d6d19b6
tree1ad24136b7b91962112c803e5a7a2881b68b55bc
parent2950c5ac65b32477d2978f4a5bd8ea67f33f004c
net: annotate data-races around sk->sk_max_pacing_rate

[ Upstream commit ea7f45ef77b39e72244d282e47f6cb1ef4135cd2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/sock.c