]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: annotate data-races around tp->tsoffset
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:48 +0000 (21:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:50:47 +0000 (08:50 +0200)
commit2c84a3d78ad81ea5b6893de49d6d3c535cad8c62
treefd2d7f83c96697f204a69a17a18f58e689a66657
parent949eb838803a8dbd0325ec7f94a84a863d3da001
tcp: annotate data-races around tp->tsoffset

[ Upstream commit dd23c9f1e8d5c1d2e3d29393412385ccb9c7a948 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c