================================ WARNING: inconsistent lock state 6.10.0-rc1-syzkaller-00293-gec9eeb89e60d #0 Not tainted -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. syz-executor.0/6433 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff88802c238ac0 (lock#13){?.+.}-{2:2}, at: local_lock_acquire include/linux/local_lock_internal.h:29 [inline] ffff88802c238ac0 (lock#13){?.+.}-{2:2}, at: __mmap_lock_do_trace_acquire_returned+0x7f/0x790 mm/mmap_lock.c:237 {HARDIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_acquire_returned+0x97/0x790 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:164 [inline] walk_mm mm/vmscan.c:3648 [inline] try_to_inc_max_seq+0xa52/0x1250 mm/vmscan.c:3888 get_nr_to_scan mm/vmscan.c:4702 [inline] try_to_shrink_lruvec+0x736/0x9b0 mm/vmscan.c:4745 shrink_one+0x3f8/0x7c0 mm/vmscan.c:4788 shrink_many mm/vmscan.c:4851 [inline] lru_gen_shrink_node+0x89f/0x1750 mm/vmscan.c:4951 shrink_node mm/vmscan.c:5910 [inline] kswapd_shrink_node mm/vmscan.c:6720 [inline] balance_pgdat+0x1105/0x1970 mm/vmscan.c:6911 kswapd+0x5ea/0xbf0 mm/vmscan.c:7180 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 irq event stamp: 13910 hardirqs last enabled at (13909): [] asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 hardirqs last disabled at (13910): [] irqentry_enter+0x54/0x60 kernel/entry/common.c:243 softirqs last enabled at (9454): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (9454): [] handle_softirqs+0x5be/0x8f0 kernel/softirq.c:582 softirqs last disabled at (9429): [] __do_softirq kernel/softirq.c:588 [inline] softirqs last disabled at (9429): [] invoke_softirq kernel/softirq.c:428 [inline] softirqs last disabled at (9429): [] __irq_exit_rcu kernel/softirq.c:637 [inline] softirqs last disabled at (9429): [] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(lock#13); lock(lock#13); *** DEADLOCK *** 2 locks held by syz-executor.0/6433: #0: ffffffff8dbb5160 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8dbb5160 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8dbb5160 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2402 [inline] #0: ffffffff8dbb5160 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x1c2/0x590 kernel/trace/bpf_trace.c:2444 #1: ffff888025f5a798 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:163 [inline] #1: ffff888025f5a798 (&mm->mmap_lock){++++}-{3:3}, at: stack_map_get_build_id_offset+0x28a/0x760 kernel/bpf/stackmap.c:141 stack backtrace: CPU: 2 PID: 6433 Comm: syz-executor.0 Not tainted 6.10.0-rc1-syzkaller-00293-gec9eeb89e60d #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_usage_bug kernel/locking/lockdep.c:3971 [inline] valid_state kernel/locking/lockdep.c:4013 [inline] mark_lock_irq kernel/locking/lockdep.c:4216 [inline] mark_lock+0x923/0xc60 kernel/locking/lockdep.c:4678 mark_usage kernel/locking/lockdep.c:4564 [inline] __lock_acquire+0x1359/0x3b30 kernel/locking/lockdep.c:5091 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_acquire_returned+0x97/0x790 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:164 [inline] stack_map_get_build_id_offset+0x602/0x760 kernel/bpf/stackmap.c:141 __bpf_get_stack+0x68a/0x710 kernel/bpf/stackmap.c:449 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1994 [inline] bpf_get_stack_raw_tp+0x124/0x160 kernel/trace/bpf_trace.c:1984 bpf_prog_ec3b2eefa702d8d3+0x42/0x46 bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline] __bpf_prog_run include/linux/filter.h:691 [inline] bpf_prog_run include/linux/filter.h:698 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2403 [inline] bpf_trace_run2+0x231/0x590 kernel/trace/bpf_trace.c:2444 trace_tlb_flush+0xf3/0x170 include/trace/events/tlb.h:38 csd_do_func kernel/smp.c:133 [inline] __flush_smp_call_function_queue+0x27a/0x8c0 kernel/smp.c:511 __sysvec_call_function_single+0x8c/0x410 arch/x86/kernel/smp.c:271 instr_sysvec_call_function_single arch/x86/kernel/smp.c:266 [inline] sysvec_call_function_single+0x43/0xb0 arch/x86/kernel/smp.c:266 asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:709 RIP: 0023:0xf72c64b9 Code: 01 00 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 90 55 31 ed 57 56 53 e8 b5 db ff ff 81 c3 49 4b 14 00 83 ec 2c 8b 70 18 8b 0a <89> 54 24 18 c7 44 24 04 01 00 00 00 83 c1 02 c7 44 24 08 00 00 00 RSP: 002b:00000000f5ea5ad0 EFLAGS: 00000282 RAX: 00000000f5ea5c10 RBX: 00000000f740aff4 RCX: 00000000f5ea5bb4 RDX: 00000000f5ea5b8c RSI: 0000000000000001 RDI: 0000000000000102 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 01 00 add %eax,(%rax) 2: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 9: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 10: 90 nop 11: 55 push %rbp 12: 31 ed xor %ebp,%ebp 14: 57 push %rdi 15: 56 push %rsi 16: 53 push %rbx 17: e8 b5 db ff ff call 0xffffdbd1 1c: 81 c3 49 4b 14 00 add $0x144b49,%ebx 22: 83 ec 2c sub $0x2c,%esp 25: 8b 70 18 mov 0x18(%rax),%esi 28: 8b 0a mov (%rdx),%ecx * 2a: 89 54 24 18 mov %edx,0x18(%rsp) <-- trapping instruction 2e: c7 44 24 04 01 00 00 movl $0x1,0x4(%rsp) 35: 00 36: 83 c1 02 add $0x2,%ecx 39: c7 .byte 0xc7 3a: 44 24 08 rex.R and $0x8,%al 3d: 00 00 add %al,(%rax)