linux/drivers/block/null_blk
Keith Busch 3749ea4dee null_blk: fix zone read length beyond write pointer
Fix up the divisor calculating the number of zone sectors being read and
handle a read that straddles the zone write pointer. The length is
rounded up a sector boundary, so be sure to truncate any excess bytes
off to avoid copying past the data segment.

Fixes: 3451cf34f5 ("null_blk: allow byte aligned memory offsets")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Tested-by: Bart van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-11-12 10:02:56 -07:00
..
Kconfig block: null_blk: make fault-injection dynamically configurable per device 2023-04-13 07:38:55 -06:00
Makefile
main.c null_blk: fix zone read length beyond write pointer 2025-11-12 10:02:56 -07:00
null_blk.h block: introduce disk_report_zone() 2025-11-05 08:07:21 -07:00
trace.c
trace.h null_blk: Fix two sparse warnings 2024-05-13 17:51:17 -06:00
zoned.c null_blk: fix zone read length beyond write pointer 2025-11-12 10:02:56 -07:00