]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Fix data-races around keepalive sysctl knobs.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 15 Jul 2022 17:17:45 +0000 (10:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 11:21:54 +0000 (12:21 +0100)
commitff6273ea6b2d089c0cac79a9d6c1ef06fb75d67d
tree409c93d609b8093922db66f191223fd3d408d070
parentd768c7366d87f8d9b8ca416cea4c8d77b1e46331
tcp: Fix data-races around keepalive sysctl knobs.

While reading sysctl_tcp_keepalive_(time|probes|intvl), they can be changed
concurrently.  Thus, we need to add READ_ONCE() to their 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>
include/net/tcp.h
net/smc/smc_llc.c