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> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| prj_arm_fp_sharing.conf | ||
| prj_armv8m_mpu_stack_guard.conf | ||
| prj.conf | ||
| protection_no_userspace.conf | ||
| README | ||
| sentinel.conf | ||
| testcase.yaml | ||
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.