zephyr/tests
Andy Ross 8d13be016a tests/kernel/fatal/exception: Remove legacy irq_lock() usage
The irq_lock() API is a legacy API not to be used for synchronization
by new code, and in any case is only being used in cargo-cult fashion
here.  These test cases all do synchronous exceptions, there's
literally nothing to synchronize against.

    (And in this case they're exposing a legacy wart.  On platforms where:

    1. SMP=y, which causes irq_lock() to be implemented as a somewhat
       complicated global lock

    2. No ARCH_EXCEPT() macro is defined, which causes the kernel to
       use a fallback that simply aborts the current thread.

    ...this test will then abort a thread holding the lock, which will
    cause it to be orphaned (if it weren't a legacy API, the kernel
    should probably attempt to clean it up in k_thread_abort(), but it
    is, and it doesn't), so the next attempt to lock it will hang.
    And it's even worse, because this test builds with SMP=y and
    MP_NUM_CPUS=1, so the hand will happen with interrupts masked on a
    system with only one CPU, and everything will lock up solid.)

Fixes #41877

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2022-01-19 15:10:55 -05:00
..
application_development/gen_inc_file cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
arch tests: arch: arm_irq_vector_table: Update to run on MXRT595 2022-01-19 13:35:09 -06:00
benchmarks pm: s/PM_DEVICE_(DT_(INST))_REF/PM_DEVICE_(DT_(INST))_GET 2022-01-18 12:14:06 -05:00
bluetooth Bluetooth: Mesh: Bsim test for LPN terminate cb 2022-01-18 10:41:18 -05:00
boards test: boards/intel_adsp: Add test of adsp_mem API 2022-01-18 19:18:30 -05:00
boot/uefi tests: uefi: move uefi test out of hello world 2021-10-22 06:36:51 -04:00
cmake/config_dir cmake: APPLICATION_CONFIG_DIR support implemented 2021-11-10 08:25:36 -05:00
crypto tests: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
drivers tests: drivers: i2c: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
kernel tests/kernel/fatal/exception: Remove legacy irq_lock() usage 2022-01-19 15:10:55 -05:00
lib tests: lib: devicetree: drop get_dev_data/get_dev_config usage 2022-01-19 18:16:02 +01:00
misc cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
net net: lwm2m: Add LwM2M gateway object 2022-01-18 13:19:12 -05:00
posix tests: lib: getopt 2022-01-06 21:26:59 +01:00
subsys tests: pm: Add a power domain test 2022-01-19 13:35:32 -05:00
unit lib/os: Add sys_winstream lockless shared memory byte stream IPC 2022-01-13 14:01:23 -05:00
ztest tests: ztress: fix dependency on SMP 2022-01-12 14:13:21 -05:00