From: Alexander Popov Date: Thu, 22 Oct 2020 17:46:04 +0000 (+0300) Subject: PAGE_POISONING -> PAGE_POISONING_ZERO X-Git-Tag: v0.5.9~8 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=4dcb0cdd1c84d90f268c9f970ff5b0093b12fcd8;p=kconfig-hardened-check.git PAGE_POISONING -> PAGE_POISONING_ZERO In fact, KSPP recommends PAGE_POISONING_ZERO. --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index f82c07c..48f4019 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -354,7 +354,7 @@ def construct_checklist(l, arch): l += [OR(OptCheck('self_protection', 'kspp', 'INIT_STACK_ALL', 'y'), OptCheck('self_protection', 'kspp', 'GCC_PLUGIN_STRUCTLEAK_BYREF_ALL', 'y'))] l += [OR(OptCheck('self_protection', 'kspp', 'INIT_ON_FREE_DEFAULT_ON', 'y'), - OptCheck('self_protection', 'kspp', 'PAGE_POISONING', 'y'))] # before v5.3 + OptCheck('self_protection', 'kspp', 'PAGE_POISONING_ZERO', 'y'))] # before v5.3 if arch in ('X86_64', 'ARM64', 'X86_32'): stackleak_is_set = OptCheck('self_protection', 'kspp', 'GCC_PLUGIN_STACKLEAK', 'y') l += [stackleak_is_set]