# DEBUG_WX has been renamed to ARM_DEBUG_WX on ARM
# 'self_protection', 'a13xp0p0v'
+ if arch == 'X86_64':
+ l += [AND(KconfigCheck('self_protection', 'a13xp0p0v', 'CFI_AUTO_DEFAULT', 'is not set'), # same as 'cfi=kcfi'
+ KconfigCheck('self_protection', 'a13xp0p0v', 'CFI_AUTO_DEFAULT', 'is present'))]
if arch == 'ARM':
l += [KconfigCheck('self_protection', 'a13xp0p0v', 'ARM_SMMU', 'y')]
l += [KconfigCheck('self_protection', 'a13xp0p0v', 'ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT', 'y')]
l += [CmdlineCheck('self_protection', 'kspp', 'slab_merge', 'is not set')] # consequence of 'slab_nomerge' by kspp
l += [CmdlineCheck('self_protection', 'kspp', 'slub_merge', 'is not set')] # consequence of 'slab_nomerge' by kspp
l += [CmdlineCheck('self_protection', 'kspp', 'page_alloc.shuffle', '1')]
- l += [CmdlineCheck('self_protection', 'kspp', 'cfi', 'kcfi')]
l += [OR(CmdlineCheck('self_protection', 'kspp', 'slab_nomerge', 'is present'),
AND(KconfigCheck('self_protection', 'kspp', 'SLAB_MERGE_DEFAULT', 'is not set'),
CmdlineCheck('self_protection', 'kspp', 'slab_merge', 'is not set'),
if arch == 'ARM64':
l += [OR(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto'),
CmdlineCheck('self_protection', 'kspp', 'mitigations', 'is not set'))] # same as 'auto'
+ if arch == 'X86_64':
+ l += [OR(CmdlineCheck('self_protection', 'kspp', 'cfi', 'kcfi'),
+ AND(KconfigCheck('self_protection', 'a13xp0p0v', 'CFI_AUTO_DEFAULT', 'is not set'), # same as 'cfi=kcfi'
+ KconfigCheck('self_protection', 'a13xp0p0v', 'CFI_AUTO_DEFAULT', 'is present'),
+ CmdlineCheck('self_protection', 'kspp', 'cfi', 'is not set')))]
# 'self_protection', 'clipos'
if arch in ('X86_64', 'X86_32'):