Re: [PATCH RESEND v4 0/4] ata: libata-scsi: fix ATA PASS-THROUGH(32) handling

From: Niklas Cassel

Date: Mon Nov 16 2026 - 12:22:10 EST


On Sat, 14 Nov 2026 01:56:22 +0800, shao.mingyin@xxxxxxxxxx wrote:
> ATA PASS-THROUGH(32) still has translation and completion paths that
> interpret fields as if the command used a 12- or 16-byte CDB.
>
> Patch 1 checks the reserved bits in byte 10, skips the nonexistent
> MULTIPLE_COUNT field, and corrects the invalid-PROTOCOL field pointer.
> Patch 2 rejects unsupported service actions with sense data. Patch 3
> honors CK_COND and generates SAT sense on completion. Patch 4 corrects
> the remaining field pointers, including READ/WRITE LONG count errors.
> The four patches can be applied independently.
>
> [...]

Applied to libata/linux.git (for-7.5), thanks!

[1/4] ata: libata-scsi: reject reserved bits in 32-byte passthru
https://git.kernel.org/libata/linux/c/4136e336
[2/4] ata: libata-scsi: reject unsupported ATA-32 service actions
https://git.kernel.org/libata/linux/c/22526964
[3/4] ata: libata-scsi: generate SAT sense data for ATA PASS-THROUGH(32)
https://git.kernel.org/libata/linux/c/bee1c872
[4/4] ata: libata-scsi: fix remaining passthru field pointers
https://git.kernel.org/libata/linux/c/791ef60c

Kind regards,
Niklas