============================= [ BUG: Invalid wait context ] 6.12.0-rc5-next-20241104-syzkaller #0 Not tainted ----------------------------- syz.3.811/8339 is trying to lock: ffff88802fa74a00 (&trie->lock){....}-{3:3}, at: trie_delete_elem+0x96/0x6a0 kernel/bpf/lpm_trie.c:462 other info that might help us debug this: context-{5:5} 3 locks held by syz.3.811/8339: #0: ffffffff8e93c0e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e93c0e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e93c0e0 (rcu_read_lock){....}-{1:3}, at: __queue_work+0x199/0xf50 kernel/workqueue.c:2259 #1: ffff88801aca0018 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x759/0xf50 #2: ffffffff8e93c0e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff8e93c0e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8e93c0e0 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2339 [inline] #2: ffffffff8e93c0e0 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run3+0x24c/0x5a0 kernel/trace/bpf_trace.c:2382 stack backtrace: CPU: 0 UID: 0 PID: 8339 Comm: syz.3.811 Not tainted 6.12.0-rc5-next-20241104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x15a8/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 trie_delete_elem+0x96/0x6a0 kernel/bpf/lpm_trie.c:462 bpf_prog_1c0c44170264bb34+0x46/0x4a bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2340 [inline] bpf_trace_run3+0x33a/0x5a0 kernel/trace/bpf_trace.c:2382 trace_workqueue_queue_work include/trace/events/workqueue.h:23 [inline] __queue_work+0xee6/0xf50 kernel/workqueue.c:2321 queue_work_on+0x1c2/0x380 kernel/workqueue.c:2390 bpf_map_put_with_uref kernel/bpf/syscall.c:919 [inline] bpf_map_release+0x12a/0x140 kernel/bpf/syscall.c:929 __fput+0x23c/0xa50 fs/file_table.c:450 __do_sys_close fs/open.c:1571 [inline] __se_sys_close fs/open.c:1556 [inline] __x64_sys_close+0x7f/0x110 fs/open.c:1556 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8ee797e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8ee8756038 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 00007f8ee7b35f80 RCX: 00007f8ee797e719 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f8ee79f132e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8ee7b35f80 R15: 00007fff91626fe8