HW stack protection in ARMv8-M is implemented by default with the built-in stack guard mechanism. Therefore, by default all tests for ARMv8-M will use the built-in stack overflow mechanism (CONFIG_BUILTIN_STACK_GUARD is set in tests). However, we would like have some coverage on the MPU stack guard mechanism for ARMv8-M. The added test case manually disables BUILTIN_STACK_GUARD and enables the MPU_STACK_GUARD option, to provide that test coverage. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
23 lines
935 B
YAML
23 lines
935 B
YAML
tests:
|
|
kernel.common.stack_protection:
|
|
extra_args: CONF_FILE=prj.conf
|
|
filter: CONFIG_ARCH_HAS_STACK_PROTECTION
|
|
tags: kernel ignore_faults userspace
|
|
kernel.common.stack_protection_no_userspace:
|
|
extra_args: CONF_FILE=protection_no_userspace.conf
|
|
filter: CONFIG_ARCH_HAS_STACK_PROTECTION
|
|
arch_whitelist: arm
|
|
tags: kernel ignore_faults memory_protection
|
|
kernel.common.stack_protection_arm_fp_sharing:
|
|
extra_args: CONF_FILE=prj_arm_fp_sharing.conf
|
|
filter: CONFIG_ARCH_HAS_STACK_PROTECTION and CONFIG_ARMV7_M_ARMV8_M_FP
|
|
tags: kernel ignore_faults userspace
|
|
kernel.common.stack_protection_armv8m_mpu_stack_guard:
|
|
extra_args: CONF_FILE=prj_armv8m_mpu_stack_guard.conf
|
|
filter: CONFIG_ARM_MPU and CONFIG_ARMV8_M_MAINLINE
|
|
arch_whitelist: arm
|
|
tags: kernel ignore_faults userspace
|
|
kernel.common.stack_sentinel:
|
|
extra_args: CONF_FILE=sentinel.conf
|
|
tags: kernel ignore_faults
|