Skip to content

Fix iommufd selftest FAIL and warnings with v6.16

Nicolin Chen linux-iommu linux-kselftest lkml 2 versions – Applied

Status from this message: Applied to for-rc, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v14 patches 10 repliesSuperseded

Changelog from the cover letter

v2
* Add "Reviewed-by" from Jason
* Only use kfree() in the teardown()
* Add an mmap_buffer_size for readability
v1
https://lore.kernel.org/all/[email protected]/

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4iommufd/selftest: Fix iommufd_dirty_tracking with large hugepage sizestools/testing/selftests/iommu/iommufd.c+21 -90 replies
2/4iommufd/selftest: Add missing close(mfd) in memfd_mmap()tools/testing/selftests/iommu/iommufd_utils.h+7 -20 replies
3/4iommufd/selftest: Add asserts testing global mfdtools/testing/selftests/iommu/iommufd.c+2 -00 replies
4/4iommufd/selftest: Fix build warnings due to uninitialized mfdtools/testing/selftests/iommu/iommufd.c+6 -20 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchJason Gunthorpe
1/4
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH rc v2 0/4] Fix iommufd selftest FAIL and warnings with v6.16

A few selftest harness changes being merged to v6.16, which exposed some bugs and vulnerabilities in the iommufd selftest code. Fix them properly.

Note that the patch fixing the build warnings at mfd is not ideal, as it has possibly hit some corner case in the gcc:
https://lore.kernel.org/all/[email protected]/

This is on github:
https://github.com/nicolinc/iommufd/commits/iommufd_selftest_fixes-v6.16

Changelog:
v2
* Add "Reviewed-by" from Jason
* Only use kfree() in the teardown()
* Add an mmap_buffer_size for readability
v1
https://lore.kernel.org/all/[email protected]/

Thanks
Nicolin

Nicolin Chen (4):
iommufd/selftest: Fix iommufd_dirty_tracking with large hugepage sizes iommufd/selftest: Add missing close(mfd) in memfd_mmap() iommufd/selftest: Add asserts testing global mfd iommufd/selftest: Fix build warnings due to uninitialized mfd

 tools/testing/selftests/iommu/iommufd_utils.h |  9 ++++-
 tools/testing/selftests/iommu/iommufd.c       | 40 ++++++++++++++-----
 2 files changed, 36 insertions(+), 13 deletions(-)
Signature · 1 line
2.43.0