zephyr/tests/kernel
Andy Ross 3ef282be6c 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-04-25 15:12:02 +02: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-04-25 15:12:02 +02:00
condvar/condvar_api tests: fix thread function signatures 2023-10-30 12:24:34 +01:00
context tests/kernel/context: Improve to resist parallel threads interrupting 2024-01-15 09:58:26 +01:00
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 twister: s/riscv(32|64)/riscv 2024-02-26 12:49:06 +01:00
gen_isr_table hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
interrupt tests: kernel: interrupt: lto: Exclude builds with warning 2024-03-22 17:42:35 -04:00
lifo
mbox hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mem_heap/k_heap_api tests: move shared_multi_heap to tests/lib 2023-12-13 17:27:54 -05:00
mem_protect tests: mem_protect/stackprot: test mapped stack 2024-04-10 07:44:27 -04:00
mem_slab hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mp arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
msgq
mutex tests: kernel: fix thread function signatures 2023-10-30 17:45:59 +00:00
obj_core hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
obj_tracking
pending
pipe tests: kernel: use TC_END_REPORT for faults 2024-02-28 13:39:15 -05:00
poll hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
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-04-25 15:12:02 +02:00
sleep tests: sleep: reduce verbosity 2024-01-09 09:58:57 +01:00
smp hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
smp_boot_delay hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
smp_suspend tests: smp_suspend: Add configurable delay 2024-01-26 15:55:27 +00:00
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-04-25 15:12:02 +02: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 tests: kernel: thread_runtime_stats: Relax precision test for QEMU 2024-03-06 16:42:33 -05:00
workq hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
xip hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00