tcp: annotate data-races around tp->tsoffset
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:48 +0000 (21:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 19:34:18 +0000 (12:34 -0700)
commitdd23c9f1e8d5c1d2e3d29393412385ccb9c7a948
treeb7d8227c1b6611044c615f883faa6144ea84cb7e
parent348b81b68b13ebd489a3e6a46aa1c384c731c919
tcp: annotate data-races around tp->tsoffset

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

Fixes: 93be6ce0e91b ("tcp: set and get per-socket timestamp")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c