============================================ WARNING: possible recursive locking detected 5.18.0-rc1-syzkaller #0 Not tainted -------------------------------------------- syz-executor.0/4108 is trying to acquire lock: ffffffff8affbdb8 (trace_printk_lock){....}-{2:2}, at: ____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline] ffffffff8affbdb8 (trace_printk_lock){....}-{2:2}, at: bpf_trace_printk+0xa4/0x130 kernel/trace/bpf_trace.c:371 but task is already holding lock: ffffffff8affbdb8 (trace_printk_lock){....}-{2:2}, at: ____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline] ffffffff8affbdb8 (trace_printk_lock){....}-{2:2}, at: bpf_trace_printk+0xa4/0x130 kernel/trace/bpf_trace.c:371 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(trace_printk_lock); lock(trace_printk_lock); *** DEADLOCK *** May be due to missing lock nesting notation 7 locks held by syz-executor.0/4108: #0: ffffffff8afde808 (tracepoints_mutex){+.+.}-{3:3}, at: tracepoint_probe_unregister+0x25/0xbf0 kernel/tracepoint.c:548 #1: ffffffff8ae28f50 (cpu_hotplug_lock){++++}-{0:0}, at: static_key_disable+0x9/0x20 kernel/jump_label.c:214 #2: ffffffff8b052be8 (jump_label_mutex){+.+.}-{3:3}, at: jump_label_lock kernel/jump_label.c:27 [inline] #2: ffffffff8b052be8 (jump_label_mutex){+.+.}-{3:3}, at: static_key_disable_cpuslocked+0xd0/0x160 kernel/jump_label.c:205 #3: ffffffff8ae44528 (text_mutex){+.+.}-{3:3}, at: arch_jump_label_transform_queue+0x58/0x100 arch/x86/kernel/jump_label.c:136 #4: ffffffff8af79660 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x0/0x2b0 kernel/trace/./bpf_trace.h:11 #5: ffffffff8affbdb8 (trace_printk_lock){....}-{2:2}, at: ____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline] #5: ffffffff8affbdb8 (trace_printk_lock){....}-{2:2}, at: bpf_trace_printk+0xa4/0x130 kernel/trace/bpf_trace.c:371 #6: ffffffff8af79660 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x0/0x2b0 kernel/trace/./bpf_trace.h:11 stack backtrace: CPU: 1 PID: 4108 Comm: syz-executor.0 Not tainted 5.18.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2957 [inline] check_deadlock kernel/locking/lockdep.c:3000 [inline] validate_chain kernel/locking/lockdep.c:3785 [inline] __lock_acquire.cold+0x149/0x399 kernel/locking/lockdep.c:5022 lock_acquire kernel/locking/lockdep.c:5634 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5599 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 ____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline] bpf_trace_printk+0xa4/0x130 kernel/trace/bpf_trace.c:371 bpf_prog_0605f9f479290f07+0x2f/0x33 bpf_dispatcher_nop_func include/linux/bpf.h:804 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2022 [inline] bpf_trace_run2+0xe9/0x2b0 kernel/trace/bpf_trace.c:2059 __bpf_trace_contention_begin+0xb5/0xf0 include/trace/events/lock.h:95 trace_contention_begin.constprop.0+0xda/0x1b0 include/trace/events/lock.h:95 __pv_queued_spin_lock_slowpath+0x103/0xb50 kernel/locking/qspinlock.c:405 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x200/0x2a0 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x41/0x50 kernel/locking/spinlock.c:162 ____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline] bpf_trace_printk+0xa4/0x130 kernel/trace/bpf_trace.c:371 bpf_prog_0605f9f479290f07+0x2f/0x33 bpf_dispatcher_nop_func include/linux/bpf.h:804 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2022 [inline] bpf_trace_run2+0xe9/0x2b0 kernel/trace/bpf_trace.c:2059 __bpf_trace_contention_begin+0xb5/0xf0 include/trace/events/lock.h:95 trace_contention_begin+0xc0/0x150 include/trace/events/lock.h:95 __mutex_lock_common kernel/locking/mutex.c:605 [inline] __mutex_lock+0x13c/0x1350 kernel/locking/mutex.c:747 arch_jump_label_transform_queue+0x58/0x100 arch/x86/kernel/jump_label.c:136 __jump_label_update+0xea/0x330 kernel/jump_label.c:451 static_key_disable_cpuslocked+0x100/0x160 kernel/jump_label.c:207 static_key_disable+0x11/0x20 kernel/jump_label.c:215 tracepoint_remove_func kernel/tracepoint.c:417 [inline] tracepoint_probe_unregister+0x49e/0xbf0 kernel/tracepoint.c:551 bpf_raw_tp_link_release+0x4c/0xa0 kernel/bpf/syscall.c:2891 bpf_link_free+0xc9/0x190 kernel/bpf/syscall.c:2469 bpf_link_release+0x2e/0x50 kernel/bpf/syscall.c:2504 __fput+0x1f5/0x8c0 fs/file_table.c:317 task_work_run+0xc0/0x160 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f99db63bd4b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffd483150c0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f99db63bd4b RDX: 00007f99db7a10f8 RSI: ffffffffffffffff RDI: 0000000000000004 RBP: 00007f99db79d960 R08: 0000000000000000 R09: 00007f99db7a1100 R10: 00007ffd483151c0 R11: 0000000000000293 R12: 0000000000010d3f R13: 00007ffd483151c0 R14: 00007f99db79bf60 R15: 0000000000000226