X86_INTEL_UMIP is now X86_UMIP
authorAlexander Popov <alex.popov@linux.com>
Thu, 28 Nov 2019 21:07:48 +0000 (00:07 +0300)
committerAlexander Popov <alex.popov@linux.com>
Thu, 28 Nov 2019 21:07:48 +0000 (00:07 +0300)
kconfig-hardened-check.py

index 2dfa40722319946b4740cf13f6ecddae4ac08871..d7da0fdfb1037a0cb86a92f13d6fcb1bef1606e4 100755 (executable)
@@ -191,7 +191,8 @@ def construct_checklist(checklist, arch):
         checklist.append(OptCheck('MICROCODE',                   'y', 'defconfig', 'self_protection')) # is needed for mitigating CPU bugs
         checklist.append(OptCheck('RETPOLINE',                   'y', 'defconfig', 'self_protection'))
         checklist.append(OptCheck('X86_SMAP',                    'y', 'defconfig', 'self_protection'))
-        checklist.append(OptCheck('X86_INTEL_UMIP',              'y', 'defconfig', 'self_protection'))
+        checklist.append(OR(OptCheck('X86_UMIP',                 'y', 'defconfig', 'self_protection'), \
+                            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'), \