]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 10:59:53 +0000 (11:59 +0100)
commit0920e9fd86787f9de983dde31bd00e418be84061
tree4d4b6ec8833da64bef4f33a85401461e7ada7dcb
parent729cb71901e9198ff5ec83e8d2765f108b75d363
net: annotate data-races around sk->sk_max_pacing_rate

BugLink: https://bugs.launchpad.net/bugs/2038236
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/core/sock.c