zephyr/tests/kernel/threads
Andy Ross 727996acdc tests/kernel/threads: Augment abort_from_isr test to detect FMW
There's a easily-tripped-upon free memory write condition in the arch
layers where they will write to a cached _current pointer after that
thread has been aborted.  Detect this by clobbering the thread data
after the return from k_thread_abort() and validating that it's still
clear after the ISR returns.

Note that the clobbering of the thread struct requires the removal of
a k_thread_join() that (obviously) requires that it see a DEAD flag
set.  Joining aborted threads isn't actually legal, but does still
work as long as app code doesn't reuse the memory.  Basically we can't
test both cases here, and we have join coverage elsewhere already.

Signed-off-by: Andy Ross <andyross@google.com>
2024-05-02 13:55:03 -04:00
..
dynamic_thread tests: kernel: use TC_END_REPORT for faults 2024-02-28 13:39:15 -05:00
dynamic_thread_stack kernel: align thread stack size declaration 2024-03-27 19:27:10 -04:00
no-multithreading hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
thread_apis tests/kernel/threads: Augment abort_from_isr test to detect FMW 2024-05-02 13:55:03 -04:00
thread_error_case tests: threads: Remove unneeded option 2023-12-06 09:18:14 +00:00
thread_init tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
thread_stack tests: threads/thread_stack: extend tests for mapped stack 2024-04-10 07:44:27 -04:00
tls tests: userspace: exclude ucans32k1sic due to lack of MPU regions 2023-12-05 16:20:10 -06:00