Eric Dumazet 6f20c8adb1 net/tcp_fastopen: fix data races around tfo_active_disable_stamp
tfo_active_disable_stamp is read and written locklessly.
We need to annotate these accesses appropriately.

Then, we need to perform the atomic_inc(tfo_active_disable_times)
after the timestamp has been updated, and thus add barriers
to make sure tcp_fastopen_active_should_disable() wont read
a stale timestamp.

Fixes: cf1ef3f0719b ("net/tcp_fastopen: Disable active side TFO in certain scenarios")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Wei Wang <weiwan@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-19 10:11:51 -07:00
..
2021-06-30 15:51:09 -07:00
2021-06-30 15:51:09 -07:00
2021-06-07 14:08:30 -07:00
2021-05-17 15:29:35 -07:00
2021-06-30 15:51:09 -07:00
2021-07-07 20:52:25 -07:00
2021-06-29 11:28:21 -07:00
2021-06-23 12:56:08 -07:00
2021-05-17 15:29:35 -07:00
2021-06-29 11:28:21 -07:00
2020-12-16 11:01:04 -08:00
2021-03-28 17:31:13 -07:00
2020-12-14 16:40:27 -08:00
2021-05-17 15:29:35 -07:00
2021-05-17 15:29:35 -07:00