Re: [PATCH v3] scsi: scsi_debug: fix one-partition tape setup bounds

From: Martin K. Petersen

Date: Mon Jun 15 2026 - 22:27:23 EST


On Thu, 04 Jun 2026 23:43:56 +0000, Samuel Moelius wrote:

> The tape setup path uses one tape_block entry as the end-of-data marker
> after the usable tape blocks. For the one-partition layout, partition 0
> uses all TAPE_UNITS data slots and partition 1's marker is written at
> tape_blocks[0] + TAPE_UNITS.
>
> Only TAPE_UNITS entries are allocated, so that marker write is one
> element past the allocation during device initialization before any
> command is issued.
>
> [...]

Applied to 7.2/scsi-queue, thanks!

[1/1] scsi: scsi_debug: fix one-partition tape setup bounds
https://git.kernel.org/mkp/scsi/c/3c08f6034d74

--
Martin K. Petersen