]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Fix a data-race around sysctl_tcp_challenge_ack_limit.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Wed, 20 Jul 2022 16:50:21 +0000 (09:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 09:59:38 +0000 (11:59 +0200)
commit9013103b91f6837d71d2c5aff84aa0a0336c7d7d
tree949157b3cd5ade6321a72559eed8f7f3177694af
parente21f805185a645d9f15652e2130d376a09ee17d3
tcp: Fix a data-race around sysctl_tcp_challenge_ack_limit.

commit 0bcb9460e513955ebc7a7b4f4a91b73a5b9ab61c upstream.

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

Fixes: 79fe972a0c2e ("tcp: implement RFC 5961 3.2")
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