============================================ WARNING: possible recursive locking detected 5.15.164-syzkaller #0 Not tainted -------------------------------------------- syz.1.18/3685 is trying to acquire lock: ffff8880b9a35bb8 (lock #9){....}-{2:2} , at: local_lock_acquire+0xd/0x170 include/linux/local_lock_internal.h:28 but task is already holding lock: ffff8880b9a35bb8 (lock #9){....}-{2:2} , at: local_lock_acquire+0xd/0x170 include/linux/local_lock_internal.h:28 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock( lock#9 ); lock(lock #9); *** DEADLOCK *** May be due to missing lock nesting notation 11 locks held by syz.1.18/3685: #0: ffffffff8c95f9e8 (tracepoints_mutex ){+.+.}-{3:3} , at: tracepoint_probe_register_prio_may_exist+0xb7/0x190 kernel/tracepoint.c:478 #1: ffffffff8c7bd390 (cpu_hotplug_lock ){++++}-{0:0} , at: static_key_enable+0xe/0x20 kernel/jump_label.c:189 #2: ffffffff8c9acd68 (jump_label_mutex ){+.+.}-{3:3} , at: jump_label_lock kernel/jump_label.c:27 [inline] , at: static_key_enable_cpuslocked+0xcf/0x250 kernel/jump_label.c:174 #3: ffffffff8c7d5048 (text_mutex ){+.+.}-{3:3} , at: arch_jump_label_transform_apply+0xe/0x20 arch/x86/kernel/jump_label.c:145 #4: ffff888011c66078 (ptlock_ptr(page) #2){+.+.}-{2:2} , at: spin_lock include/linux/spinlock.h:363 [inline] , at: __get_locked_pte+0x169/0x1c0 mm/memory.c:1749 #5: ffffffff8c91fb20 (rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #6: ffff8880249bb228 (&mm->mmap_lock ){++++}-{3:3} , at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] , at: stack_map_get_build_id_offset+0x23e/0x930 kernel/bpf/stackmap.c:185 #7: ffff8880b9a35bb8 (lock #9){....}-{2:2} , at: local_lock_acquire+0xd/0x170 include/linux/local_lock_internal.h:28 #8: ffffffff8c91fb20 (rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #9: ffffffff8c91fb20 (rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #10: ffff8880249bb228 (&mm->mmap_lock ){++++}-{3:3} , at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] , at: stack_map_get_build_id_offset+0x23e/0x930 kernel/bpf/stackmap.c:185 stack backtrace: CPU: 0 PID: 3685 Comm: syz.1.18 Not tainted 5.15.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2946 [inline] check_deadlock kernel/locking/lockdep.c:2989 [inline] validate_chain+0x46d2/0x5930 kernel/locking/lockdep.c:3775 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 local_lock_acquire+0x29/0x170 include/linux/local_lock_internal.h:29 __mmap_lock_do_trace_acquire_returned+0x7c/0x340 mm/mmap_lock.c:237 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:137 [inline] stack_map_get_build_id_offset+0x612/0x930 kernel/bpf/stackmap.c:185 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline] bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480 bpf_prog_ec3b2eefa702d8d3+0x3a/0x4cc bpf_dispatcher_nop_func include/linux/bpf.h:790 [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:1880 [inline] bpf_trace_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1919 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline] __mmap_lock_do_trace_acquire_returned+0x2d6/0x340 mm/mmap_lock.c:237 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:137 [inline] stack_map_get_build_id_offset+0x612/0x930 kernel/bpf/stackmap.c:185 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline] bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480 bpf_prog_ec3b2eefa702d8d3+0x3a/0x4cc bpf_dispatcher_nop_func include/linux/bpf.h:790 [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:1880 [inline] bpf_trace_run2+0x19e/0x340 kernel/trace/bpf_trace.c:1917 trace_tlb_flush+0xed/0x110 include/trace/events/tlb.h:38 switch_mm_irqs_off+0x748/0xa30 use_temporary_mm arch/x86/kernel/alternative.c:1019 [inline] __text_poke+0x5b8/0x9e0 arch/x86/kernel/alternative.c:1116 text_poke arch/x86/kernel/alternative.c:1178 [inline] text_poke_bp_batch+0x14c/0x930 arch/x86/kernel/alternative.c:1404 text_poke_flush arch/x86/kernel/alternative.c:1598 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1605 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x12e/0x250 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 tracepoint_add_func+0x947/0x9d0 kernel/tracepoint.c:361 tracepoint_probe_register_prio_may_exist+0x11e/0x190 kernel/tracepoint.c:482 bpf_raw_tracepoint_open+0x65a/0x750 kernel/bpf/syscall.c:3113 __sys_bpf+0x468/0x670 kernel/bpf/syscall.c:4693 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ff3b7b069b9 Code: Unable to access opcode bytes at RIP 0x7ff3b7b0698f. RSP: 002b:00007ff3b5f83038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007ff3b7ca2f80 RCX: 00007ff3b7b069b9 RDX: 0000000000000010 RSI: 0000000020000340 RDI: 0000000000000011 RBP: 00007ff3b7b748d8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff3b7ca2f80 R15: 00007fff025b0398