================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.454/7188 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807cb1e260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff88807cb1e260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1778 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 lock_sock_nested+0x41/0x100 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_bind+0x209/0x450 net/x25/af_x25.c:694 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind+0x2e3/0x410 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1979 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 3056 hardirqs last enabled at (3056): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (3055): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (2864): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (2864): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (2864): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 softirqs last disabled at (2879): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (2879): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (2879): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_X25); lock(sk_lock-AF_X25); *** DEADLOCK *** locks held by syz.3.454/7188: 4, last CPU#0: #0: ffff88807f9f4378 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock include/linux/mmap_lock.h:600 [inline] #0: ffff88807f9f4378 (&mm->mmap_lock){++++}-{4:4}, at: exit_mmap+0x1a4/0x9f0 mm/mmap.c:1299 #1: ffffffff8ef5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff8ef5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8ef5ca60 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:290 #2: ffff888034b24078 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] #2: ffff888034b24078 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: pte_offset_map_lock+0x13d/0x210 mm/pgtable-generic.c:404 #3: ffffffff8ef5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #3: ffffffff8ef5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #3: ffffffff8ef5ca60 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6269 stack backtrace: CPU: 0 UID: 0 PID: 7188 Comm: syz.3.454 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28c/0x2e0 kernel/locking/lockdep.c:4058 valid_state+0xbe/0xf0 kernel/locking/lockdep.c:4072 mark_lock_irq+0x36/0x380 kernel/locking/lockdep.c:4283 mark_lock+0x117/0x190 kernel/locking/lockdep.c:4769 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x6b7/0x2e50 kernel/locking/lockdep.c:5208 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 lock_sock_nested+0x41/0x100 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6245 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6270 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7768 napi_poll net/core/dev.c:7831 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7988 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:_compound_head include/linux/page-flags.h:226 [inline] RIP: 0010:__folio_rmap_sanity_checks include/linux/rmap.h:350 [inline] RIP: 0010:__folio_remove_rmap mm/rmap.c:1790 [inline] RIP: 0010:folio_remove_rmap_ptes+0x10c/0xe40 mm/rmap.c:1906 Code: a4 ff 85 ed 49 be 00 00 00 00 00 fc ff df 0f 8e 8a 09 00 00 e8 85 dc a4 ff 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 <74> 05 e8 bd 56 13 00 49 8b 44 24 08 89 c1 83 e1 01 48 ff c9 48 09 RSP: 0018:ffffc90004d7f328 EFLAGS: 00000246 RAX: 1ffffd4000392409 RBX: ffffea0001c92040 RCX: ffff888035ac9f40 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffea0001c92048 RBP: 0000000000000001 R08: ffffea0001c92047 R09: 1ffffd4000392408 R10: dffffc0000000000 R11: fffff94000392409 R12: ffffea0001c92040 R13: 000000000000c19d R14: dffffc0000000000 R15: ffffea0001c92070 zap_present_folio_ptes mm/memory.c:1803 [inline] zap_present_ptes mm/memory.c:1861 [inline] do_zap_pte_range mm/memory.c:1963 [inline] zap_pte_range mm/memory.c:2065 [inline] zap_pmd_range mm/memory.c:2151 [inline] zap_pud_range mm/memory.c:2179 [inline] zap_p4d_range mm/memory.c:2200 [inline] __zap_vma_range+0x2302/0x4f80 mm/memory.c:2240 unmap_vmas+0x390/0x550 mm/memory.c:2309 exit_mmap+0x293/0x9f0 mm/mmap.c:1315 __mmput+0x118/0x420 kernel/fork.c:1193 exit_mm+0x221/0x2d0 kernel/exit.c:614 do_exit+0x6cd/0x2360 kernel/exit.c:996 do_group_exit+0x22d/0x2f0 kernel/exit.c:1151 get_signal+0x121b/0x12c0 kernel/signal.c:3039 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x10e/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff7f7f9e0d9 Code: Unable to access opcode bytes at 0x7ff7f7f9e0af. RSP: 002b:00007ff7f8dd70e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007ff7f8225fa8 RCX: 00007ff7f7f9e0d9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007ff7f8225fa8 RBP: 00007ff7f8225fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff7f8226038 R14: 00007ffe338fd520 R15: 00007ffe338fd608 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7188, name: syz.3.454 preempt_count: 101, expected: 0 RCU nest depth: 2, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 7188 Comm: syz.3.454 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9236 lock_sock_nested+0x56/0x100 net/core/sock.c:3829 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6245 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6270 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7768 napi_poll net/core/dev.c:7831 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7988 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:_compound_head include/linux/page-flags.h:226 [inline] RIP: 0010:__folio_rmap_sanity_checks include/linux/rmap.h:350 [inline] RIP: 0010:__folio_remove_rmap mm/rmap.c:1790 [inline] RIP: 0010:folio_remove_rmap_ptes+0x10c/0xe40 mm/rmap.c:1906 Code: a4 ff 85 ed 49 be 00 00 00 00 00 fc ff df 0f 8e 8a 09 00 00 e8 85 dc a4 ff 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 <74> 05 e8 bd 56 13 00 49 8b 44 24 08 89 c1 83 e1 01 48 ff c9 48 09 RSP: 0018:ffffc90004d7f328 EFLAGS: 00000246 RAX: 1ffffd4000392409 RBX: ffffea0001c92040 RCX: ffff888035ac9f40 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffea0001c92048 RBP: 0000000000000001 R08: ffffea0001c92047 R09: 1ffffd4000392408 R10: dffffc0000000000 R11: fffff94000392409 R12: ffffea0001c92040 R13: 000000000000c19d R14: dffffc0000000000 R15: ffffea0001c92070 zap_present_folio_ptes mm/memory.c:1803 [inline] zap_present_ptes mm/memory.c:1861 [inline] do_zap_pte_range mm/memory.c:1963 [inline] zap_pte_range mm/memory.c:2065 [inline] zap_pmd_range mm/memory.c:2151 [inline] zap_pud_range mm/memory.c:2179 [inline] zap_p4d_range mm/memory.c:2200 [inline] __zap_vma_range+0x2302/0x4f80 mm/memory.c:2240 unmap_vmas+0x390/0x550 mm/memory.c:2309 exit_mmap+0x293/0x9f0 mm/mmap.c:1315 __mmput+0x118/0x420 kernel/fork.c:1193 exit_mm+0x221/0x2d0 kernel/exit.c:614 do_exit+0x6cd/0x2360 kernel/exit.c:996 do_group_exit+0x22d/0x2f0 kernel/exit.c:1151 get_signal+0x121b/0x12c0 kernel/signal.c:3039 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x10e/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff7f7f9e0d9 Code: Unable to access opcode bytes at 0x7ff7f7f9e0af. RSP: 002b:00007ff7f8dd70e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007ff7f8225fa8 RCX: 00007ff7f7f9e0d9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007ff7f8225fa8 RBP: 00007ff7f8225fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff7f8226038 R14: 00007ffe338fd520 R15: 00007ffe338fd608 ---------------- Code disassembly (best guess): 0: a4 movsb %ds:(%rsi),%es:(%rdi) 1: ff 85 ed 49 be 00 incl 0xbe49ed(%rbp) 7: 00 00 add %al,(%rax) 9: 00 00 add %al,(%rax) b: fc cld c: ff lcall (bad) d: df 0f fisttps (%rdi) f: 8e 8a 09 00 00 e8 mov -0x17fffff7(%rdx),%cs 15: 85 dc test %ebx,%esp 17: a4 movsb %ds:(%rsi),%es:(%rdi) 18: ff 49 8d decl -0x73(%rcx) 1b: 7c 24 jl 0x41 1d: 08 48 89 or %cl,-0x77(%rax) 20: f8 clc 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) * 2a: 74 05 je 0x31 <-- trapping instruction 2c: e8 bd 56 13 00 call 0x1356ee 31: 49 8b 44 24 08 mov 0x8(%r12),%rax 36: 89 c1 mov %eax,%ecx 38: 83 e1 01 and $0x1,%ecx 3b: 48 ff c9 dec %rcx 3e: 48 rex.W 3f: 09 .byte 0x9