From: Alexander Popov Date: Sun, 20 Mar 2022 21:51:30 +0000 (+0300) Subject: Add MITIGATE_SPECTRE_BRANCH_HISTORY for arm64 X-Git-Tag: v0.5.17~22 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=f5ba73c39a6f7480a593c92d14e09c8c4acf8746;p=kconfig-hardened-check.git Add MITIGATE_SPECTRE_BRANCH_HISTORY for arm64 --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 5afecb8..586658e 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -375,6 +375,7 @@ def add_kconfig_checks(l, arch): l += [KconfigCheck('self_protection', 'defconfig', 'ARM64_BTI_KERNEL', 'y')] l += [OR(KconfigCheck('self_protection', 'defconfig', 'HARDEN_BRANCH_PREDICTOR', 'y'), VersionCheck((5, 10)))] # HARDEN_BRANCH_PREDICTOR is enabled by default since v5.10 + l += [KconfigCheck('self_protection', 'defconfig', 'MITIGATE_SPECTRE_BRANCH_HISTORY', 'y')] l += [KconfigCheck('self_protection', 'defconfig', 'ARM64_MTE', 'y')] if arch == 'ARM': l += [KconfigCheck('self_protection', 'defconfig', 'CPU_SW_DOMAIN_PAN', 'y')]