All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iommupt: fix zero-length unmap causing a full IOTLB flush
@ 2026-11-05 12:12 YeeLi
  2026-11-05 12:12 ` [PATCH 1/2] iommupt: fix full IOTLB flush from a zero length unmap YeeLi
  2026-11-05 12:12 ` [PATCH 2/2] iommupt: add a KUnit test for unmapping an empty range YeeLi
  0 siblings, 2 replies; 4+ messages in thread
From: YeeLi @ 2026-11-05 12:12 UTC (permalink / raw)
  To: joro, will; +Cc: robin.murphy, jgg, iommu

From: yeeli <seven.yi.lee@gmail.com>

This series fixes an unmap that removes nothing from being turned into a
full-domain IOTLB flush, and adds a KUnit test for it.

Disclosure of tool use: the bug analysis and the initial drafts of both
patches were produced with the help of an AI coding assistant
(DeepSeek-V4.1-Flash, running in OpenCode). The prompts were a review of
the Intel IOMMU generic_pt integration, followed by requests to
reproduce, fix and test the empty unmap behaviour found there. The
assistant reviewed the iommupt unmap path and proposed the len guard in
gather_range_pending() plus the KUnit test; the code, commit messages
and test were then reviewed by the submitter. The submitter also
verified the behaviour independently: KUnit on the vtdss format, where
the new test fails without the fix and passes with it (full
vtdss_iommu_test: 63 tests, 60 passed, 3 skipped, 0 failed), and an
out-of-tree module on an Intel VT-d system observed with the
cache_tag_flush_range and qi_submit tracepoints. Everything that was
attempted could be built and tested. The submitter takes responsibility
for the submission.


yeeli (2):
  iommupt: fix full IOTLB flush from a zero length unmap
  iommupt: add a KUnit test for unmapping an empty range

 drivers/iommu/generic_pt/iommu_pt.h       |  7 ++++-
 drivers/iommu/generic_pt/kunit_iommu_pt.h | 31 +++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-09  6:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05 12:12 [PATCH 0/2] iommupt: fix zero-length unmap causing a full IOTLB flush YeeLi
2026-11-05 12:12 ` [PATCH 1/2] iommupt: fix full IOTLB flush from a zero length unmap YeeLi
2026-11-09  6:59   ` Baolu Lu
2026-11-05 12:12 ` [PATCH 2/2] iommupt: add a KUnit test for unmapping an empty range YeeLi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.