Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The Fixes: tag names d2000361e4dd ("mptcp: better mptcp-level RTT estimator"), but lockless access to msk->scaling_ratio started… -- mptcp: annotate lockless access to msk->scaling_ratio This patch adds READ_ONCE()/WRITE_ONCE() annotations to msk->scaling_ratio. The writer is mptcp_rcv_rtt_update(), which runs in BH. The readers are mptcp_win_from_space(), mptcp_space_from_win() and the mptcp_rcvbuf_grow tracepoint. The race was reported by KCSAN between mptcp_cleanup_rbuf() and mptcp_data_ready(). Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/634
> Fixes: d2000361e4dd ("mptcp: better mptcp-level RTT estimator")
[Severity: Low] Should this tag point to b8dc6d6ce931 ("mptcp: fix rcv buffer auto-tuning") instead, or in addition? That 2023 commit added the u8 msk->scaling_ratio field and the mptcp_win_from_space() helper, which reads the field with a plain load: net/mptcp/protocol.h:mptcp_win_from_space() { return __tcp_win_from_space(mptcp_sk(sk)->scaling_ratio, space); } It also made mptcp_space() in net/mptcp/subflow.c read the field through that helper: *space = __mptcp_space(sk); *full_space = mptcp_win_from_space(sk, READ_ONCE(sk->sk_rcvbuf)); mptcp_space() is called from __tcp_select_window() on the subflow. It runs under the subflow lock or in subflow BH, for example when an ACK is sent on receive. It does not run under msk ownership. The writer added in that commit lived in mptcp_rcv_space_adjust(), which runs in process context with the msk owned: msk->scaling_ratio = scaling_ratio; So the subflow-side reader and the msk-side writer were never serialized, even before d2000361e4dd. That later commit moved the writer into BH via mptcp_rcv_rtt_update(). It also exposed a second reader, mptcp_cleanup_rbuf(), which is the one in the KCSAN splat. With the current tag, stable trees that carry b8dc6d6ce931 but not d2000361e4dd, such as 6.6.y and 6.12.y, would not pick this up. Those trees would also need the annotation on the older writer in mptcp_rcv_space_adjust() rather than in mptcp_rcv_rtt_update().
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40kernel.org