]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Fix data-races around sysctl_tcp_dsack.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Wed, 20 Jul 2022 16:50:12 +0000 (09:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 09:59:37 +0000 (11:59 +0200)
commit45ef1c13b39e86a14100359c967408c0817978b7
tree7dac5d0a27b8c3a0da567f2d3b7f09c1cafe8505
parent0093b9fb092f6dba7df6614c2298f401d68e1f31
tcp: Fix data-races around sysctl_tcp_dsack.

commit f13ef8e7068d0b7cb65fb7ef9e0413984c237bfe upstream.

While reading sysctl_tcp_dsack, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its readers.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_input.c