vfio: selftests: Fix MMIO test failures in iommufd compat mode
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | vfio: selftests: Fix iommufd compat mode __iommu_unmap() crashtools/ | +1 | 0 replies | |
| 2/2 | vfio: selftests: Align __iommu_unmap() check with iommufd compat modetools/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] vfio: selftests: Fix MMIO test failures in iommufd compat mode
This series fixes two issues in the vfio_dma_mapping_mmio_test selftest when running in iommufd compat mode.
The first patch fixes a segmentation fault caused by an uninitialized list head when __iommu_map() fails (as expected for MMIO regions in iommufd).
The second patch fixes a test assertion failure by aligning the check for the __iommu_unmap() return value based on the iommufd mode (native vs. compat).
Yi Lai (2):
vfio: selftests: Fix iommufd compat mode __iommu_unmap() crash
vfio: selftests: Align __iommu_unmap() check with iommufd compat mode
.../selftests/vfio/vfio_dma_mapping_mmio_test.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0