Skip to contentSkip to conversation

SUPPORT.MD: Clarify the support state for the Arm SMMUv{1, 2} drivers

PATCH In review Julien Grall 3 participants 8 messages Sep 23, 2020 – Sep 24, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SUPPORT.MD: Clarify the support state for the Arm SMMUv{1, 2} drivers

From: Julien Grall <[email protected]>

SMMUv{1, 2} are both marked as security supported, so we would technically have to issue an XSA for any IOMMU security bug.

However, at the moment, device passthrough is not security supported on Arm and there is no plan to change that in the next few months.

Therefore, mark Arm SMMUv{1, 2} as supported but not security supported.

---

Cc Bertrand Marquis <[email protected]>
---
 SUPPORT.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
SUPPORT.md +2 -2
index 25987ec1dfb6..f35943a432f7 100644
@@ -62,8 +62,8 @@ supported in this document.
 
     Status, AMD IOMMU: Supported
     Status, Intel VT-d: Supported
-    Status, ARM SMMUv1: Supported
-    Status, ARM SMMUv2: Supported
+    Status, ARM SMMUv1: Supported, not security supported
+    Status, ARM SMMUv2: Supported, not security supported
     Status, Renesas IPMMU-VMSA: Supported, not security supported
 
 ### ARM/GICv3 ITS
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 7 lines · Julien Grall

From: Julien Grall <[email protected]>

SMMUv{1, 2} are both marked as security supported, so we would technically have to issue an XSA for any IOMMU security bug.

Quoted 6 lines

However, at the moment, device passthrough is not security supported on Arm and there is no plan to change that in the next few months.

Therefore, mark Arm SMMUv{1, 2} as supported but not security supported.

We will publish in the next week a first implementation of SMMUv3 support which might make sense to have fully Supported.

Cheers,
Bertrand

Quoted 26 lines

---

Cc Bertrand Marquis <[email protected]>

---
SUPPORT.md | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
SUPPORT.md +2 -2
index 25987ec1dfb6..f35943a432f7 100644
@@ -62,8 +62,8 @@ supported in this document.
 
    Status, AMD IOMMU: Supported
    Status, Intel VT-d: Supported
-    Status, ARM SMMUv1: Supported
-    Status, ARM SMMUv2: Supported
+    Status, ARM SMMUv1: Supported, not security supported
+    Status, ARM SMMUv2: Supported, not security supported
    Status, Renesas IPMMU-VMSA: Supported, not security supported
 
 ### ARM/GICv3 ITS
Signature · 1 line
2.17.1
#2 lore raw
Quoted 9 lines · Bertrand Marquis

Hi,

Quoted 7 lines · Julien Grall

From: Julien Grall <[email protected]>

SMMUv{1, 2} are both marked as security supported, so we would technically have to issue an XSA for any IOMMU security bug.

Quoted 8 lines
Quoted 6 lines

However, at the moment, device passthrough is not security supported on Arm and there is no plan to change that in the next few months.

Therefore, mark Arm SMMUv{1, 2} as supported but not security supported.

Thanks!

Quoted 1 line

We will publish in the next week a first implementation of SMMUv3 support which might make sense to have fully Supported.

I am not sure whether you include security supported in your "fully supported"

However, I would consider to follow the same model as we did with the IPMMU. The driver would first be marked as a technical preview to allow more testing in the community.

Cheers,

Signature · 1 line
Julien Grall
#3 lore raw
Quoted 20 lines · Julien Grall
Quoted 13 lines · Bertrand Marquis

Hi,

Quoted 12 lines · Julien Grall

From: Julien Grall <[email protected]>

SMMUv{1, 2} are both marked as security supported, so we would technically have to issue an XSA for any IOMMU security bug.

However, at the moment, device passthrough is not security supported on Arm and there is no plan to change that in the next few months.

Therefore, mark Arm SMMUv{1, 2} as supported but not security supported.

Quoted 8 lines
Quoted 2 lines
Quoted 1 line

Thanks!

Quoted 1 line

We will publish in the next week a first implementation of SMMUv3 support which might make sense to have fully Supported.

I am not sure whether you include security supported in your "fully supported"

If we something is missing we will be happy to fix it to reach this goal.

Quoted 2 lines

However, I would consider to follow the same model as we did with the IPMMU. The driver would first be marked as a technical preview to allow more testing in the community.

I was not meaning to have this at the very beginning.
More that it make more sense in general to have SMMUv3 with 2 level of page table supporting this then old SMMU versions.

Cheers
Bertrand

Quoted 5 lines

Cheers,

Signature · 1 line
Julien Grall
#4 lore raw
Quoted 2 lines · Bertrand Marquis
Quoted 1 line · Julien Grall

More that it make more sense in general to have SMMUv3 with 2 level of page table supporting this then old SMMU versions.

Both driver are equally important. I wouldn't discard SMMUv2 just because there is a new shiny version.

I also have some concerns with the SMMUv3. They are pretty similar to the GICv3 ITS as both use a shared ring for the commands.

Cheers,

Signature · 1 line
Julien Grall
#5 lore raw
In reply to Bertrand Marquis
Quoted 24 lines · Bertrand Marquis
Quoted 15 lines · Julien Grall
Quoted 13 lines · Bertrand Marquis

Hi,

Quoted 12 lines · Julien Grall

From: Julien Grall <[email protected]>

SMMUv{1, 2} are both marked as security supported, so we would technically have to issue an XSA for any IOMMU security bug.

However, at the moment, device passthrough is not security supported on Arm and there is no plan to change that in the next few months.

Therefore, mark Arm SMMUv{1, 2} as supported but not security supported.

Quoted 8 lines
Quoted 2 lines
Quoted 1 line

Thanks!

Quoted 1 line

We will publish in the next week a first implementation of SMMUv3 support which might make sense to have fully Supported.

I am not sure whether you include security supported in your "fully supported"

Quoted 7 lines

If we something is missing we will be happy to fix it to reach this goal.

Quoted 2 lines

However, I would consider to follow the same model as we did with the IPMMU. The driver would first be marked as a technical preview to allow more testing in the community.

I was not meaning to have this at the very beginning.
More that it make more sense in general to have SMMUv3 with 2 level of page table supporting this then old SMMU versions.

Just as a clarification, the distinction that we are making here is not to "downgrade" SMMUv1/2, but to clarify that it is not security supported. SMMUv1/2 is still fully supported.

Security support means that the security team will attempt to fix under closed door any bugs affecting it, and pre-disclose the fix at the appropriate time before making it fully public. It is a pretty heavy process in comparison to normal bug fixing and in the case of the SMMU doesn't make a lot of sense because device assignment in general is currently not security supported.

For SMMUv3, I think it makes sense for it to possibly start as "tech preview" for one release or two, then become "supported, not security supported".

Of course if one day we make the decision to turn device assignment security supported, then it makes sense to also change one or more SMMU drivers to security supported.

#6 lore raw

Hi Stefano,

Quoted 39 lines · Stefano Stabellini
Quoted 24 lines · Bertrand Marquis
Quoted 15 lines · Julien Grall
Quoted 13 lines · Bertrand Marquis

Hi,

Quoted 12 lines · Julien Grall

From: Julien Grall <[email protected]>

SMMUv{1, 2} are both marked as security supported, so we would technically have to issue an XSA for any IOMMU security bug.

However, at the moment, device passthrough is not security supported on Arm and there is no plan to change that in the next few months.

Therefore, mark Arm SMMUv{1, 2} as supported but not security supported.

Quoted 8 lines
Quoted 2 lines
Quoted 1 line

Thanks!

Quoted 1 line

We will publish in the next week a first implementation of SMMUv3 support which might make sense to have fully Supported.

I am not sure whether you include security supported in your "fully supported"

Quoted 7 lines

If we something is missing we will be happy to fix it to reach this goal.

Quoted 2 lines

However, I would consider to follow the same model as we did with the IPMMU. The driver would first be marked as a technical preview to allow more testing in the community.

I was not meaning to have this at the very beginning.
More that it make more sense in general to have SMMUv3 with 2 level of page table supporting this then old SMMU versions.

Just as a clarification, the distinction that we are making here is not to "downgrade" SMMUv1/2, but to clarify that it is not security supported. SMMUv1/2 is still fully supported.

Quoted 6 lines

Security support means that the security team will attempt to fix under closed door any bugs affecting it, and pre-disclose the fix at the appropriate time before making it fully public. It is a pretty heavy process in comparison to normal bug fixing and in the case of the SMMU doesn't make a lot of sense because device assignment in general is currently not security supported.

Thanks for the clarification.
Of course i never wanted to remove or downgrade SMMUv1/2 support,.

Quoted 4 lines

For SMMUv3, I think it makes sense for it to possibly start as "tech preview" for one release or two, then become "supported, not security supported".

Ok.

Quoted 4 lines

Of course if one day we make the decision to turn device assignment security supported, then it makes sense to also change one or more SMMU drivers to security supported.

Make sense yes, one does not go with the other.

Regards
Bertrand

Acked-by on v1 1/1
#7 lore raw
In reply to Julien Grall
Quoted 11 lines · Julien Grall

From: Julien Grall <[email protected]>

SMMUv{1, 2} are both marked as security supported, so we would technically have to issue an XSA for any IOMMU security bug.

However, at the moment, device passthrough is not security supported on Arm and there is no plan to change that in the next few months.

Therefore, mark Arm SMMUv{1, 2} as supported but not security supported.

Quoted 25 lines

---

Cc Bertrand Marquis <[email protected]>
---
 SUPPORT.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
SUPPORT.md +2 -2
index 25987ec1dfb6..f35943a432f7 100644
@@ -62,8 +62,8 @@ supported in this document.
 
     Status, AMD IOMMU: Supported
     Status, Intel VT-d: Supported
-    Status, ARM SMMUv1: Supported
-    Status, ARM SMMUv2: Supported
+    Status, ARM SMMUv1: Supported, not security supported
+    Status, ARM SMMUv2: Supported, not security supported
     Status, Renesas IPMMU-VMSA: Supported, not security supported
 
 ### ARM/GICv3 ITS
Signature · 1 line
2.17.1