All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Fixes for scsi_mode_sense/select()
@ 2021-08-20  7:02 Damien Le Moal
  2021-08-20  7:02 ` [PATCH v3 1/3] scsi: fix scsi_mode_sense() buffer length handling Damien Le Moal
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Damien Le Moal @ 2021-08-20  7:02 UTC (permalink / raw)
  To: linux-scsi, Martin K . Petersen

The first patch in this series is the formet standalone patch titled
"scsi: fix scsi_mode_sense()". Patch 2 fixes similar buffer length
handling problems found in scsi_mode_select().
Patch 3 fixes the use of scsi_mode_sense() in sd.c to ensure that calls
are issued with a sensible buffer size for devices that explicitly
requested the use of MODE SENSE 10 (e.g. SATA drives on AHCI).

Changes from v2:
* Added patch 3

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 (3):
  scsi: fix scsi_mode_sense() buffer length handling
  scsi: fix scsi_mode_select() buffer length handling
  scsi: sd: fix sd_do_mode_sense() buffer length handling

 drivers/scsi/scsi_lib.c | 46 +++++++++++++++++++++++++----------------
 drivers/scsi/sd.c       |  7 +++++++
 2 files changed, 35 insertions(+), 18 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-05  4:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20  7:02 [PATCH v3 0/3] Fixes for scsi_mode_sense/select() Damien Le Moal
2021-08-20  7:02 ` [PATCH v3 1/3] scsi: fix scsi_mode_sense() buffer length handling Damien Le Moal
2021-08-20  7:02 ` [PATCH v3 2/3] scsi: fix scsi_mode_select() " Damien Le Moal
2021-08-20  7:02 ` [PATCH v3 3/3] scsi: sd: fix sd_do_mode_sense() " Damien Le Moal
2021-09-29  4:15 ` [PATCH v3 0/3] Fixes for scsi_mode_sense/select() Martin K. Petersen
2021-09-29  6:02   ` Damien Le Moal
2021-10-05  4:34 ` Martin K. Petersen

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.