From 29700a52a2622c6e5076e0b3be2642b337ebc37b Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 23 Oct 2020 20:53:33 +0300 Subject: [PATCH] Add SHADOW_CALL_STACK for ARM64 --- kconfig_hardened_check/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 5873a79..fe06bc9 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -404,6 +404,8 @@ def construct_checklist(l, arch): if arch == 'X86_64': l += [AND(OptCheck('self_protection', 'my', 'AMD_IOMMU_V2', 'y'), iommu_support_is_set)] + if arch == 'ARM64': + l += [OptCheck('self_protection', 'my', 'SHADOW_CALL_STACK', 'y')] # 'security_policy' if arch in ('X86_64', 'ARM64', 'X86_32'): -- 2.31.1