Skip to content

Commit 8ef3456

Browse files
ioannisgMaureenHelm
authored andcommitted
tests: explicitly disable HW Stack Protection when needed
Some ARM platforms, now, enable HW Stack Protection by default in the Board definition. So if some tests need to run without stack protection, it is not sufficient to disable TEST_HW_STACK_PROTECTION; we need to explicitly disable HW_STACK_PROTECTION. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 8a58a44 commit 8ef3456

File tree

7 files changed

+14
-2
lines changed

7 files changed

+14
-2
lines changed

tests/benchmarks/app_kernel/prj.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ CONFIG_TICKLESS_KERNEL=n
99
CONFIG_MAIN_THREAD_PRIORITY=6
1010
CONFIG_FORCE_NO_ASSERT=y
1111

12-
#Disable Userspace
12+
# Disable HW Stack Protection (see #28664)
1313
CONFIG_TEST_HW_STACK_PROTECTION=n
14+
CONFIG_HW_STACK_PROTECTION=n

tests/benchmarks/app_kernel/prj_fp.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ CONFIG_TICKLESS_KERNEL=n
1414

1515
CONFIG_FORCE_NO_ASSERT=y
1616

17-
#Disable Userspace
17+
# Disable HW Stack Protection (see #28664)
1818
CONFIG_TEST_HW_STACK_PROTECTION=n
19+
CONFIG_HW_STACK_PROTECTION=n

tests/benchmarks/boot_time/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ CONFIG_BOOT_TIME_MEASUREMENT=y
33
CONFIG_TEST_RANDOM_GENERATOR=y
44
CONFIG_FORCE_NO_ASSERT=y
55
CONFIG_TEST_HW_STACK_PROTECTION=n
6+
# Disable HW Stack Protection (see #28664)
7+
CONFIG_HW_STACK_PROTECTION=n

tests/benchmarks/latency_measure/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ CONFIG_BT=n
1212
CONFIG_FORCE_NO_ASSERT=y
1313

1414
CONFIG_TEST_HW_STACK_PROTECTION=n
15+
# Disable HW Stack Protection (see #28664)
16+
CONFIG_HW_STACK_PROTECTION=n
1517
CONFIG_COVERAGE=n
1618

1719
# Disable system power management

tests/benchmarks/sys_kernel/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ CONFIG_MAIN_STACK_SIZE=16384
1010
CONFIG_FORCE_NO_ASSERT=y
1111

1212
CONFIG_TEST_HW_STACK_PROTECTION=n
13+
# Disable HW Stack Protection (see #28664)
14+
CONFIG_HW_STACK_PROTECTION=n
1315

1416
# Can only run under 1 CPU
1517
CONFIG_MP_NUM_CPUS=1

tests/kernel/fatal/exception/sentinel.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
CONFIG_STACK_SENTINEL=y
22
CONFIG_TEST_HW_STACK_PROTECTION=n
3+
# Disable HW Stack Protection (see #28664)
4+
CONFIG_HW_STACK_PROTECTION=n
35
CONFIG_ZTEST=y
46
CONFIG_COVERAGE=n
57
CONFIG_TICKLESS_KERNEL=n

tests/kernel/profiling/profiling_api/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ CONFIG_PRINTK=y
44
CONFIG_THREAD_MONITOR=y
55
CONFIG_THREAD_STACK_INFO=y
66
CONFIG_TEST_HW_STACK_PROTECTION=n
7+
# Disable HW Stack Protection (see #28664)
8+
CONFIG_HW_STACK_PROTECTION=n
79
# to check idle thread
810
CONFIG_SYS_POWER_MANAGEMENT=y
911
CONFIG_SYS_POWER_SLEEP_STATES=y

0 commit comments

Comments
 (0)