[ Sasha's backport helper bot ]
Hi,
The upstream commit SHA1 provided is correct: c749301ebee82eb5e97dec14b6ab31a4aabe37a6
WARNING: Author mismatch between patch and upstream commit: Backport author: Vasiliy Kovalev kovalev@altlinux.org Commit author: Damien Le Moal damien.lemoal@wdc.com
Status in newer kernel trees: 6.12.y | Present (exact SHA1) 6.6.y | Present (exact SHA1) 6.1.y | Present (exact SHA1) 5.15.y | Present (different SHA1: c82cd4eed128) 5.10.y | Not found
Note: The patch differs from the upstream commit: --- 1: c749301ebee82 ! 1: f6b467ad3c189 scsi: sd: Fix sd_do_mode_sense() buffer length handling @@ Metadata ## Commit message ## scsi: sd: Fix sd_do_mode_sense() buffer length handling
+ commit c749301ebee82eb5e97dec14b6ab31a4aabe37a6 upstream. + For devices that explicitly asked for MODE SENSE(10) use, make sure that scsi_mode_sense() is called with a buffer of at least 8 bytes so that the sense header fits. @@ Commit message Link: https://lore.kernel.org/r/20210820070255.682775-4-damien.lemoal@wdc.com Signed-off-by: Damien Le Moal damien.lemoal@wdc.com Signed-off-by: Martin K. Petersen martin.petersen@oracle.com + Signed-off-by: Vasiliy Kovalev kovalev@altlinux.org
## drivers/scsi/sd.c ## @@ drivers/scsi/sd.c: sd_do_mode_sense(struct scsi_disk *sdkp, int dbd, int modepage, ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.10.y | Success | Success |