zephyr/tests/kernel
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
..
cache tests: kernel: cache: Remove adp_xc7k/ae350 from the blacklist 2024-04-22 09:19:27 -04:00
common tests/kernel: Bump kobj thread bitmask size for a few tests 2024-05-02 13:55:03 -04:00
condvar/condvar_api
context
device tests/kernel/device: Add tests for device deferred init 2024-04-11 15:50:44 -04:00
early_sleep
events
fatal kernel: align thread stack size declaration 2024-03-27 19:27:10 -04:00
fifo
fpu_sharing
gen_isr_table
interrupt tests: kernel: interrupt: lto: Exclude builds with warning 2024-03-22 17:42:35 -04:00
lifo
mbox
mem_heap/k_heap_api
mem_protect boards: arm: stm32f756 with all mpu regions when testing in userspace 2024-04-30 15:11:57 +02:00
mem_slab
mp arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
msgq
mutex
obj_core
obj_tracking
pending
pipe
poll
profiling/profiling_api tests: kernel: remove pm from profiling test 2024-04-25 09:55:08 +00:00
queue
sched test: Remove multi level queue limit test 2024-03-12 19:37:40 -04:00
semaphore tests/kernel: Bump kobj thread bitmask size for a few tests 2024-05-02 13:55:03 -04:00
sleep
smp
smp_boot_delay
smp_suspend
spinlock arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
stack/stack
threads tests/kernel/threads: Augment abort_from_isr test to detect FMW 2024-05-02 13:55:03 -04:00
tickless/tickless_concept tests: tickless: do not enable PM 2024-04-25 09:55:08 +00:00
timer tests: timer_behavior: increase stdev tolerance for ite platform 2024-04-25 07:22:47 -04:00
usage/thread_runtime_stats
workq
xip