On Tue, 7 Dec 2021 10:06:38 +0900, Shin'ichiro Kawasaki wrote: > According to ZBC and SPC specifications, the unit of ALLOCATION LENGTH > field of REPORT ZONES command is byte. However, current scsi_debug > implementation handles it as number of zones to calculate buffer size to > report zones. When the ALLOCATION LENGTH has a large number, this > results in too large buffer size and causes memory allocation failure. > Fix the failure by handling ALLOCATION LENGTH as byte unit. > > [...] Applied to 5.16/scsi-fixes, thanks! [1/1] scsi: scsi_debug: Fix buffer size of REPORT ZONES command https://git.kernel.org/mkp/scsi/c/7db0e0c8190a -- Martin K. Petersen Oracle Linux Engineering