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 E77311DF271; Sun, 1 Mar 2026 01:58:24 +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=1772330305; cv=none; b=q48uBx1huyw4arAAmBGoWvBvOD+D0M43M0cTZL/nDlhn6sMhuK1B8GUX8HsAgI4qn9tP2Hg6ap/rpXGVPv75iKIH8nwtXgOR8HP+9Nvn1O5N5akodpOw8/XkNojrjluxpjlPnLEySCvudgK5UnvlB37kMf9rVVdN+KLBZgtzy58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772330305; c=relaxed/simple; bh=Gvk1cjAx29i0Q4E/fc6cuVzXwwWyuIrM0O/6FEBxeQ0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iOGUJdfTz+qgV5VV5GIfn9lNcPgmmZ/0gp/M55VNJCCCb2REZ3X/8ANX4yNCLL5j1zZgS31Dc7Xt6oQLZ7QEfd8nrjTxNpu8OOZXxwGG4HihClDoZlzeSbC0GObFFv26NV264k8JfwLJgVOSNAozTpUo1Hg+fXMY7kAOLORDvOg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MsfbNcH6; 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="MsfbNcH6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFFA1C19421; Sun, 1 Mar 2026 01:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772330304; bh=Gvk1cjAx29i0Q4E/fc6cuVzXwwWyuIrM0O/6FEBxeQ0=; h=From:To:Cc:Subject:Date:From; b=MsfbNcH6hisWWye7Ja0xh/KmAzLe41xC4uXTCI0tnrGwK2bG5yA9lyUzcsDqj/YT/ lVPHlUGmRiIwBtJjYPK8I9AwcRytMExrJbO6wWyOQy2QshfmTs2MsrbhtYovITSmdf 9ujdDTef4rp3DmG06lDPK59mP35s2uQOd8OGyhX5qg51o4Sb0WBIaqDcr+No/y8ppS XXHXnOtY6FtAj1pFw9SbwoWYak62o1YL5QqWCYZwVTO0bKXeG00Z1DV1OJa755KHde vKUIu9EEp8ZDrI/TISsHQO2+AJ32gQtB5yp5kEdNOyE7OEgHjn0aGYRkoDg8YyqGQu EFedvsW49/gBA== 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 5.15-stable tree Date: Sat, 28 Feb 2026 20:58:22 -0500 Message-ID: <20260301015822.1723820-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 5.15-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