From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2181F2E7164; Sun, 1 Mar 2026 01:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329671; cv=none; b=qbzM5C0sYC73saqMotrkowNno2dha5VJDtK0jgGGRck7A0HRkexyqjLyKkmdq7EKQy0eAd5jmgk0fFJZ3EKHB7i0JIrjxHcNhAgAxOA3se89bd6T6EHn9OKNDp15JUfAKJhgfw27v8Ki2t6a1gqwpEJ/Z90gDu2F3NwxhsKNRgw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329671; c=relaxed/simple; bh=ok2K+Bts9SZqCGPdkS2dmRAvBdP8K339/mPtF55sN0Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gSapsDxYwxkdUpjCUUJ/c46HoJ76fS7UIdeIva8gL1df/AaKGGVZuq0jIstQiVgLjiDh3QCRvD/5xfRFH4+pZBEQz5Tld1VTm47Ub1bQ4f7XLo+uKDYe6PcNwjkxNCIZhY+ykFz/oiZMmcwk3ctImfgUkVYI8YGwrXZaRciJuIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nNJ3Ml8I; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nNJ3Ml8I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 599F3C19421; Sun, 1 Mar 2026 01:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329671; bh=ok2K+Bts9SZqCGPdkS2dmRAvBdP8K339/mPtF55sN0Q=; h=From:To:Cc:Subject:Date:From; b=nNJ3Ml8I4KJCxkY6OXk0Dp5T+fAidUPQAhhaMUae9IZPYMFgrVMH3PAjsDGjDtFjf Kjs90T9ueSM6b+QsVd2l5lDa9WZPmPF2opCLrszcu0fIyMqWWLBwqBEa6JqssXcTdu XjxZ7aM5/6EbHZhDjcJ5l18rX6ZS8AdijnPGajYxIZqX99rrh508+BiYRODgdcfGHv l9ufP5QDY7FiF8wkX1TjA/Tai9fVtJCa18OV+StAB7KapmDKKqvwGp4ery89B5VlLj OHMN75xutGyMLnw8FH7QMwj54/YCd1JLLQ37WO0SWWZ9RvR6kqipL+D+i/c6rKE2x+ FdxNKDtWyeHvQ== From: Sasha Levin To: stable@vger.kernel.org, sprasad@microsoft.com Cc: Yuchan Nam , Steve French , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org Subject: FAILED: Patch "cifs: some missing initializations on replay" failed to apply to 6.1-stable tree Date: Sat, 28 Feb 2026 20:47:48 -0500 Message-ID: <20260301014749.1711799-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review 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 . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 14f66f44646333d2bfd7ece36585874fd72f8286 Mon Sep 17 00:00:00 2001 From: Shyam Prasad N Date: Sat, 14 Feb 2026 15:59:13 +0530 Subject: [PATCH] cifs: some missing initializations on replay In several places in the code, we have a label to signify the start of the code where a request can be replayed if necessary. However, some of these places were missing the necessary reinitializations of certain local variables before replay. This change makes sure that these variables get initialized after the label. Cc: stable@vger.kernel.org Reported-by: Yuchan Nam Tested-by: Yuchan Nam Signed-off-by: Shyam Prasad N Signed-off-by: Steve French --- fs/smb/client/smb2ops.c | 2 ++ fs/smb/client/smb2pdu.c | 1 + 2 files changed, 3 insertions(+) diff --git a/fs/smb/client/smb2ops.c b/fs/smb/client/smb2ops.c index 61c521712f863..7370d7a18cd0c 100644 --- a/fs/smb/client/smb2ops.c +++ b/fs/smb/client/smb2ops.c @@ -1185,6 +1185,7 @@ smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, replay_again: /* reinitialize for possible replay */ + used_len = 0; flags = CIFS_CP_CREATE_CLOSE_OP; oplock = SMB2_OPLOCK_LEVEL_NONE; server = cifs_pick_channel(ses); @@ -1588,6 +1589,7 @@ smb2_ioctl_query_info(const unsigned int xid, replay_again: /* reinitialize for possible replay */ + buffer = NULL; flags = CIFS_CP_CREATE_CLOSE_OP; oplock = SMB2_OPLOCK_LEVEL_NONE; server = cifs_pick_channel(ses); diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c index 4602b4dfe8322..7f3edf42b9c3f 100644 --- a/fs/smb/client/smb2pdu.c +++ b/fs/smb/client/smb2pdu.c @@ -2908,6 +2908,7 @@ int smb311_posix_mkdir(const unsigned int xid, struct inode *inode, replay_again: /* reinitialize for possible replay */ + pc_buf = NULL; flags = 0; n_iov = 2; server = cifs_pick_channel(ses); -- 2.51.0