================================ WARNING: inconsistent lock state 6.10.0-rc1-syzkaller-00310-g98aa546af5e4 #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.0/22664 [HC0[0]:SC1[3]:HE1:SE0] takes: ffff8880b9538828 (lock#10){+.?.}-{2:2}, at: local_lock_acquire include/linux/local_lock_internal.h:29 [inline] ffff8880b9538828 (lock#10){+.?.}-{2:2}, at: __mmap_lock_do_trace_acquire_returned+0x8f/0x630 mm/mmap_lock.c:237 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_acquire_returned+0xa8/0x630 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] get_mmap_lock_carefully mm/memory.c:5715 [inline] lock_mm_and_find_vma+0x213/0x2f0 mm/memory.c:5775 do_user_addr_fault arch/x86/mm/fault.c:1361 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x1bf/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 __put_user_4+0x11/0x20 arch/x86/lib/putuser.S:86 schedule_tail+0x96/0xb0 kernel/sched/core.c:5343 ret_from_fork+0x24/0x80 arch/x86/kernel/process.c:143 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 irq event stamp: 4514 hardirqs last enabled at (4514): [] __call_rcu_common kernel/rcu/tree.c:3094 [inline] hardirqs last enabled at (4514): [] call_rcu+0x738/0xa70 kernel/rcu/tree.c:3176 hardirqs last disabled at (4513): [] __call_rcu_common kernel/rcu/tree.c:3073 [inline] hardirqs last disabled at (4513): [] call_rcu+0x1c8/0xa70 kernel/rcu/tree.c:3176 softirqs last enabled at (4376): [] bpf_prog_load+0x1881/0x20f0 kernel/bpf/syscall.c:2934 softirqs last disabled at (4481): [] __do_softirq kernel/softirq.c:588 [inline] softirqs last disabled at (4481): [] invoke_softirq kernel/softirq.c:428 [inline] softirqs last disabled at (4481): [] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(lock#10); lock(lock#10); *** DEADLOCK *** 6 locks held by syz-executor.0/22664: #0: ffffc90000a18c00 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xc0/0x650 kernel/time/timer.c:1789 #1: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #1: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #1: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: ip6_nd_hdr net/ipv6/ndisc.c:452 [inline] #1: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: ndisc_send_skb+0x572/0x1380 net/ipv6/ndisc.c:503 #2: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #2: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #2: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: ip6_finish_output2+0x712/0x1670 net/ipv6/ip6_output.c:122 #3: ffffffff8e333fc0 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #3: ffffffff8e333fc0 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:833 [inline] #3: ffffffff8e333fc0 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x2d2/0x3d30 net/core/dev.c:4318 #4: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #4: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #4: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2402 [inline] #4: ffffffff8e333f60 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x1fc/0x540 kernel/trace/bpf_trace.c:2444 #5: ffff88802b249e18 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:163 [inline] #5: ffff88802b249e18 (&mm->mmap_lock){++++}-{3:3}, at: stack_map_get_build_id_offset+0x237/0x9d0 kernel/bpf/stackmap.c:141 stack backtrace: CPU: 1 PID: 22664 Comm: syz-executor.0 Not tainted 6.10.0-rc1-syzkaller-00310-g98aa546af5e4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 valid_state+0x13a/0x1c0 kernel/locking/lockdep.c:4013 mark_lock_irq+0xbb/0xc20 kernel/locking/lockdep.c:4216 mark_lock+0x223/0x350 kernel/locking/lockdep.c:4678 __lock_acquire+0xbcd/0x1fd0 kernel/locking/lockdep.c:5091 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_acquire_returned+0xa8/0x630 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+0x9af/0x9d0 kernel/bpf/stackmap.c:141 __bpf_get_stack+0x4ad/0x5a0 kernel/bpf/stackmap.c:449 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1994 [inline] bpf_get_stack_raw_tp+0x1a3/0x240 kernel/trace/bpf_trace.c:1984 bpf_prog_e6cf5f9c69743609+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+0x2ec/0x540 kernel/trace/bpf_trace.c:2444 trace_net_dev_start_xmit include/trace/events/net.h:14 [inline] xmit_one net/core/dev.c:3577 [inline] dev_hard_start_xmit+0x5af/0x7e0 net/core/dev.c:3594 __dev_queue_xmit+0x1b0e/0x3d30 net/core/dev.c:4393 dev_queue_xmit include/linux/netdevice.h:3095 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip6_finish_output2+0xfc0/0x1670 net/ipv6/ip6_output.c:137 ip6_finish_output+0x41e/0x810 net/ipv6/ip6_output.c:222 NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xab0/0x1380 net/ipv6/ndisc.c:509 addrconf_rs_timer+0x36e/0x660 net/ipv6/addrconf.c:4039 call_timer_fn+0x18e/0x650 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers kernel/time/timer.c:2417 [inline] __run_timer_base+0x66a/0x8e0 kernel/time/timer.c:2428 run_timer_base kernel/time/timer.c:2437 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2447 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline] RIP: 0010:page_table_check_pte_clear include/linux/page_table_check.h:46 [inline] RIP: 0010:ptep_get_and_clear arch/x86/include/asm/pgtable.h:1263 [inline] RIP: 0010:vunmap_pte_range mm/vmalloc.c:356 [inline] RIP: 0010:vunmap_pmd_range mm/vmalloc.c:381 [inline] RIP: 0010:vunmap_pud_range mm/vmalloc.c:406 [inline] RIP: 0010:vunmap_p4d_range mm/vmalloc.c:426 [inline] RIP: 0010:__vunmap_range_noflush+0x407/0x570 mm/vmalloc.c:457 Code: c1 4c 39 e8 49 0f 43 c5 48 f7 d8 4c 8d ac 02 ff 0f 00 00 4c 8b 64 24 30 4c 89 ff be 08 00 00 00 e8 7e 89 0f 00 31 ed 49 87 2f 5c e8 d2 c6 a9 ff 48 89 ee 48 83 e6 9f 31 ff e8 a4 cb a9 ff 89 RSP: 0018:ffffc900090ded90 EFLAGS: 00000246 RAX: ffffffff81ec4f01 RBX: 0000000000000001 RCX: ffffffff81ec4fa2 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8880223fd1b0 RBP: 0000000000000000 R08: ffff8880223fd1b7 R09: 1ffff1100447fa36 R10: dffffc0000000000 R11: ffffed100447fa37 R12: ffffc90004837000 R13: 0000000000000000 R14: ffffc90004837000 R15: ffff8880223fd1b0 vunmap_range_noflush mm/vmalloc.c:467 [inline] free_unmap_vmap_area mm/vmalloc.c:2370 [inline] remove_vm_area+0x2af/0x300 mm/vmalloc.c:3209 vfree+0x7c/0x2e0 mm/vmalloc.c:3328 bpf_prog_calc_tag+0x663/0x900 kernel/bpf/core.c:358 resolve_pseudo_ldimm64+0xdf/0x16a0 kernel/bpf/verifier.c:18391 bpf_check+0x64f7/0x192f0 kernel/bpf/verifier.c:21586 bpf_prog_load+0x1667/0x20f0 kernel/bpf/syscall.c:2908 __sys_bpf+0x4ee/0x810 kernel/bpf/syscall.c:5687 __do_sys_bpf kernel/bpf/syscall.c:5794 [inline] __se_sys_bpf kernel/bpf/syscall.c:5792 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5792 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f40ac27cf69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f40acf8b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f40ac3b3f80 RCX: 00007f40ac27cf69 RDX: 0000000000000048 RSI: 000000002000e000 RDI: 0000000000000005 RBP: 00007f40ac2da6fe R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000004d R14: 00007f40ac3b3f80 R15: 00007ffeecf4e628 ---------------- Code disassembly (best guess): 0: c1 4c 39 e8 49 rorl $0x49,-0x18(%rcx,%rdi,1) 5: 0f 43 c5 cmovae %ebp,%eax 8: 48 f7 d8 neg %rax b: 4c 8d ac 02 ff 0f 00 lea 0xfff(%rdx,%rax,1),%r13 12: 00 13: 4c 8b 64 24 30 mov 0x30(%rsp),%r12 18: 4c 89 ff mov %r15,%rdi 1b: be 08 00 00 00 mov $0x8,%esi 20: e8 7e 89 0f 00 call 0xf89a3 25: 31 ed xor %ebp,%ebp 27: 49 87 2f xchg %rbp,(%r15) * 2a: eb 5c jmp 0x88 <-- trapping instruction 2c: e8 d2 c6 a9 ff call 0xffa9c703 31: 48 89 ee mov %rbp,%rsi 34: 48 83 e6 9f and $0xffffffffffffff9f,%rsi 38: 31 ff xor %edi,%edi 3a: e8 a4 cb a9 ff call 0xffa9cbe3 3f: 89 .byte 0x89