Re: [PATCH v4] block: Fix start and length check added to iov_iter_extract_bvecs()

From: Jens Axboe

Date: Thu Sep 10 2026 - 17:01:54 EST



On Wed, 09 Sep 2026 09:06:31 +0100, David Howells wrote:
> Commit 14b007e17881 added an address check using iter_iov_addr() and a
> length check using iter_iov_len() to iov_iter_extract_bvecs(), but these
> cannot be used so and are unsafe in this circumstance as the functions have
> hardwired assumptions about the iterator type. They should only be used
> with ITER_UBUF or ITER_IOVEC-type iterators; they shouldn't be used with
> ITER_BVEC, ITER_KVEC, ITER_FOLIOQ, ITER_XARRAY or ITER_DISCARD iterators.
>
> [...]

Applied, thanks!

[1/1] block: Fix start and length check added to iov_iter_extract_bvecs()
commit: b0d8d56b7c93ed767eb4f2be9988e7b9dc023566

Best regards,
--
Jens Axboe