727996acdc
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> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
testcase.yaml |