From e90873f290e2351232358239152a0fbfde83ea7e Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 30 Jul 2020 15:39:39 -0700 Subject: [PATCH] tests: thread_stack: armv8 without SPLIM Need to test MPU guards on ARMv8. Signed-off-by: Andrew Boie --- .../threads/thread_stack/prj_armv8m_mpu_stack_guard.conf | 7 +++++++ tests/kernel/threads/thread_stack/testcase.yaml | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/kernel/threads/thread_stack/prj_armv8m_mpu_stack_guard.conf diff --git a/tests/kernel/threads/thread_stack/prj_armv8m_mpu_stack_guard.conf b/tests/kernel/threads/thread_stack/prj_armv8m_mpu_stack_guard.conf new file mode 100644 index 00000000000000..075d672ac276ba --- /dev/null +++ b/tests/kernel/threads/thread_stack/prj_armv8m_mpu_stack_guard.conf @@ -0,0 +1,7 @@ +CONFIG_ZTEST=y +CONFIG_INIT_STACKS=y +CONFIG_THREAD_STACK_INFO=y +CONFIG_APPLICATION_DEFINED_SYSCALL=y +CONFIG_TEST_USERSPACE=y +CONFIG_BUILTIN_STACK_GUARD=n +CONFIG_MPU_STACK_GUARD=y diff --git a/tests/kernel/threads/thread_stack/testcase.yaml b/tests/kernel/threads/thread_stack/testcase.yaml index e6acf6e95e7c08..104c9d9dad61c2 100644 --- a/tests/kernel/threads/thread_stack/testcase.yaml +++ b/tests/kernel/threads/thread_stack/testcase.yaml @@ -2,3 +2,9 @@ tests: kernel.threads.thread_stack: tags: kernel security userspace ignore_faults min_ram: 36 + kernel.threads.armv8m_mpu_stack_guard: + min_ram: 36 + extra_args: CONF_FILE=prj_armv8m_mpu_stack_guard.conf + filter: CONFIG_ARM_MPU and CONFIG_ARMV8_M_MAINLINE + arch_whitelist: arm + tags: kernel security userspace ignore_faults