From: Damien Le Moal <damien.lemoal@wdc.com>
To: linux-scsi@vger.kernel.org,
"Martin K . Petersen" <martin.petersen@oracle.com>
Subject: [PATCH v2 0/2] Fixes for scsi_mode_sense/select()
Date: Fri, 20 Aug 2021 12:28:11 +0900 [thread overview]
Message-ID: <20210820032813.575032-1-damien.lemoal@wdc.com> (raw)
The first patch in this series is v2 of the patch titled
"scsi: fix scsi_mode_sense()". Patch 2 is new and added to fix similar
buffer length handling problems found in scsi_mode_select().
Changes from v1:
* Patch 1:
- Added check on the buffer length not being larger than 65535 bytes
for the MODE SENSE 10 case.
- Automatically try MODE SENSE 10 for large requests even if the
device does not have use_10_for_ms set
* Added patch 2
Damien Le Moal (2):
scsi: fix scsi_mode_sense() buffer length handling
scsi: fix scsi_mode_select() buffer length handling
drivers/scsi/scsi_lib.c | 46 +++++++++++++++++++++++++----------------
1 file changed, 28 insertions(+), 18 deletions(-)
--
2.31.1
next reply other threads:[~2021-08-20 3:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-20 3:28 Damien Le Moal [this message]
2021-08-20 3:28 ` [PATCH v2 1/2] scsi: fix scsi_mode_sense() buffer length handling Damien Le Moal
2021-08-20 3:28 ` [PATCH v2 2/2] scsi: fix scsi_mode_select() " Damien Le Moal
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=20210820032813.575032-1-damien.lemoal@wdc.com \
--to=damien.lemoal@wdc.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.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.