From: Jakub Kicinski Date: Sat, 18 Apr 2026 18:10:15 +0000 (-0700) Subject: Merge branch 'tcp-take-care-of-tcp_get_timestamping_opt_stats-races' X-Git-Tag: v7.1-rc1~36^2~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3a0e90d4deb6386b90a9d5233028259c441cbc1;p=thirdparty%2Fkernel%2Fstable.git Merge branch 'tcp-take-care-of-tcp_get_timestamping_opt_stats-races' Eric Dumazet says: ==================== tcp: take care of tcp_get_timestamping_opt_stats() races tcp_get_timestamping_opt_stats() does not own the socket lock, this is intentional. It calls tcp_get_info_chrono_stats() while other threads could change chrono fields in tcp_chrono_set(). It also reads many tcp socket fields that can be modified by other cpus/threads. I do not think we need coherent TCP socket state snapshot in tcp_get_timestamping_opt_stats(). Add READ_ONCE()/WRITE_ONCE() or data_race() annotations. Note that icsk_ca_state is a bitfield, thus not covered in this series. ==================== Link: https://patch.msgid.link/20260416200319.3608680-1-edumazet@google.com Signed-off-by: Jakub Kicinski --- f3a0e90d4deb6386b90a9d5233028259c441cbc1