Message ID | 20210820070255.682775-1-damien.lemoal@wdc.com |
---|---|
Headers | show |
Series | Fixes for scsi_mode_sense/select() | expand |
Damien, > 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). Applied to 5.16/scsi-staging with some changes. There was some confusion between SENSE vs. SELECT in patch #2 in particular. I tried to clean up the dbd situation a while back but it fell by the wayside: https://lore.kernel.org/all/20200325222416.5094-1-martin.petersen@oracle.com/ -- Martin K. Petersen Oracle Linux Engineering
On 2021/09/29 13:15, Martin K. Petersen wrote: > > Damien, > >> 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). > > Applied to 5.16/scsi-staging with some changes. There was some confusion > between SENSE vs. SELECT in patch #2 in particular. > > I tried to clean up the dbd situation a while back but it fell by the > wayside: > > https://lore.kernel.org/all/20200325222416.5094-1-martin.petersen@oracle.com/ This one looks good to me. Repost it may be ? I have more patches coming around mode sense to be able to handle sub-pages (command duration limits and the new ata feature set subpages of the control page).
On Fri, 20 Aug 2021 16:02:52 +0900, Damien Le Moal wrote: > 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). > > [...] Applied to 5.16/scsi-queue, thanks! [1/3] scsi: fix scsi_mode_sense() buffer length handling https://git.kernel.org/mkp/scsi/c/17b49bcbf835 [2/3] scsi: fix scsi_mode_select() buffer length handling https://git.kernel.org/mkp/scsi/c/a7d6840bed0c [3/3] scsi: sd: fix sd_do_mode_sense() buffer length handling https://git.kernel.org/mkp/scsi/c/c749301ebee8 -- Martin K. Petersen Oracle Linux Engineering