On Tue, 14 May 2024 at 14:41, Siddharth Chintamaneni <sidchintamaneni@xxxxxxxxx> wrote: > > Added selftests to check for nested deadlocks in queue and stack maps. > > test_map_queue_stack_nesting_success:PASS:test_queue_stack_nested_map__open 0 nsec > test_map_queue_stack_nesting_success:PASS:test_queue_stack_nested_map__load 0 nsec > test_map_queue_stack_nesting_success:PASS:test_queue_stack_nested_map__attach 0 nsec > test_map_queue_stack_nesting_success:PASS:MAP Write 0 nsec > test_map_queue_stack_nesting_success:PASS:no map nesting 0 nsec > test_map_queue_stack_nesting_success:PASS:no map nesting 0 nsec > 384/1 test_queue_stack_nested_map/map_queue_nesting:OK > test_map_queue_stack_nesting_success:PASS:test_queue_stack_nested_map__open 0 nsec > test_map_queue_stack_nesting_success:PASS:test_queue_stack_nested_map__load 0 nsec > test_map_queue_stack_nesting_success:PASS:test_queue_stack_nested_map__attach 0 nsec > test_map_queue_stack_nesting_success:PASS:MAP Write 0 nsec > test_map_queue_stack_nesting_success:PASS:no map nesting 0 nsec > 384/2 test_queue_stack_nested_map/map_stack_nesting:OK > 384 test_queue_stack_nested_map:OK > Summary: 1/2 PASSED, 0 SKIPPED, 0 FAILED > > Signed-off-by: Siddharth Chintamaneni <sidchintamaneni@xxxxxxxxx> > --- CI fails on s390 https://github.com/kernel-patches/bpf/actions/runs/9081519831/job/24957489598?pr=7031 A different method of triggering deadlock is required. Seems like _raw_spin_lock_irqsave being available everywhere cannot be relied upon.