aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJoao Martins <[email protected]>2024-02-02 13:34:07 +0000
committerJason Gunthorpe <[email protected]>2024-02-06 11:31:45 -0400
commita4ab7dedaee0e39b15653c5fd0367e420739f7ef (patch)
tree7b695b12063f9f8ec1e64a2be5f7d9b72c32c3b5 /scripts/generate_rust_analyzer.py
parent54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478 (diff)
iommufd/iova_bitmap: Bounds check mapped::pages access
Dirty IOMMU hugepages reported on a base page page-size granularity can lead to an attempt to set dirty pages in the bitmap beyond the limits that are pinned. Bounds check the page index of the array we are trying to access is within the limits before we kmap() and return otherwise. While it is also a defensive check, this is also in preparation to defer setting bits (outside the mapped range) to the next iteration(s) when the pages become available. Fixes: b058ea3ab5af ("vfio/iova_bitmap: refactor iova_bitmap_set() to better handle page boundaries") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joao Martins <[email protected]> Tested-by: Avihai Horon <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions