x86_32: INTEL_IOMMU is not enabled by default - fix the reason
authorAlexander Popov <alex.popov@linux.com>
Thu, 28 Nov 2019 21:11:07 +0000 (00:11 +0300)
committerAlexander Popov <alex.popov@linux.com>
Thu, 28 Nov 2019 21:11:07 +0000 (00:11 +0300)
kconfig-hardened-check.py

index d7da0fdfb1037a0cb86a92f13d6fcb1bef1606e4..2973a0a585d8d2c4e580abdea0c29a66c46bd550 100755 (executable)
@@ -195,12 +195,12 @@ def construct_checklist(checklist, arch):
                             OptCheck('X86_INTEL_UMIP',           'y', 'defconfig', 'self_protection')))
         iommu_support_is_set = OptCheck('IOMMU_SUPPORT',         'y', 'defconfig', 'self_protection') # is needed for mitigating DMA attacks
         checklist.append(iommu_support_is_set)
-        checklist.append(AND(OptCheck('INTEL_IOMMU',             'y', 'defconfig', 'self_protection'), \
-                             iommu_support_is_set))
         checklist.append(OptCheck('SYN_COOKIES',                 'y', 'defconfig', 'self_protection')) # another reason?
     if debug_mode or arch == 'X86_64':
         checklist.append(OptCheck('PAGE_TABLE_ISOLATION',        'y', 'defconfig', 'self_protection'))
         checklist.append(OptCheck('RANDOMIZE_MEMORY',            'y', 'defconfig', 'self_protection'))
+        checklist.append(AND(OptCheck('INTEL_IOMMU',             'y', 'defconfig', 'self_protection'), \
+                             iommu_support_is_set))
         checklist.append(AND(OptCheck('AMD_IOMMU',               'y', 'defconfig', 'self_protection'), \
                              iommu_support_is_set))
     if debug_mode or arch == 'ARM64':