From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"DL-MPTFusionLinux@lsi.com" <DL-MPTFusionLinux@lsi.com>,
"shaobo@cs.utah.edu" <shaobo@cs.utah.edu>,
"MPT-FusionLinux.pdl@broadcom.com"
<MPT-FusionLinux.pdl@broadcom.com>
Cc: "kashyap.desai@lsi.com" <kashyap.desai@lsi.com>
Subject: Re: Potentially invalid memory accesses drivers/message/fusion/mptbase.c
Date: Thu, 20 Jul 2017 23:53:36 +0000 [thread overview]
Message-ID: <1500594815.3181.6.camel@wdc.com> (raw)
In-Reply-To: <57b678ad0883a4eb902e47910a360c5c@cs.utah.edu>
On Thu, 2017-07-20 at 17:28 -0600, Shaobo wrote:
> My name is Shaobo He and I am a graduate student at University of Utah.
> I am using a static analysis tool to search for null pointer
> dereferences and came across a couple of potentially invalid memory
> accesses in the file drivers/message/fusion/mptbase.c: in function
> `mpt_turbo_reply`, variable `mf` is initialized to NULL. If the case
> `MPI_CONTEXT_REPLY_TYPE_SCSI_TARGET` is taken, then `mf` is not updated
> to a non-NULL value and then may get dereferenced in function
> `mpt_free_msg_frame`. However, there are a couple of conditions that can
> make the error path infeasible. I was wondering if you could confirm
> this.
Hello Shaobo,
Which static analysis tool are you using? Is it less or more powerful than
Coverity? If it is not more powerful, are you aware that a full Coverity
scan of the Linux kernel source code is already available at
https://scan.coverity.com/projects/linux? The issue you reported was first
detected by Coverity on February 24th, 2006 (more than ten years ago). In
the aforementioned database Coverity assigned ID 100124 to that issue.
Bart.
prev parent reply other threads:[~2017-07-20 23:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-20 23:28 Potentially invalid memory accesses drivers/message/fusion/mptbase.c Shaobo
2017-07-20 23:53 ` Bart Van Assche [this message]
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=1500594815.3181.6.camel@wdc.com \
--to=bart.vanassche@wdc.com \
--cc=DL-MPTFusionLinux@lsi.com \
--cc=MPT-FusionLinux.pdl@broadcom.com \
--cc=kashyap.desai@lsi.com \
--cc=linux-scsi@vger.kernel.org \
--cc=shaobo@cs.utah.edu \
/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