]> 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)
commit59bf6c65a09fff74215517aecffbbdcd67df76e3
tree9523c70c48008640dafe2c1a42a446b03276efa9
parent3e7d18b9dca388940a19cae30bfc1f76dccd8c28
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: 43e122b014c9 ("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