All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: zhengbin <zhengbin13@huawei.com>
Cc: <bvanassche@acm.org>, <jejb@linux.ibm.com>,
	<martin.petersen@oracle.com>, <linux-scsi@vger.kernel.org>,
	<yi.zhang@huawei.com>
Subject: Re: [PATCH v4 2/2] scsi: core: fix uninit-value access of variable sshdr
Date: Thu, 17 Oct 2019 22:40:59 -0400	[thread overview]
Message-ID: <yq1y2xiixms.fsf@oracle.com> (raw)
In-Reply-To: <1571293177-117087-3-git-send-email-zhengbin13@huawei.com> (zhengbin's message of "Thu, 17 Oct 2019 14:19:37 +0800")


zhengbin,

> We can init sshdr in sr_get_events, but there have many callers of
> scsi_execute, scsi_execute_req, we have to troubleshoot all callers,
> the simpler way is init sshdr in __scsi_execute.

There aren't that many callers. I'd prefer to make sure that everybody
is handling DRIVER_SENSE and scsi_sense_valid() correctly. Looks like
we're generally OK, but please verify.

Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

  reply	other threads:[~2019-10-18  8:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-17  6:19 [PATCH v4 0/2] scsi: core: fix uninit-value access of variable sshdr zhengbin
2019-10-17  6:19 ` [PATCH v4 1/2] sr: need to check whether sshdr is valid in sr_do_ioctl zhengbin
2019-10-18  2:12   ` Martin K. Petersen
2019-10-18  2:38     ` Martin K. Petersen
2019-10-17  6:19 ` [PATCH v4 2/2] scsi: core: fix uninit-value access of variable sshdr zhengbin
2019-10-18  2:40   ` Martin K. Petersen [this message]
2019-10-18  2:46     ` zhengbin (A)
2019-10-18  2:50       ` Martin K. Petersen

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=yq1y2xiixms.fsf@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=bvanassche@acm.org \
    --cc=jejb@linux.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=yi.zhang@huawei.com \
    --cc=zhengbin13@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.