From: Alexander Popov Date: Fri, 22 Apr 2022 07:23:23 +0000 (+0300) Subject: Add the KSPP recommendation of ZERO_CALL_USED_REGS X-Git-Tag: v0.5.17~7 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;ds=inline;h=dd9448b2206e590cda7c99e31aad4c5b24026211;p=kconfig-hardened-check.git Add the KSPP recommendation of ZERO_CALL_USED_REGS --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index fb9d37b..762014c 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -395,6 +395,7 @@ def add_kconfig_checks(l, arch): l += [KconfigCheck('self_protection', 'kspp', 'KFENCE', 'y')] l += [KconfigCheck('self_protection', 'kspp', 'WERROR', 'y')] l += [KconfigCheck('self_protection', 'kspp', 'IOMMU_DEFAULT_DMA_STRICT', 'y')] + l += [KconfigCheck('self_protection', 'kspp', 'ZERO_CALL_USED_REGS', 'y')] randstruct_is_set = KconfigCheck('self_protection', 'kspp', 'GCC_PLUGIN_RANDSTRUCT', 'y') l += [randstruct_is_set] hardened_usercopy_is_set = KconfigCheck('self_protection', 'kspp', 'HARDENED_USERCOPY', 'y')