1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
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: e87d66ab27ac ("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-12-02 17:49:12 -08:00
2025-12-03 17:24:33 -08:00
2025-12-03 12:42:36 -08:00
2025-11-25 17:06:04 +01:00
2025-12-03 17:24:33 -08:00
2025-11-27 18:11:43 -08:00
2025-12-03 12:42:36 -08:00
2025-12-02 17:03:55 -08:00
2025-12-01 17:32:07 -08:00
2025-12-03 14:42:21 -08:00
2025-11-22 09:58:41 -08:00
2025-12-03 17:24:33 -08:00
2025-11-17 23:16:55 -08:00
2025-11-27 17:29:15 -08:00
2025-12-09 10:20:03 -07:00
2025-12-01 17:32:07 -08:00
2025-12-03 12:42:36 -08:00
2025-12-03 17:24:33 -08:00
2025-11-17 19:32:32 -08:00
2025-12-04 20:58:19 -07:00
2025-12-03 17:24:33 -08:00
2025-12-02 17:03:55 -08:00
2025-11-27 08:51:36 -08:00
2025-12-03 12:42:36 -08:00
2025-12-03 17:24:33 -08:00
2025-12-03 19:26:18 -08:00
2025-12-03 17:24:33 -08:00
2025-12-03 12:42:36 -08:00
2025-12-03 17:24:33 -08:00
2025-11-21 21:27:20 +01:00
2025-12-03 12:42:36 -08:00
2025-12-02 17:31:22 -08:00
2025-12-01 17:32:07 -08:00
2025-12-03 17:24:33 -08:00