Re: [PATCH v2] scsi: target: Disable protection processing for zero-block commands
From: Martin K. Petersen (Oracle)
Date: Fri Nov 20 2026 - 22:25:19 EST
On Wed, 11 Nov 2026 11:05:43 +0800, yong liu wrote:
> A READ(10) with its TRANSFER LENGTH field set to zero on a PI-enabled
> LUN can select TARGET_PROT_DIN_STRIP while leaving cmd->prot_length at
> zero. transport_generic_new_cmd() then allocates an empty protection
> scatterlist, causing a target-side Oops, which can also lead to
> use-after-free during subsequent iSCSI connection cleanup. A logged-in
> iSCSI initiator can trigger this on a FILEIO LUN with protection
> information enabled.
>
> [...]
Applied to 7.4/scsi-fixes, thanks!
[1/1] scsi: target: Disable protection processing for zero-block commands
https://git.kernel.org/mkp/scsi/c/6b745a4ae88a
--
Martin K. Petersen