tcp: annotate data-races around tp->keepalive_probes
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:51 +0000 (21:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 19:34:18 +0000 (12:34 -0700)
commit6e5e1de616bf5f3df1769abc9292191dfad9110a
treeaa2f5769684948278bd811c96b96845ec6b1fc4d
parent5ecf9d4f52ff2f1d4d44c9b68bc75688e82f13b4
tcp: annotate data-races around tp->keepalive_probes

do_tcp_getsockopt() reads tp->keepalive_probes while another cpu
might change its value.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c