mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
tcp: tcp_get_info() should fetch socket fields once
[ Upstream commitfad9dfefea] tcp_get_info() can be called without holding socket lock, so any socket fields can change under us. Use READ_ONCE() to fetch sk_pacing_rate and sk_max_pacing_rate Fixes:977cb0ecf8("tcp: add pacing_rate information into tcp_info") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
parent
c2c3964c85
commit
12e17659b5
1 changed files with 6 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue