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@xxxxxxxxxx/ -- Martin K. Petersen Oracle Linux Engineering