zephyr/tests/kernel/fatal
Vincent Wan d2edfa2347 tests: fatal: allocate timer outside of stack
In stack_sentinel_timer(), the timer should not be allocated on the
stack. If it gets added to the list of timeouts by k_timer_start,
then an unexpected exception may occur when the timer expires since it
may have been overwritten.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
2019-09-18 13:27:30 +08:00
..
src tests: fatal: allocate timer outside of stack 2019-09-18 13:27:30 +08:00
CMakeLists.txt
README
prj.conf tests: remove redundant CONFIG_HW_STACK_PROTECTION=y setting 2019-07-01 12:54:20 -07:00
prj_arm_fp_sharing.conf tests: remove redundant CONFIG_HW_STACK_PROTECTION=y setting 2019-07-01 12:54:20 -07:00
prj_armv8m_mpu_stack_guard.conf tests: kernel: fatal: run test for ARMv8-M with MPU stack guards 2019-07-01 12:54:20 -07:00
protection_no_userspace.conf tests: remove redundant CONFIG_HW_STACK_PROTECTION=y setting 2019-07-01 12:54:20 -07:00
sentinel.conf
testcase.yaml tests: exclude twr_ke18f platform from several user mode tests 2019-09-03 16:44:22 +02:00

README

This test case verifies that kernel fatal error handling works correctly.

If a thread causes a CPU exception, and it is not in an ISR or "essential"
thread, the thread gets aborted and the rest of the system executes normally.