iommu: Fix domain check on release
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 7 repliesIn review
- v22 patches 4 repliesSuperseded
- v12 patches 7 repliesSuperseded
Changes in v3 from the cover letter
- Avoid global IOTLB and PASID cache invalidation in normal release path to mitigate the impact on other devices.
- Comment and code refinements.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | iommu: Add static iommu_ops->release_domaindrivers/ include/ | +16 | 3 replies | |
| 2/5 | iommu/vt-d: Fix NULL domain on device releasedrivers/ drivers/ drivers/ | +71 | 1 reply | |
| 3/5 | iommu/vt-d: Setup scalable mode context entry in probe pathdrivers/ drivers/ drivers/ | +151 | 1 reply | |
| 4/5 | iommu/vt-d: Remove scalable mode context entry setup from attach_devdrivers/ | +44 | 0 replies | |
| 5/5 | iommu/vt-d: Remove scalabe mode in domain_context_clear_one()drivers/ | +1 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Kevin Tian |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/5] iommu: Fix domain check on release
This is a follow-up to the discussion thread here:
https://lore.kernel.org/linux-iommu/[email protected]/
It fixes a NULL pointer dereference issue in the Intel iommu driver and strengthens the iommu core to possibly prevent similar failures in other iommu drivers.
There are two parts of this topic:
[x] Introduce release_domain and fix a kernel NULL pointer dereference issue in the intel iommu driver.
[x] Follow-up patches to cleanup intel iommu driver.
Best regards,
baolu
Change log:
v3:
- Avoid global IOTLB and PASID cache invalidation in normal release path to mitigate the impact on other devices.
- Comment and code refinements.
v2:
- https://lore.kernel.org/linux-iommu/[email protected]/
- https://lore.kernel.org/linux-iommu/[email protected]/
- The scalable mode context entry should be removed in the release path as it's not part of the blocking domain.
v1: https://lore.kernel.org/linux-iommu/[email protected]/
Lu Baolu (5):
iommu: Add static iommu_ops->release_domain
iommu/vt-d: Fix NULL domain on device release
iommu/vt-d: Setup scalable mode context entry in probe path iommu/vt-d: Remove scalable mode context entry setup from attach_dev iommu/vt-d: Remove scalabe mode in domain_context_clear_one()
include/linux/iommu.h | 1 + drivers/iommu/intel/pasid.h | 2 + drivers/iommu/intel/iommu.c | 214 +++++++++++------------------------- drivers/iommu/intel/pasid.c | 202 ++++++++++++++++++++++++++++++++++ drivers/iommu/iommu.c | 19 +++- 5 files changed, 283 insertions(+), 155 deletions(-)
Signature · 1 line
2.34.1