Skip to content

iommu/arm-smmu-v3: Fixes reported by Sashiko

Mostafa Saleh linux-arm-kernel linux-iommu lkml 2 versions – Applied

Status from this message: Applied to iommu (arm/smmu/updates), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 8 repliesApplied
  2. v17 patches 17 repliesSuperseded

Changes in v2 from the cover letter

v1: https://lore.kernel.org/all/[email protected]/
- Drop patches 2 and 3 as they are fixed by other patches on the list
- Collect Rbs

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5iommu/arm-smmu-v3: Ensure L2 tables are visible before L1 ptrsdrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+6 -01 reply
2/5iommu/arm-smmu-v3-test: Fix arm_smmu_v3_test_debug_print_used_bits()drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c+2 -21 reply
3/5iommu/arm-smmu-v3-test: Add missing error checks for inv arraydrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c+8 -01 reply
4/5iommu/arm-smmu-v3-test: Fix OOB in arm_smmu_v3_invs_test_verify()drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c+1 -11 reply
5/5iommu/arm-smmu-v3-test: Fix UBSAN errordrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c+5 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNicolin ChenJason GunthorpePranjal Shrivastava
SeriesT-b R-b
1/5R-b R-b R-b
2/5R-b R-b R-b
3/5R-b
4/5R-b R-b R-b
5/5R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] iommu/arm-smmu-v3: Fixes reported by Sashiko

While running sashiko locally on the pKVM SMMUv3 driver patches, it reported some pre-existing issues in the SMMUv3 driver (the RB tree corruption and a missing NULL check) and given that this is not the first time a pre-existing issue appears in the driver from sashiko, I went ahead and passed the whole driver to Sashiko which reported a dozen of other issues(except the last one in this series), I included fixes for bugs I believe are true or worth fixing (others were mostly missing NULL checks or bizarre HW/FW configs I don't think are needed).

I also sorted the patches based on severity from the most critical to the least, so it is easier to apply a prefix if some bugs are too theoretical

Changes in v2:
v1: https://lore.kernel.org/all/[email protected]/
- Drop patches 2 and 3 as they are fixed by other patches on the list
- Collect Rbs

Mostafa Saleh (5):
iommu/arm-smmu-v3: Ensure L2 tables are visible before L1 ptrs iommu/arm-smmu-v3-test: Fix arm_smmu_v3_test_debug_print_used_bits() iommu/arm-smmu-v3-test: Add missing error checks for inv array iommu/arm-smmu-v3-test: Fix OOB in arm_smmu_v3_invs_test_verify() iommu/arm-smmu-v3-test: Fix UBSAN error

 .../iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c  | 19 ++++++++++++++++---
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  6 ++++++
 2 files changed, 22 insertions(+), 3 deletions(-)
Signature · 1 line
2.56.0.rc1.315.gc6ed9934b7-goog