diff options
| author | Keith Busch <kbusch@kernel.org> | 2026-07-20 13:10:57 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-07-31 08:10:49 -0600 |
| commit | 14b007e178811db72fbb1ebb3535160db6ec1e6a (patch) | |
| tree | ccecab167f93099ba4ae74ca7148e5d3d9aad9a7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | c5059c1af2bd22bc1435b99d27d800164162cb72 (diff) | |
block: validate user space vectors during extraction
The bio-based drivers don't necessarily check the alignment split, and
stacking block drivers don't always handle a misalignment detected after
submitting the bio. Validate user vectors against the device's
dma_alignment as the bio is built from the iov_iter, rejecting
misaligned early with -EINVAL.
Cc: stable@vger.kernel.org
Fixes: 5ff3f74e145a ("block: simplify direct io validity check")
Fixes: 7eac33186957 ("iomap: simplify direct io validity check")
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://patch.msgid.link/20260720201057.1862857-6-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
