diff options
| author | Keith Busch <kbusch@kernel.org> | 2025-11-12 08:42:18 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-12 10:02:56 -0700 |
| commit | 3749ea4deeba6049ea97e653d964568a45543e37 (patch) | |
| tree | bdb1be4727192985500c86366c58e54c8de15192 /tools/lib/python/kdoc/kdoc_files.py | |
| parent | 6d7e3870af11c2b5966b2769f9e8a0d4764f52cc (diff) | |
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: 3451cf34f51bb70 ("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>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
