]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Fix data-races around sk_pacing_rate.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 22 Jul 2022 18:21:59 +0000 (11:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 11:42:09 +0000 (12:42 +0100)
commit90d58471307d2cddecd49df9700fbd51ccf6a02b
tree9523c70c48008640dafe2c1a42a446b03276efa9
parent4e9f749903e64fbddd10a580541849ba104bedf2
tcp: Fix data-races around sk_pacing_rate.

While reading sysctl_tcp_pacing_(ss|ca)_ratio, they can be changed
concurrently.  Thus, we need to add READ_ONCE() to their readers.

Fixes: 0c515c21e376 ("tcp: refine pacing rate determination")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c