================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.2.386/7150 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888033240260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff888033240260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 lock_sock_nested+0x41/0x100 net/core/sock.c:3837 lock_sock include/net/sock.h:1713 [inline] x25_bind+0x209/0x450 net/x25/af_x25.c:691 __sys_bind_socket net/socket.c:1944 [inline] __sys_bind+0x2e3/0x410 net/socket.c:1975 __do_sys_bind net/socket.c:1980 [inline] __se_sys_bind net/socket.c:1978 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1978 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: 998 hardirqs last enabled at (998): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (997): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (674): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (674): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (674): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758 softirqs last disabled at (745): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (745): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (745): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758 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.2.386/7150: 2, last CPU#0: #0: ffff888036b15900 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock include/linux/mmap_lock.h:586 [inline] #0: ffff888036b15900 (&mm->mmap_lock){++++}-{4:4}, at: exit_mmap+0x1a4/0x9f0 mm/mmap.c:1299 #1: ffffffff8ed5c520 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff8ed5c520 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8ed5c520 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6289 stack backtrace: CPU: 0 UID: 0 PID: 7150 Comm: syz.2.386 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28c/0x2e0 kernel/locking/lockdep.c:4086 valid_state+0xbe/0xf0 kernel/locking/lockdep.c:4100 mark_lock_irq+0x36/0x380 kernel/locking/lockdep.c:4311 mark_lock+0x117/0x190 kernel/locking/lockdep.c:4797 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x71e/0x2de0 kernel/locking/lockdep.c:5242 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 lock_sock_nested+0x41/0x100 net/core/sock.c:3837 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6265 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6290 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7798 napi_poll net/core/dev.c:7861 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8018 handle_softirqs+0x223/0x840 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:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 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:folio_batch_add include/linux/folio_batch.h:77 [inline] RIP: 0010:free_pages_and_swap_cache+0x273/0x490 mm/swap_state.c:643 Code: 24 60 bf 1f 00 00 00 44 89 fe e8 e8 37 97 ff 41 83 ff 1e 0f 87 28 01 00 00 e8 49 34 97 ff 48 8b 44 24 30 4e 8d 3c f8 4c 89 f8 <48> c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 0a 2d 09 00 4d 89 37 RSP: 0018:ffffc9000343f0a0 EFLAGS: 00000293 RAX: ffffc9000343f1a0 RBX: 0000000000000149 RCX: ffff8880217d1f40 RDX: 0000000000000000 RSI: 0000000000000013 RDI: 000000000000001f RBP: ffffc9000343f328 R08: ffffea00018b52c7 R09: 1ffffd4000316a58 R10: dffffc0000000000 R11: fffff94000316a59 R12: 0000000000000014 R13: dffffc0000000000 R14: ffffea00018b52c0 R15: ffffc9000343f1a0 __tlb_batch_free_encoded_pages mm/mmu_gather.c:138 [inline] tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu+0x6d3/0xa30 mm/mmu_gather.c:404 zap_pte_range mm/memory.c:2067 [inline] zap_pmd_range mm/memory.c:2114 [inline] zap_pud_range mm/memory.c:2142 [inline] zap_p4d_range mm/memory.c:2163 [inline] __zap_vma_range+0x418d/0x4f70 mm/memory.c:2203 unmap_vmas+0x38b/0x550 mm/memory.c:2272 exit_mmap+0x293/0x9f0 mm/mmap.c:1315 __mmput+0x118/0x420 kernel/fork.c:1192 exit_mm+0x18e/0x240 kernel/exit.c:586 do_exit+0x6a8/0x2380 kernel/exit.c:967 do_group_exit+0x22d/0x2f0 kernel/exit.c:1123 get_signal+0x1216/0x12c0 kernel/signal.c:3112 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:343 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f399199e159 Code: Unable to access opcode bytes at 0x7f399199e12f. RSP: 002b:00007f399278f0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007f3991c25fa8 RCX: 00007f399199e159 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f3991c25fac RBP: 00007f3991c25fa0 R08: 3fffffffffffffff R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3991c26038 R14: 00007ffcdcab0de0 R15: 00007ffcdcab0ec8 BUG: sleeping function called from invalid context at net/core/sock.c:3839 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7150, name: syz.2.386 preempt_count: 100, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:486 [inline] [] handle_softirqs+0xab/0x840 kernel/softirq.c:621 CPU: 0 UID: 0 PID: 7150 Comm: syz.2.386 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9197 lock_sock_nested+0x56/0x100 net/core/sock.c:3839 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6265 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6290 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7798 napi_poll net/core/dev.c:7861 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8018 handle_softirqs+0x223/0x840 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:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 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:folio_batch_add include/linux/folio_batch.h:77 [inline] RIP: 0010:free_pages_and_swap_cache+0x273/0x490 mm/swap_state.c:643 Code: 24 60 bf 1f 00 00 00 44 89 fe e8 e8 37 97 ff 41 83 ff 1e 0f 87 28 01 00 00 e8 49 34 97 ff 48 8b 44 24 30 4e 8d 3c f8 4c 89 f8 <48> c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 0a 2d 09 00 4d 89 37 RSP: 0018:ffffc9000343f0a0 EFLAGS: 00000293 RAX: ffffc9000343f1a0 RBX: 0000000000000149 RCX: ffff8880217d1f40 RDX: 0000000000000000 RSI: 0000000000000013 RDI: 000000000000001f RBP: ffffc9000343f328 R08: ffffea00018b52c7 R09: 1ffffd4000316a58 R10: dffffc0000000000 R11: fffff94000316a59 R12: 0000000000000014 R13: dffffc0000000000 R14: ffffea00018b52c0 R15: ffffc9000343f1a0 __tlb_batch_free_encoded_pages mm/mmu_gather.c:138 [inline] tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu+0x6d3/0xa30 mm/mmu_gather.c:404 zap_pte_range mm/memory.c:2067 [inline] zap_pmd_range mm/memory.c:2114 [inline] zap_pud_range mm/memory.c:2142 [inline] zap_p4d_range mm/memory.c:2163 [inline] __zap_vma_range+0x418d/0x4f70 mm/memory.c:2203 unmap_vmas+0x38b/0x550 mm/memory.c:2272 exit_mmap+0x293/0x9f0 mm/mmap.c:1315 __mmput+0x118/0x420 kernel/fork.c:1192 exit_mm+0x18e/0x240 kernel/exit.c:586 do_exit+0x6a8/0x2380 kernel/exit.c:967 do_group_exit+0x22d/0x2f0 kernel/exit.c:1123 get_signal+0x1216/0x12c0 kernel/signal.c:3112 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:343 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f399199e159 Code: Unable to access opcode bytes at 0x7f399199e12f. RSP: 002b:00007f399278f0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007f3991c25fa8 RCX: 00007f399199e159 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f3991c25fac RBP: 00007f3991c25fa0 R08: 3fffffffffffffff R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3991c26038 R14: 00007ffcdcab0de0 R15: 00007ffcdcab0ec8 ---------------- Code disassembly (best guess): 0: 24 60 and $0x60,%al 2: bf 1f 00 00 00 mov $0x1f,%edi 7: 44 89 fe mov %r15d,%esi a: e8 e8 37 97 ff call 0xff9737f7 f: 41 83 ff 1e cmp $0x1e,%r15d 13: 0f 87 28 01 00 00 ja 0x141 19: e8 49 34 97 ff call 0xff973467 1e: 48 8b 44 24 30 mov 0x30(%rsp),%rax 23: 4e 8d 3c f8 lea (%rax,%r15,8),%r15 27: 4c 89 f8 mov %r15,%rax * 2a: 48 c1 e8 03 shr $0x3,%rax <-- trapping instruction 2e: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 33: 74 08 je 0x3d 35: 4c 89 ff mov %r15,%rdi 38: e8 0a 2d 09 00 call 0x92d47 3d: 4d 89 37 mov %r14,(%r15)