Files
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 <[email protected]>
Tested-by: Bart van Assche <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2025-11-12 10:02:56 -07:00
..
…
2025-11-05 08:07:21 -07:00
…
2024-05-13 17:51:17 -06:00