]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Fix a data-race around sysctl_tcp_probe_interval.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Wed, 13 Jul 2022 20:52:05 +0000 (13:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:14:12 +0000 (17:14 +0200)
commit51de182172ad0e2d2e18e6f24cfba1684c85e86e
tree8d27bfc42502bad8102a5b9ab0ead4bfbff1f3cb
parent71aae06d9b350ad2c30eccf79def6310a3331a23
tcp: Fix a data-race around sysctl_tcp_probe_interval.

[ Upstream commit 6dbd108d836100ed8fcdaa08592279a5ee0be9ab ]

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

Fixes: e310122afc00 ("ipv4: Create probe timer for tcp PMTU as per RFC4821")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/tcp_output.c