From: Alexander Popov Date: Sat, 10 Dec 2022 06:32:21 +0000 (+0300) Subject: Add the nobti check X-Git-Tag: v0.6.1~36 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b6cb71abf2bf219a6a7e0918ba68ef50cca1b2e2;p=kconfig-hardened-check.git Add the nobti check --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 71840aa..34ecb25 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -21,8 +21,6 @@ # ARM64: # kpti=on # -# Should NOT be set: -# arm64.nobti # arm64.nopauth # arm64.nomte # @@ -728,6 +726,7 @@ def add_cmdline_checks(l, arch): l += [CmdlineCheck('self_protection', 'defconfig', 'nospectre_v1', 'is not set')] l += [CmdlineCheck('self_protection', 'defconfig', 'nospectre_v2', 'is not set')] l += [CmdlineCheck('self_protection', 'defconfig', 'nospec_store_bypass_disable', 'is not set')] + l += [CmdlineCheck('self_protection', 'defconfig', 'arm64.nobti', 'is not set')] l += [OR(CmdlineCheck('self_protection', 'defconfig', 'mitigations', 'is not off'), CmdlineCheck('self_protection', 'defconfig', 'mitigations', 'is not set'))] l += [OR(CmdlineCheck('self_protection', 'defconfig', 'spectre_v2', 'is not off'),