================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.5.649/8258 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807c45e260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff88807c45e260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x168/0x280 net/x25/af_x25.c:1778 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5886 [inline] lock_acquire+0x1b9/0x370 kernel/locking/lockdep.c:5843 lock_sock_nested+0x41/0xf0 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_bind+0x221/0x5c0 net/x25/af_x25.c:694 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind_socket net/socket.c:1937 [inline] __sys_bind+0x1a9/0x260 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __x64_sys_bind+0x72/0xb0 net/socket.c:1979 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 80350 hardirqs last enabled at (80350): [] __local_bh_enable_ip+0xa5/0x120 kernel/softirq.c:478 hardirqs last disabled at (80349): [] __local_bh_enable_ip+0xce/0x120 kernel/softirq.c:455 softirqs last enabled at (74698): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (74698): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (74698): [] __irq_exit_rcu+0x194/0x210 kernel/softirq.c:767 softirqs last disabled at (80223): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (80223): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (80223): [] __irq_exit_rcu+0x194/0x210 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.5.649/8258: 2, last CPU#0: #0: ffff88801370d270 (&u->iolock){+.+.}-{4:4}, at: __unix_dgram_recvmsg+0x255/0xc30 net/unix/af_unix.c:2587 #1: ffffffff8edec060 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff8edec060 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8edec060 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x25/0x1a0 net/core/dev.c:6288 stack backtrace: CPU: 0 UID: 0 PID: 8258 Comm: syz.5.649 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_usage_bug.part.0+0x258/0x340 kernel/locking/lockdep.c:4058 print_usage_bug kernel/locking/lockdep.c:4026 [inline] valid_state kernel/locking/lockdep.c:4072 [inline] mark_lock_irq kernel/locking/lockdep.c:4283 [inline] mark_lock+0x956/0x1020 kernel/locking/lockdep.c:4769 mark_usage kernel/locking/lockdep.c:4658 [inline] __lock_acquire+0x6f6/0x1ec0 kernel/locking/lockdep.c:5207 lock_acquire kernel/locking/lockdep.c:5886 [inline] lock_acquire+0x1b9/0x370 kernel/locking/lockdep.c:5843 lock_sock_nested+0x41/0xf0 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x168/0x280 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x4b1/0x1000 net/x25/x25_dev.c:138 __netif_receive_skb_one_core+0x1b2/0x1e0 net/core/dev.c:6264 netif_receive_skb_core+0x5a/0x1a0 net/core/dev.c:6289 lapbeth_napi_poll+0x42/0xc0 drivers/net/wan/lapbether.c:100 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:8007 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x194/0x210 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+0xa3/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+0x31/0x80 kernel/locking/spinlock.c:221 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 c6 e6 17 f6 48 89 df e8 de 3c 18 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 d5 46 07 f6 65 48 83 3d 64 05 bc 08 00 74 16 5b RSP: 0018:ffffc9000bba7778 EFLAGS: 00000246 RAX: 0000000000000002 RBX: ffff88801370cd80 RCX: 0000000000000040 RDX: 0000000000000001 RSI: ffffffff8e3e7fe9 RDI: ffffffff8c61e280 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888077fb7280 R13: 0000000000000246 R14: ffff88801370cd68 R15: ffffc9000bba78f8 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] __skb_try_recv_datagram+0x16a/0x500 net/core/datagram.c:267 __unix_dgram_recvmsg+0x1bc/0xc30 net/unix/af_unix.c:2590 unix_dgram_recvmsg+0xcd/0x100 net/unix/af_unix.c:2689 sock_recvmsg_nosec net/socket.c:1151 [inline] ____sys_recvmsg+0x5eb/0x670 net/socket.c:2931 ___sys_recvmsg+0x16a/0x1a0 net/socket.c:2975 do_recvmmsg+0x2f3/0x740 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+0x22a/0x280 net/socket.c:3160 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3a2bb9e0d9 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:00007f3a2cad7028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f3a2be26090 RCX: 00007f3a2bb9e0d9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f3a2bc35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3a2be26128 R14: 00007f3a2be26090 R15: 00007ffdefc213f8 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 8258, name: syz.5.649 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: 8258 Comm: syz.5.649 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 __might_resched.cold+0x1dc/0x222 kernel/sched/core.c:9234 lock_sock_nested+0x52/0xf0 net/core/sock.c:3829 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x168/0x280 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x4b1/0x1000 net/x25/x25_dev.c:138 __netif_receive_skb_one_core+0x1b2/0x1e0 net/core/dev.c:6264 netif_receive_skb_core+0x5a/0x1a0 net/core/dev.c:6289 lapbeth_napi_poll+0x42/0xc0 drivers/net/wan/lapbether.c:100 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:8007 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x194/0x210 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+0xa3/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+0x31/0x80 kernel/locking/spinlock.c:221 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 c6 e6 17 f6 48 89 df e8 de 3c 18 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 d5 46 07 f6 65 48 83 3d 64 05 bc 08 00 74 16 5b RSP: 0018:ffffc9000bba7778 EFLAGS: 00000246 RAX: 0000000000000002 RBX: ffff88801370cd80 RCX: 0000000000000040 RDX: 0000000000000001 RSI: ffffffff8e3e7fe9 RDI: ffffffff8c61e280 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888077fb7280 R13: 0000000000000246 R14: ffff88801370cd68 R15: ffffc9000bba78f8 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] __skb_try_recv_datagram+0x16a/0x500 net/core/datagram.c:267 __unix_dgram_recvmsg+0x1bc/0xc30 net/unix/af_unix.c:2590 unix_dgram_recvmsg+0xcd/0x100 net/unix/af_unix.c:2689 sock_recvmsg_nosec net/socket.c:1151 [inline] ____sys_recvmsg+0x5eb/0x670 net/socket.c:2931 ___sys_recvmsg+0x16a/0x1a0 net/socket.c:2975 do_recvmmsg+0x2f3/0x740 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+0x22a/0x280 net/socket.c:3160 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3a2bb9e0d9 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:00007f3a2cad7028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f3a2be26090 RCX: 00007f3a2bb9e0d9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f3a2bc35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3a2be26128 R14: 00007f3a2be26090 R15: 00007ffdefc213f8 ---------------- Code disassembly (best guess): 0: f5 cmc 1: 53 push %rbx 2: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 7: 48 89 fb mov %rdi,%rbx a: 48 83 c7 18 add $0x18,%rdi e: e8 c6 e6 17 f6 call 0xf617e6d9 13: 48 89 df mov %rbx,%rdi 16: e8 de 3c 18 f6 call 0xf6183cf9 1b: f7 c5 00 02 00 00 test $0x200,%ebp 21: 75 23 jne 0x46 23: 9c pushf 24: 58 pop %rax 25: f6 c4 02 test $0x2,%ah 28: 75 37 jne 0x61 * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 d5 46 07 f6 call 0xf6074709 34: 65 48 83 3d 64 05 bc cmpq $0x0,%gs:0x8bc0564(%rip) # 0x8bc05a1 3b: 08 00 3d: 74 16 je 0x55 3f: 5b pop %rbx