============================= [ BUG: Invalid wait context ] 6.13.0-rc1-syzkaller-00002-gcdd30ebb1b9f #0 Not tainted ----------------------------- kworker/u32:9/1151 is trying to lock: ffff888023955200 (&trie->lock){....}-{3:3}, at: trie_delete_elem+0xb0/0x820 kernel/bpf/lpm_trie.c:462 other info that might help us debug this: context-{5:5} 4 locks held by kworker/u32:9/1151: #0: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_lock_release include/linux/rcupdate.h:347 [inline] #0: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_read_unlock include/linux/rcupdate.h:880 [inline] #0: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: sched_balance_newidle+0x47c/0x1190 kernel/sched/fair.c:12771 #1: ffff88806a83ebd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:598 #2: ffff88806a82ca18 (hrtimer_bases.lock){-.-.}-{2:2}, at: lock_hrtimer_base kernel/time/hrtimer.c:175 [inline] #2: ffff88806a82ca18 (hrtimer_bases.lock){-.-.}-{2:2}, at: hrtimer_start_range_ns+0x118/0xc60 kernel/time/hrtimer.c:1291 #3: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #3: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #3: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2350 [inline] #3: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run2+0x1c2/0x590 kernel/trace/bpf_trace.c:2392 stack backtrace: CPU: 2 UID: 0 PID: 1151 Comm: kworker/u32:9 Not tainted 6.13.0-rc1-syzkaller-00002-gcdd30ebb1b9f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: 0x0 (events_unbound) Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 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+0x878/0x3c40 kernel/locking/lockdep.c:5176 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 trie_delete_elem+0xb0/0x820 kernel/bpf/lpm_trie.c:462 bpf_prog_2c29ac5cdc6b1842+0x43/0x47 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:2351 [inline] bpf_trace_run2+0x231/0x590 kernel/trace/bpf_trace.c:2392 __bpf_trace_hrtimer_start+0xd3/0x110 include/trace/events/timer.h:222 trace_hrtimer_start include/trace/events/timer.h:222 [inline] debug_activate kernel/time/hrtimer.c:470 [inline] enqueue_hrtimer+0x2ae/0x3c0 kernel/time/hrtimer.c:1076 __hrtimer_start_range_ns kernel/time/hrtimer.c:1251 [inline] hrtimer_start_range_ns+0x800/0xc60 kernel/time/hrtimer.c:1293 hrtimer_start include/linux/hrtimer.h:260 [inline] start_dl_timer+0x41c/0x5b0 kernel/sched/deadline.c:1170 enqueue_dl_entity+0xce6/0x2a60 kernel/sched/deadline.c:2053 dl_server_start+0xb9/0x700 kernel/sched/deadline.c:1650 enqueue_task_fair+0x550/0xfb0 kernel/sched/fair.c:7038 enqueue_task+0x73/0x3e0 kernel/sched/core.c:2061 activate_task+0x54/0xd0 kernel/sched/core.c:2108 attach_task+0x116/0x1b0 kernel/sched/fair.c:9635 attach_tasks kernel/sched/fair.c:9670 [inline] sched_balance_rq+0x1456/0x2ec0 kernel/sched/fair.c:11747 sched_balance_newidle+0x6bb/0x1190 kernel/sched/fair.c:12789 pick_next_task_fair+0x50/0x1280 kernel/sched/fair.c:8937 __pick_next_task+0xf1/0x6c0 kernel/sched/core.c:6023 pick_next_task kernel/sched/core.c:6121 [inline] __schedule+0x430/0x5ad0 kernel/sched/core.c:6709 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6848 worker_thread+0x2de/0xf00 kernel/workqueue.c:3406 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244