Commit 2d6f44c3 authored by Eric Dumazet's avatar Eric Dumazet Committed by sanglipeng
Browse files

net: annotate data-races around sk->sk_max_pacing_rate

stable inclusion
from stable-v5.10.190
commit c7ebe08f4081fe69c719c5690c3211d125f625b6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c7ebe08f4081fe69c719c5690c3211d125f625b6



--------------------------------

[ Upstream commit ea7f45ef ]

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

Fixes: 62748f32 ("net: introduce SO_MAX_PACING_RATE")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 28c8f251
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment