diff options
| author | Keith Busch <kbusch@kernel.org> | 2026-06-13 01:32:04 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-06-13 15:35:44 +0300 |
| commit | 9b0c3673c88588d613d8f09f5931b2b466c6a83d (patch) | |
| tree | f442d0577ff908ef88b775d10172474eaf7b86e6 /include/linux | |
| parent | d532cddb6c6049ced414d64d83c6ce7149a6421a (diff) | |
| download | linux-9b0c3673c88588d613d8f09f5931b2b466c6a83d.tar.xz | |
block: check bio split for unaligned bvec
Offsets and lengths need to be validated against the dma alignment. This
check was skipped for sufficiently a small bio with a single bvec, which
may allow an invalid request dispatched to the driver. Force the
validation for an unaligned bvec by forcing the bio split path that
handles this condition.
Fixes: 7eac33186957 ("iomap: simplify direct io validity check")
Fixes: 5ff3f74e145a ("block: simplify direct io validity check")
Reported-by: Carlos Maiolino <cem@kernel.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://patch.msgid.link/20260612223205.465913-1-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
