================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. pr/ttyS0/32 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888052232260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1717 [inline] ffff888052232260 (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:3908 lock_sock include/net/sock.h:1717 [inline] x25_bind+0x209/0x450 net/x25/af_x25.c:691 __sys_bind_socket net/socket.c:1947 [inline] __sys_bind+0x2e3/0x410 net/socket.c:1978 __do_sys_bind net/socket.c:1983 [inline] __se_sys_bind net/socket.c:1981 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1981 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: 132108 hardirqs last enabled at (132108): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (132107): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (132044): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (132044): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (132044): [] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 softirqs last disabled at (132055): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (132055): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (132055): [] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 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 pr/ttyS0/32: 2, last CPU#0: #0: ffffffff8fe33dd8 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:314 [inline] #0: ffffffff8fe33dd8 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:493 [inline] #0: ffffffff8fe33dd8 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x30/0x60 kernel/printk/printk.c:291 #1: ffffffff8ff5a320 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff8ff5a320 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8ff5a320 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6457 stack backtrace: CPU: 0 UID: 0 PID: 32 Comm: pr/ttyS0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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:3908 lock_sock include/net/sock.h:1717 [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:6433 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6458 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7966 napi_poll net/core/dev.c:8029 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8186 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_call_function_single arch/x86/kernel/smp.c:267 [inline] sysvec_call_function_single+0xa3/0xc0 arch/x86/kernel/smp.c:267 asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:681 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 4d 66 9f f5 f7 c3 00 02 00 00 74 05 e8 50 07 cc f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 64 5a 90 f5 65 48 8b 05 ac a1 ba 08 48 85 c0 74 18 5b 41 5e c3 RSP: 0000:ffffc90000a87ca8 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000206 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e6a204f RDI: 0000000000000001 RBP: ffffc90000a87e18 R08: ffffffff919d71bf R09: 1ffffffff233ae37 R10: dffffc0000000000 R11: fffffbfff233ae38 R12: 0000000000000002 R13: ffff8880206bbe80 R14: ffffffff9bfee6c0 R15: dffffc0000000000 nbcon_emit_one kernel/printk/nbcon.c:1165 [inline] nbcon_kthread_func+0x724/0x8d0 kernel/printk/nbcon.c:1271 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: sleeping function called from invalid context at net/core/sock.c:3910 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: pr/ttyS0 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: 32 Comm: pr/ttyS0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9195 lock_sock_nested+0x56/0x100 net/core/sock.c:3910 lock_sock include/net/sock.h:1717 [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:6433 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6458 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7966 napi_poll net/core/dev.c:8029 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8186 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_call_function_single arch/x86/kernel/smp.c:267 [inline] sysvec_call_function_single+0xa3/0xc0 arch/x86/kernel/smp.c:267 asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:681 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 4d 66 9f f5 f7 c3 00 02 00 00 74 05 e8 50 07 cc f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 64 5a 90 f5 65 48 8b 05 ac a1 ba 08 48 85 c0 74 18 5b 41 5e c3 RSP: 0000:ffffc90000a87ca8 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000206 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e6a204f RDI: 0000000000000001 RBP: ffffc90000a87e18 R08: ffffffff919d71bf R09: 1ffffffff233ae37 R10: dffffc0000000000 R11: fffffbfff233ae38 R12: 0000000000000002 R13: ffff8880206bbe80 R14: ffffffff9bfee6c0 R15: dffffc0000000000 nbcon_emit_one kernel/printk/nbcon.c:1165 [inline] nbcon_kthread_func+0x724/0x8d0 kernel/printk/nbcon.c:1271 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 4d rex.WRB 3: 66 9f data16 lahf 5: f5 cmc 6: f7 c3 00 02 00 00 test $0x200,%ebx c: 74 05 je 0x13 e: e8 50 07 cc f5 call 0xf5cc0763 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 64 5a 90 f5 call 0xf5905a93 <-- trapping instruction 2f: 65 48 8b 05 ac a1 ba mov %gs:0x8baa1ac(%rip),%rax # 0x8baa1e3 36: 08 37: 48 85 c0 test %rax,%rax 3a: 74 18 je 0x54 3c: 5b pop %rbx 3d: 41 5e pop %r14 3f: c3 ret