Re: [PATCH] scsi: target: fix integer overflow in UNMAP bounds check

From: Martin K. Petersen

Date: Sun Mar 15 2026 - 21:47:19 EST


On Wed, 04 Mar 2026 23:42:58 +0800, Junrui Luo wrote:

> sbc_execute_unmap() checks lba + range does not exceed the device
> capacity, but does not guard against lba + range wrapping around on
> 64-bit overflow.
>
> Add an overflow check matching the pattern already used for WRITE_SAME
> in the same file.
>
> [...]

Applied to 7.1/scsi-queue, thanks!

[1/1] scsi: target: fix integer overflow in UNMAP bounds check
https://git.kernel.org/mkp/scsi/c/2bf2d65f7669

--
Martin K. Petersen