Files
linux/drivers
Caleb Sander Mateos db339b4067 ublk: don't mutate struct bio_vec in iteration
__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().

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Fixes: e87d66ab27 ("ublk: use rq_for_each_segment() for user copy")
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-12-09 10:20:18 -07:00
..
2025-10-24 21:39:27 +02:00
2025-11-27 18:11:43 -08:00
2025-09-29 00:17:22 +02:00
2025-12-09 10:20:03 -07:00
2025-11-17 19:32:32 -08:00
2025-09-22 09:35:21 -04:00