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

"Martin K. Petersen" <[email protected]>
Newsgroups org.kernel.vger.target-devel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-scsi
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.