================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.7.1015/12844 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88802c384260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff88802c384260 (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: 93066 hardirqs last enabled at (93066): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (93065): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (87482): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (87482): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (87482): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 softirqs last disabled at (93001): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (93001): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (93001): [] __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.7.1015/12844: 2, last CPU#0: #0: ffff88802bf3a7f0 (&u->iolock){+.+.}-{4:4}, at: __unix_dgram_recvmsg+0x1e3/0xd70 net/unix/af_unix.c:2587 #1: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6288 stack backtrace: CPU: 0 UID: 0 PID: 12844 Comm: syz.7.1015 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:6264 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6289 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8007 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:221 Code: f7 e8 3d c6 bc f5 f7 c3 00 02 00 00 74 05 e8 50 02 e9 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 d4 df ad f5 65 48 8b 05 9c b1 ad 07 48 85 c0 74 18 5b 41 5e c3 RSP: 0018:ffffc900033ff6a8 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000286 RCX: 8000000000000001 RDX: 0000000000000006 RSI: ffffffff8e4787fc RDI: 0000000000000001 RBP: ffff88802bf3a940 R08: ffffffff907a547f R09: 1ffffffff20f4a8f R10: dffffc0000000000 R11: fffffbfff20f4a90 R12: 0000000000000000 R13: 0000000000000001 R14: ffff88802bf3a900 R15: ffff88802bf3a940 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] __wake_up_common_lock+0x195/0x1f0 kernel/sched/wait.c:128 __unix_dgram_recvmsg+0x488/0xd70 net/unix/af_unix.c:2615 sock_recvmsg_nosec+0x130/0x170 net/socket.c:1151 ____sys_recvmsg+0x3e3/0x4a0 net/socket.c:2931 ___sys_recvmsg+0x213/0x5a0 net/socket.c:2975 do_recvmmsg+0x31a/0x7f0 net/socket.c:3070 __sys_recvmmsg net/socket.c:3144 [inline] __do_sys_recvmmsg net/socket.c:3167 [inline] __se_sys_recvmmsg net/socket.c:3160 [inline] __x64_sys_recvmmsg+0x198/0x250 net/socket.c:3160 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 RIP: 0033:0x7ff816d9e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff817bf0028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007ff817026090 RCX: 00007ff816d9e0d9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007ff816e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff817026128 R14: 00007ff817026090 R15: 00007ffe42ca7708 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 12844, name: syz.7.1015 preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 12844 Comm: syz.7.1015 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:9234 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:6264 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6289 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8007 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:221 Code: f7 e8 3d c6 bc f5 f7 c3 00 02 00 00 74 05 e8 50 02 e9 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 d4 df ad f5 65 48 8b 05 9c b1 ad 07 48 85 c0 74 18 5b 41 5e c3 RSP: 0018:ffffc900033ff6a8 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000286 RCX: 8000000000000001 RDX: 0000000000000006 RSI: ffffffff8e4787fc RDI: 0000000000000001 RBP: ffff88802bf3a940 R08: ffffffff907a547f R09: 1ffffffff20f4a8f R10: dffffc0000000000 R11: fffffbfff20f4a90 R12: 0000000000000000 R13: 0000000000000001 R14: ffff88802bf3a900 R15: ffff88802bf3a940 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] __wake_up_common_lock+0x195/0x1f0 kernel/sched/wait.c:128 __unix_dgram_recvmsg+0x488/0xd70 net/unix/af_unix.c:2615 sock_recvmsg_nosec+0x130/0x170 net/socket.c:1151 ____sys_recvmsg+0x3e3/0x4a0 net/socket.c:2931 ___sys_recvmsg+0x213/0x5a0 net/socket.c:2975 do_recvmmsg+0x31a/0x7f0 net/socket.c:3070 __sys_recvmmsg net/socket.c:3144 [inline] __do_sys_recvmmsg net/socket.c:3167 [inline] __se_sys_recvmmsg net/socket.c:3160 [inline] __x64_sys_recvmmsg+0x198/0x250 net/socket.c:3160 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 RIP: 0033:0x7ff816d9e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff817bf0028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007ff817026090 RCX: 00007ff816d9e0d9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007ff816e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff817026128 R14: 00007ff817026090 R15: 00007ffe42ca7708 ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 3d c6 bc f5 f7 cmp $0xf7f5bcc6,%eax 7: c3 ret 8: 00 02 add %al,(%rdx) a: 00 00 add %al,(%rax) c: 74 05 je 0x13 e: e8 50 02 e9 f5 call 0xf5e90263 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 29 jne 0x45 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 d4 df ad f5 call 0xf5ade003 <-- trapping instruction 2f: 65 48 8b 05 9c b1 ad mov %gs:0x7adb19c(%rip),%rax # 0x7adb1d3 36: 07 37: 48 85 c0 test %rax,%rax 3a: 74 18 je 0x54 3c: 5b pop %rbx 3d: 41 5e pop %r14 3f: c3 ret