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
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
thread_init
thread_stack tests: threads/thread_stack: extend tests for mapped stack 2024-04-10 07:44:27 -04:00
tls