On Fri, 18 Oct 2024 10:16:55 +0000, John Garry wrote: > If the sg_copy_buffer() call returns less than sdebug_sector_size, then we > drop out of the copy loop. However, we still report that we copied the > full expected amount, which is not proper. > > Fix by keeping a running total and return that value. > > > [...] Applied to 6.12/scsi-fixes, thanks! [1/1] scsi: scsi_debug: Fix do_device_access() handling of unexpected SG copy length https://git.kernel.org/mkp/scsi/c/d28d17a84560 -- Martin K. Petersen Oracle Linux Engineering