From a758ea698ce77eefe9d15402867e43ee095d1c92 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 13 Mar 2022 21:12:23 +0300 Subject: [PATCH] Add CONFIG_SLS vs CVE-2021-26341 in Straight-Line-Speculation --- kconfig_hardened_check/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 2b5fe1e..b5960d9 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -470,6 +470,7 @@ def add_kconfig_checks(l, arch): # 'self_protection', 'my' l += [KconfigCheck('self_protection', 'my', 'RESET_ATTACK_MITIGATION', 'y')] # needs userspace support (systemd) if arch == 'X86_64': + l += [KconfigCheck('self_protection', 'my', 'SLS', 'y')] # vs CVE-2021-26341 in Straight-Line-Speculation l += [AND(KconfigCheck('self_protection', 'my', 'AMD_IOMMU_V2', 'y'), iommu_support_is_set)] if arch == 'ARM64': -- 2.31.1