From: Alexander Popov Date: Sun, 13 Mar 2022 18:12:23 +0000 (+0300) Subject: Add CONFIG_SLS vs CVE-2021-26341 in Straight-Line-Speculation X-Git-Tag: v0.5.17~26 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a758ea698ce77eefe9d15402867e43ee095d1c92;p=kconfig-hardened-check.git Add CONFIG_SLS vs CVE-2021-26341 in Straight-Line-Speculation --- 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':