[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176530089382.83150.18335871238893970747.b4-ty@kernel.dk>
Date: Tue, 09 Dec 2025 10:21:33 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Ming Lei <ming.lei@...hat.com>,
Caleb Sander Mateos <csander@...estorage.com>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ublk: don't mutate struct bio_vec in iteration
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
Powered by blists - more mailing lists