This is a note to let you know that I've just added the patch titled libata: fix translation of concurrent positioning ranges to the 5.17-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: libata-fix-translation-of-concurrent-positioning-ranges.patch and it can be found in the queue-5.17 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 6d11acd452fd885ef6ace184c9c70bc863a8c72f Mon Sep 17 00:00:00 2001 From: Tyler Erickson <tyler.erickson@xxxxxxxxxxx> Date: Thu, 2 Jun 2022 16:51:12 -0600 Subject: libata: fix translation of concurrent positioning ranges From: Tyler Erickson <tyler.erickson@xxxxxxxxxxx> commit 6d11acd452fd885ef6ace184c9c70bc863a8c72f upstream. Fixing the page length in the SCSI translation for the concurrent positioning ranges VPD page. It was writing starting in offset 3 rather than offset 2 where the MSB is supposed to start for the VPD page length. Cc: stable@xxxxxxxxxxxxxxx Fixes: fe22e1c2f705 ("libata: support concurrent positioning ranges log") Signed-off-by: Tyler Erickson <tyler.erickson@xxxxxxxxxxx> Reviewed-by: Muhammad Ahmad <muhammad.ahmad@xxxxxxxxxxx> Tested-by: Michael English <michael.english@xxxxxxxxxxx> Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Signed-off-by: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/ata/libata-scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -2119,7 +2119,7 @@ static unsigned int ata_scsiop_inq_b9(st /* SCSI Concurrent Positioning Ranges VPD page: SBC-5 rev 1 or later */ rbuf[1] = 0xb9; - put_unaligned_be16(64 + (int)cpr_log->nr_cpr * 32 - 4, &rbuf[3]); + put_unaligned_be16(64 + (int)cpr_log->nr_cpr * 32 - 4, &rbuf[2]); for (i = 0; i < cpr_log->nr_cpr; i++, desc += 32) { desc[0] = cpr_log->cpr[i].num; Patches currently in stable-queue which might be from tyler.erickson@xxxxxxxxxxx are queue-5.17/libata-fix-reading-concurrent-positioning-ranges-log.patch queue-5.17/libata-fix-translation-of-concurrent-positioning-ranges.patch queue-5.17/scsi-sd-fix-interpretation-of-vpd-b9h-length.patch