Skip to content

Commit 3551ada

Browse files
tests/kernel/fatal/exception: Skip stack sentinel test with shadow stack
Test could trip shadow stack protections instead of normal stack sentinel, thus requiring special handling for this case. Just avoid this test instead, if CONFIG_HW_SHADOW_STACK=y. Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
1 parent 5853433 commit 3551ada

File tree

1 file changed

+1
-1
lines changed
  • tests/kernel/fatal/exception/src

1 file changed

+1
-1
lines changed

tests/kernel/fatal/exception/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ ZTEST(fatal_exception, test_fatal)
385385

386386
#ifndef CONFIG_ARCH_POSIX
387387

388-
#ifdef CONFIG_STACK_SENTINEL
388+
#if defined(CONFIG_STACK_SENTINEL) && !defined(CONFIG_HW_SHADOW_STACK)
389389
TC_PRINT("test stack sentinel overflow - timer irq\n");
390390
check_stack_overflow(stack_sentinel_timer, 0);
391391

0 commit comments

Comments
 (0)