From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796221179; b=s2uNFVaxbDyS1Eudwt7pjv5TAGjMGV7zvkvYCIBXiSVz5dcIrPxGpjeOMNTFSwEDsNaA A5wces2srBaCYTzeSH+mBOQceW9mLzVTfUkeSkb4fE5zcnkZqN9a9bWj/lTX/9ildYy1p 83BfkuPXMEHMeseRkYl81BR6hKkeyqO/pgmx0YXWHld0qzwZsUVgeP1qUhcpBmUQ3KjIn vaASv/ya6/q9FSXZt+zxAnjyAvvo2wcBRloWhwrQujQ40qjucsJH7tDQiRc0Tdy1tCnyT It3xJvZos0pbRk4EzX8UzW4vwnClzmhczyptixjPbY2DiZyKGLAGF7+cAd5Hekm56kQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221179; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=yuOPLZL6XPn7O/ylp49oEFAwhWRnpziI6RGNgY5zge4=; b=CoZTqPkj/8jAq7DS/ast7L/reKRejM/vhAsM0CWMl0K41kVwM0yR4DUOFJmOCgAe4HM0 Tf7eVhH98kGxcyRbcDj7Rx7bzCZGvKSdTUyCoEsKy2u79SPR9LmbSo66DfINschiAZPNK 5mO6/c4c/3TcstyEDdAySysIn+X/RtIWuUAvkyeY65kXYFL6hqtYqGyAWpb3VZu405ABQ Okx4crxClAJCmd9L+bA/va2kiHeBl4E7wyY+rWQ1ANBOKrCbG7dng4lF44AU3Ud4Dvud0 lZoQIXW46W/6KeOYSngZ0CIv/i+G+AwdVm/Of8pUwjN2uEI4VwHBOLDOQ9rS1pFCaQg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="lUGG11/d"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C681A606A329 for ; Wed, 2 Dec 2026 14:19:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=lUGG11/d Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2494F1F00896; Wed, 2 Dec 2026 14:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796221179; bh=yuOPLZL6XPn7O/ylp49oEFAwhWRnpziI6RGNgY5zge4=; h=Subject:To:Cc:From:Date; b=lUGG11/dBEwQ18/A9WEgO6eVsBxYAYs12HyveP9ugL3U1yy2vbNg8SkN2Qip/6k3a rZoNKA3ZCHgKHR5mAaULXXfQD92Tb7VozJyoyFn3HMaiw/0RvIzEQAmQ7Gz9UqAhW3 xnYZQ3QMoHZrJ3fGCMGkeUdQuDLsS/B2kUIYBtNU= Subject: FAILED: patch "[PATCH] mptcp: Avoid unsequenced accesses to jiffies in" failed to apply to 6.1-stable tree To: nathan@kernel.org,kuba@kernel.org,matttbe@kernel.org Cc: From: Date: Wed, 02 Dec 2026 14:13:03 +0100 Message-ID: <2026120203-mongrel-blunderer-6c25@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 728a2abd15a767f662a44030931ea7b2959b4e88 # git commit -s git send-email --to '' --in-reply-to '2026120203-mongrel-blunderer-6c25@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 728a2abd15a767f662a44030931ea7b2959b4e88 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Sat, 14 Nov 2026 21:30:07 -0700 Subject: [PATCH] mptcp: Avoid unsequenced accesses to jiffies in mptcp_reset_tout_timer() After a recent improvement in clang to warn on unsequenced accesses to volatile variables [1], an instance appears in mptcp_reset_tout_timer(), which can break the build with CONFIG_WERROR=y / W=e: net/mptcp/protocol.c:3044:20: error: unsequenced accesses to volatile qualified 'jiffies' [-Werror,-Wunsequenced] 3044 | tcp_jiffies32 + jiffies + mptcp_close_timeout(sk); | ~~~~~~~~~~~~~ ^ Per C11 5.1.2.3.2, accessing a volatile object is a side effect. Per C11 6.5.2, unsequenced side effects on the same scalar object are undefined behavior. Per C11 6.5.3, unless otherwise specified, side effects and value computations of subexpressions are unsequenced within expressions. Add an explicit sequence point by splitting the addition expression in half, eliminating the undefined behavior and clearing up the warning. Cc: stable@vger.kernel.org Fixes: 76a13b315709 ("mptcp: invoke MP_FAIL response when needed") Closes: https://github.com/ClangBuiltLinux/linux/issues/2193 Link: https://github.com/llvm/llvm-project/commit/955715460eaf9188c241c74750637fc82dfcc423 [1] Signed-off-by: Nathan Chancellor Reviewed-by: Matthieu Baerts (NGI0) Link: https://patch.msgid.link/20261114-mptcp-wunsequenced-v1-1-707a73a6c172@kernel.org Signed-off-by: Jakub Kicinski diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 8968db58083e..8a9efebf3497 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -3041,7 +3041,8 @@ void mptcp_reset_tout_timer(struct mptcp_sock *msk, unsigned long fail_tout) return; close_timeout = (unsigned long)inet_csk(sk)->icsk_mtup.probe_timestamp - - tcp_jiffies32 + jiffies + mptcp_close_timeout(sk); + tcp_jiffies32; + close_timeout += jiffies + mptcp_close_timeout(sk); /* the close timeout takes precedence on the fail one, and here at least one of * them is active