[ Sasha's backport helper bot ] Hi, The upstream commit SHA1 provided is correct: a7d6840bed0c2b16ac3071b74b5fcf08fc488241 WARNING: Author mismatch between patch and upstream commit: Backport author: Vasiliy Kovalev <kovalev@xxxxxxxxxxxx> Commit author: Damien Le Moal <damien.lemoal@xxxxxxx> 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 | Not found 5.10.y | Not found Note: The patch differs from the upstream commit: --- 1: a7d6840bed0c2 ! 1: 4826a9616670c scsi: core: Fix scsi_mode_select() buffer length handling @@ Metadata ## Commit message ## scsi: core: Fix scsi_mode_select() buffer length handling + commit a7d6840bed0c2b16ac3071b74b5fcf08fc488241 upstream. + The MODE SELECT(6) command allows handling mode page buffers that are up to 255 bytes, including the 4 byte header needed in front of the page buffer. For requests larger than this limit, automatically use the MODE @@ Commit message Link: https://lore.kernel.org/r/20210820070255.682775-3-damien.lemoal@xxxxxxx Signed-off-by: Damien Le Moal <damien.lemoal@xxxxxxx> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> + Signed-off-by: Vasiliy Kovalev <kovalev@xxxxxxxxxxxx> ## drivers/scsi/scsi_lib.c ## @@ drivers/scsi/scsi_lib.c: scsi_mode_select(struct scsi_device *sdev, int pf, int sp, int modepage, --- Results of testing on various branches: | Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.10.y | Success | Success |