This is a note to let you know that I've just added the patch titled
CIFS: Possible null ptr deref in SMB2_tcon
to the 3.14-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-possible-null-ptr-deref-in-smb2_tcon.patch
and it can be found in the queue-3.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 18f39e7be0121317550d03e267e3ebd4dbfbb3ce Mon Sep 17 00:00:00 2001
From: Steve French <[email protected]>
Date: Sun, 17 Aug 2014 00:22:24 -0500
Subject: CIFS: Possible null ptr deref in SMB2_tcon
From: Steve French <[email protected]>
commit 18f39e7be0121317550d03e267e3ebd4dbfbb3ce upstream.
As Raphael Geissert pointed out, tcon_error_exit can dereference tcon
and there is one path in which tcon can be null.
Signed-off-by: Steve French <[email protected]>
Reported-by: Raphael Geissert <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
fs/cifs/smb2pdu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -916,7 +916,8 @@ tcon_exit:
tcon_error_exit:
if (rsp->hdr.Status == STATUS_BAD_NETWORK_NAME) {
cifs_dbg(VFS, "BAD_NETWORK_NAME: %s\n", tree);
- tcon->bad_network_name = true;
+ if (tcon)
+ tcon->bad_network_name = true;
}
goto tcon_exit;
}
Patches currently in stable-queue which might be from [email protected] are
queue-3.14/cifs-fix-wrong-restart-readdir-for-smb1.patch
queue-3.14/cifs-fix-directory-rename-error.patch
queue-3.14/cifs-fix-async-reading-on-reconnects.patch
queue-3.14/cifs-fix-wrong-directory-attributes-after-rename.patch
queue-3.14/cifs-fix-wrong-filename-length-for-smb2.patch
queue-3.14/cifs-fix-status_cannot_delete-error-mapping-for-smb2.patch
queue-3.14/cifs-possible-null-ptr-deref-in-smb2_tcon.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html