This is a note to let you know that I've just added the patch titled cifs: fix uninitialised var in smb2_compound_op() to the 6.0-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: cifs-fix-uninitialised-var-in-smb2_compound_op.patch and it can be found in the queue-6.0 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 69ccafdd35cdffd72504bfed58dcaee5e73a88a7 Mon Sep 17 00:00:00 2001 From: Paulo Alcantara <pc@xxxxxx> Date: Tue, 4 Oct 2022 15:10:09 -0300 Subject: cifs: fix uninitialised var in smb2_compound_op() From: Paulo Alcantara <pc@xxxxxx> commit 69ccafdd35cdffd72504bfed58dcaee5e73a88a7 upstream. Fix uninitialised variable @idata when calling smb2_compound_op() with SMB2_OP_POSIX_QUERY_INFO. Reported-by: kernel test robot <lkp@xxxxxxxxx> Signed-off-by: Paulo Alcantara (SUSE) <pc@xxxxxx> Reviewed-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx> Cc: Guenter Roeck <linux@xxxxxxxxxxxx> Cc: Conor Dooley <conor@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/cifs/smb2inode.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -415,6 +415,7 @@ static int smb2_compound_op(const unsign tcon->tid); break; case SMB2_OP_POSIX_QUERY_INFO: + idata = ptr; if (rc == 0 && cfile && cfile->symlink_target) { idata->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); if (!idata->symlink_target) Patches currently in stable-queue which might be from pc@xxxxxx are queue-6.0/cifs-replace-kfree-with-kfree_sensitive-for-sensitiv.patch queue-6.0/cifs-fix-double-fault-crash-during-ntlmssp.patch queue-6.0/cifs-fix-use-after-free-on-the-link-name.patch queue-6.0/cifs-fix-memory-leaks-in-session-setup.patch queue-6.0/cifs-fix-oops-during-encryption.patch queue-6.0/cifs-fix-xid-leak-in-cifs_get_file_info_unix.patch queue-6.0/cifs-fix-uninitialised-var-in-smb2_compound_op.patch queue-6.0/cifs-improve-symlink-handling-for-smb2.patch