lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8d605e7b-e4f7-48eb-ad06-0e8a87b620b5@kernel.org>
Date: Fri, 9 May 2025 08:08:12 +0900
From: Damien Le Moal <dlemoal@...nel.org>
To: Steve Siwinski <stevensiwinski@...il.com>
Cc: James.Bottomley@...senpartnership.com, axboe@...nel.dk, bgrove@...o.com,
 hch@...radead.org, linux-block@...r.kernel.org,
 linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
 martin.petersen@...cle.com, ssiwinski@...o.com, tdoedline@...o.com,
 stable@...r.kernel.org
Subject: Re: [PATCH v3] block, scsi: sd_zbc: Respect bio vector limits for
 report zones buffer

On 5/9/25 5:01 AM, Steve Siwinski wrote:
> The report zones buffer size is currently limited by the HBA's
> maximum segment count to ensure the buffer can be mapped. However,
> the block layer further limits the number of iovec entries to
> 1024 when allocating a bio.
> 
> To avoid allocation of buffers too large to be mapped, further
> restrict the maximum buffer size to BIO_MAX_INLINE_VECS.
> 
> Replace the UIO_MAXIOV symbolic name with the more contextually
> appropriate BIO_MAX_INLINE_VECS.
> 
> Fixes: b091ac616846 ("sd_zbc: Fix report zones buffer allocation")
> Cc: stable@...r.kernel.org
> Signed-off-by: Steve Siwinski <ssiwinski@...o.com>

Looks good to me.

Reviewed-by: Damien Le Moal <dlemoal@...nel.org>

-- 
Damien Le Moal
Western Digital Research

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ