From: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org
Subject: re: CIFS: Add session setup/logoff capability for SMB2
Date: Wed, 19 Sep 2012 14:31:20 +0300 [thread overview]
Message-ID: <20120919113120.GA32381@elgon.mountain> (raw)
Hello Pavel Shilovsky,
This is a semi-automatic email about new static checker warnings.
The patch 5478f9ba9a34: "CIFS: Add session setup/logoff capability
for SMB2" from Dec 27, 2011, leads to the following Smatch complaint:
fs/cifs/smb2pdu.c:672 SMB2_sess_setup()
warn: variable dereferenced before check 'rsp' (see line 657)
fs/cifs/smb2pdu.c
656 ses->Suid = rsp->hdr.SessionId;
^^^^^^^^^^^^^^^^^^
New dereference.
657 rc = decode_ntlmssp_challenge(rsp->Buffer,
658 le16_to_cpu(rsp->SecurityBufferLength), ses);
659 }
660
661 /*
662 * BB eventually add code for SPNEGO decoding of NtlmChallenge blob,
663 * but at least the raw NTLMSSP case works.
664 */
665 /*
666 * No tcon so can't do
667 * cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_fail[SMB2...]);
668 */
669 if (rc != 0)
670 goto ssetup_exit;
671
672 if (rsp == NULL) {
^^^^^^^^^^^
New check.
673 rc = -EIO;
674 goto ssetup_exit;
regards,
dan carpenter
next reply other threads:[~2012-09-19 11:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 11:31 Dan Carpenter [this message]
[not found] ` <20120919113120.GA32381-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org>
2012-09-19 11:57 ` CIFS: Add session setup/logoff capability for SMB2 Pavel Shilovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120919113120.GA32381@elgon.mountain \
--to=dan.carpenter-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org \
--cc=samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox