=============================
[ BUG: Invalid wait context ]
6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0 Not tainted
-----------------------------
syz-executor216/5930 is trying to lock:
ffff888032234a00
(&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-{3:3}
6 locks held by syz-executor216/5930:
#0: ffffffff8e23bbe8 (tracepoints_mutex){+.+.}-{4:4}, at: tracepoint_probe_register_prio_may_exist+0x9c/0x110 kernel/tracepoint.c:431
#1: ffffffff8e05eb50 (cpu_hotplug_lock){++++}-{0:0}, at: static_key_enable+0x12/0x20 kernel/jump_label.c:222
#2: ffffffff8e2da0c8 (jump_label_mutex){+.+.}-{4:4}, at: jump_label_lock kernel/jump_label.c:27 [inline]
#2: ffffffff8e2da0c8 (jump_label_mutex){+.+.}-{4:4}, at: static_key_enable_cpuslocked+0xb5/0x270 kernel/jump_label.c:207
#3: ffffffff8e07c488 (text_mutex){+.+.}-{4:4}, at: arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:145
#4: ffff88806a72a898 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5d/0x220 kernel/time/timer.c:1050
#5: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#5: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#5: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2350 [inline]
#5: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run2+0x1c2/0x590 kernel/trace/bpf_trace.c:2392
stack backtrace:
CPU: 1 UID: 0 PID: 5930 Comm: syz-executor216 Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
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_timer_start+0xc7/0x100 include/trace/events/timer.h:52
trace_timer_start include/trace/events/timer.h:52 [inline]
enqueue_timer+0x2b0/0x550 kernel/time/timer.c:662
internal_add_timer kernel/time/timer.c:687 [inline]
__mod_timer+0x8d7/0xdc0 kernel/time/timer.c:1182
queue_iova drivers/iommu/dma-iommu.c:250 [inline]
iommu_dma_free_iova+0x669/0x900 drivers/iommu/dma-iommu.c:817
__iommu_dma_unmap+0x1a8/0x2f0 drivers/iommu/dma-iommu.c:845
iommu_dma_unmap_page+0x63/0x160 drivers/iommu/dma-iommu.c:1236
dma_unmap_page_attrs+0x582/0x8a0 kernel/dma/mapping.c:193
dma_unmap_single_attrs include/linux/dma-mapping.h:391 [inline]
e1000_unmap_and_free_tx_resource+0xe9/0x200 drivers/net/ethernet/intel/e1000/e1000_main.c:1966
e1000_clean_tx_irq drivers/net/ethernet/intel/e1000/e1000_main.c:3864 [inline]
e1000_clean+0x4a4/0x2700 drivers/net/ethernet/intel/e1000/e1000_main.c:3805
__napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6877
napi_poll net/core/dev.c:6946 [inline]
net_rx_action+0xa94/0x1010 net/core/dev.c:7068
handle_softirqs+0x213/0x8f0 kernel/softirq.c:554
__do_softirq kernel/softirq.c:588 [inline]
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:655
irq_exit_rcu+0x9/0x30 kernel/softirq.c:671
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline]
RIP: 0010:smp_call_function_many_cond+0x45d/0x1300 kernel/smp.c:884
Code: 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 7a 0d 0c 00 f3 90 41 0f b6 04 24 <40> 38 c5 7c 08 84 c0 0f 85 a7 0c 00 00 8b 43 08 31 ff 83 e0 01 41
RSP: 0018:ffffc900058af790 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff88806a846860 RCX: ffffffff818df8bc
RDX: ffff888027018000 RSI: ffffffff818df896 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000005 R12: ffffed100d508d0d
R13: 0000000000000001 R14: ffff88806a846868 R15: ffff88806a73fe40
on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1051
on_each_cpu include/linux/smp.h:71 [inline]
text_poke_sync arch/x86/kernel/alternative.c:2114 [inline]
text_poke_bp_batch+0x659/0x760 arch/x86/kernel/alternative.c:2324
text_poke_flush arch/x86/kernel/alternative.c:2515 [inline]
text_poke_flush arch/x86/kernel/alternative.c:2512 [inline]
text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2522
arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
jump_label_update+0x1d7/0x400 kernel/jump_label.c:920
static_key_enable_cpuslocked+0x1b7/0x270 kernel/jump_label.c:210
static_key_enable+0x1a/0x20 kernel/jump_label.c:223
tracepoint_add_func+0xac8/0xeb0 kernel/tracepoint.c:315
tracepoint_probe_register_prio_may_exist+0xbd/0x110 kernel/tracepoint.c:435
tracepoint_probe_register_may_exist include/linux/tracepoint.h:50 [inline]
bpf_probe_register+0x189/0x200 kernel/trace/bpf_trace.c:2419
bpf_raw_tp_link_attach+0x2cd/0x5f0 kernel/bpf/syscall.c:3981
bpf_raw_tracepoint_open kernel/bpf/syscall.c:4012 [inline]
__sys_bpf+0x3a4/0x49c0 kernel/bpf/syscall.c:5832
__do_sys_bpf kernel/bpf/syscall.c:5897 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5895 [inline]
__x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5895
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91adf5adb9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc6e5500c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f91adf5adb9
RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000011
RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
----------------
Code disassembly (best guess):
0: 4d rex.WRB
1: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
8: fc ff df
b: 4d 89 f4 mov %r14,%r12
e: 4c 89 f5 mov %r14,%rbp
11: 49 c1 ec 03 shr $0x3,%r12
15: 83 e5 07 and $0x7,%ebp
18: 49 01 c4 add %rax,%r12
1b: 83 c5 03 add $0x3,%ebp
1e: e8 7a 0d 0c 00 call 0xc0d9d
23: f3 90 pause
25: 41 0f b6 04 24 movzbl (%r12),%eax
* 2a: 40 38 c5 cmp %al,%bpl <-- trapping instruction
2d: 7c 08 jl 0x37
2f: 84 c0 test %al,%al
31: 0f 85 a7 0c 00 00 jne 0xcde
37: 8b 43 08 mov 0x8(%rbx),%eax
3a: 31 ff xor %edi,%edi
3c: 83 e0 01 and $0x1,%eax
3f: 41 rex.B