Skip to content

Commit 19c8956

Browse files
keith-packardstephanosio
authored andcommitted
tests: Disable HW stack protection for some mpu tests
When active, z_libc_partition consumes an MPU region which leaves too few for some MPU tests. Free up one by disabling HW stack protection. Signed-off-by: Keith Packard <[email protected]>
1 parent b03b2e0 commit 19c8956

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

samples/userspace/shared_mem/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ tests:
1515
sample.kernel.memory_protection.shared_mem:
1616
filter: CONFIG_ARCH_HAS_USERSPACE
1717
platform_exclude: twr_ke18f
18+
extra_configs:
19+
- CONFIG_TEST_HW_STACK_PROTECTION=n

tests/kernel/mem_protect/mem_protect/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tests:
66
# To get clean results we need to disable this test until the bug is fixed and fix
77
# gets propagated to new Zephyr-SDK.
88
platform_exclude: twr_ke18f qemu_arc_hs qemu_arc_em
9+
extra_args: CONFIG_TEST_HW_STACK_PROTECTION=n
910
tags: kernel security userspace ignore_faults
1011
kernel.memory_protection.gap_filling.arc:
1112
filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_MPU_REQUIRES_NON_OVERLAPPING_REGIONS

tests/kernel/mem_protect/userspace/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
tests:
22
kernel.memory_protection.userspace:
33
filter: CONFIG_ARCH_HAS_USERSPACE
4+
extra_args: CONFIG_TEST_HW_STACK_PROTECTION=n
45
tags: kernel security userspace ignore_faults
56
kernel.memory_protection.userspace.gap_filling.arc:
67
filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_MPU_REQUIRES_NON_OVERLAPPING_REGIONS

0 commit comments

Comments
 (0)