Re: [PATCH] ublk: don't mutate struct bio_vec in iteration
From: Jens Axboe
Date: Tue Dec 09 2025 - 12:21:56 EST
On Mon, 08 Dec 2025 20:14:23 -0700, Caleb Sander Mateos wrote:
> __bio_for_each_segment() uses the returned struct bio_vec's bv_len field
> to advance the struct bvec_iter at the end of each loop iteration. So
> it's incorrect to modify it during the loop. Don't assign to bv_len (or
> bv_offset, for that matter) in ublk_copy_user_pages().
>
>
Applied, thanks!
[1/1] ublk: don't mutate struct bio_vec in iteration
commit: db339b4067eccb7fa3d9787d5d3ab5d466fd9efa
Best regards,
--
Jens Axboe