Skip to content

Use the correct page tables for SVA under PTI

Jacob Pan linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: mm: Allow PTI helpers to be used outside x86/mmarch/x86/include/asm/pgtable.h+5 -00 replies
2/2iommu: Use the user PGD for SVA if PTI is enableddrivers/iommu/amd/iommu_v2.c drivers/iommu/intel/svm.c+7 -24 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLu Baolu
1/2
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] Use the correct page tables for SVA under PTI

Shared virtual addressing allows DMA to user virtual address, But the x86 IOMMU drivers are using the kernel copy of the process page tables when PTI is enabled. This patchset tightens the security intended by PTI by performing SVA binding with the appropriate process PGDs.

I have tested on Intel platform only, would appreciate itif someone could help with testing SVA-KPTI on an AMD system.

Jacob Pan (2):
x86: mm: Allow PTI helpers to be used outside x86/mm
iommu: Use the user PGD for SVA if PTI is enabled

 arch/x86/include/asm/pgtable.h | 5 +++++
 drivers/iommu/amd/iommu_v2.c   | 4 +++-
 drivers/iommu/intel/svm.c      | 5 ++++-
 3 files changed, 12 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1