================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.0.2669/16295 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807ab1c260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1717 [inline] ffff88807ab1c260 (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:3906 lock_sock include/net/sock.h:1717 [inline] x25_ioctl+0x9ba/0xff0 net/x25/af_x25.c:1447 sock_do_ioctl+0x101/0x320 net/socket.c:1328 sock_ioctl+0x57a/0x7e0 net/socket.c:1449 vfs_ioctl fs/ioctl.c:52 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 15368 hardirqs last enabled at (15368): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (15367): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (15258): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (15258): [] fpregs_lock arch/x86/include/asm/fpu/api.h:69 [inline] softirqs last enabled at (15258): [] fpu__clear_user_states+0x7e/0x400 arch/x86/kernel/fpu/core.c:853 softirqs last disabled at (15267): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (15267): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (15267): [] __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 syz.0.2669/16295: 1, on CPU#1: #0: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6471 stack backtrace: CPU: 1 UID: 0 PID: 16295 Comm: syz.0.2669 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:3906 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:6447 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6472 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7997 napi_poll net/core/dev.c:8060 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8217 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_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 8d a2 9b f5 f7 c3 00 02 00 00 74 05 e8 80 41 c8 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 54 94 8c f5 65 48 8b 05 bc 50 d8 08 48 85 c0 74 18 5b 41 5e e9 RSP: 0000:ffffc90005acfd90 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000246 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e6a7200 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff91be00bf R09: 1ffffffff237c017 R10: dffffc0000000000 R11: fffffbfff237c018 R12: dffffc0000000000 R13: ffff88802bc9c818 R14: ffff8880207065c0 R15: ffff888020706798 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] force_sig_info_to_task+0x38a/0x4b0 kernel/signal.c:1359 force_sig_fault_to_task kernel/signal.c:1743 [inline] force_sig_fault+0xf0/0x150 kernel/signal.c:1748 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f809f269347 Code: 48 85 c0 74 1b 48 83 f8 01 0f 85 bf 03 00 00 0f b7 44 24 10 66 c1 c0 08 0f b7 c0 48 89 44 24 10 48 8b 44 24 18 0f b7 74 24 10 <66> 89 30 e9 18 ff ff ff 48 83 7c 24 08 17 0f 85 20 03 00 00 64 f0 RSP: 002b:00007ffe8f32e360 EFLAGS: 00010247 RAX: 000020000000018c RBX: 0000000000000102 RCX: 0000000000000001 RDX: 04fb0df441bab7be RSI: 0000000000000081 RDI: 00005555675243d8 RBP: 00007ffe8f32e480 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008100 R11: 0000000000000002 R12: 00007ffe8f32e4c0 R13: 00007f809f62627c R14: 0000000000053967 R15: 00007f809f626270 BUG: sleeping function called from invalid context at net/core/sock.c:3908 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 16295, name: syz.0.2669 preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 16295 Comm: syz.0.2669 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9202 lock_sock_nested+0x56/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:6447 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6472 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7997 napi_poll net/core/dev.c:8060 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8217 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_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 8d a2 9b f5 f7 c3 00 02 00 00 74 05 e8 80 41 c8 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 54 94 8c f5 65 48 8b 05 bc 50 d8 08 48 85 c0 74 18 5b 41 5e e9 RSP: 0000:ffffc90005acfd90 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000246 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e6a7200 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff91be00bf R09: 1ffffffff237c017 R10: dffffc0000000000 R11: fffffbfff237c018 R12: dffffc0000000000 R13: ffff88802bc9c818 R14: ffff8880207065c0 R15: ffff888020706798 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] force_sig_info_to_task+0x38a/0x4b0 kernel/signal.c:1359 force_sig_fault_to_task kernel/signal.c:1743 [inline] force_sig_fault+0xf0/0x150 kernel/signal.c:1748 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f809f269347 Code: 48 85 c0 74 1b 48 83 f8 01 0f 85 bf 03 00 00 0f b7 44 24 10 66 c1 c0 08 0f b7 c0 48 89 44 24 10 48 8b 44 24 18 0f b7 74 24 10 <66> 89 30 e9 18 ff ff ff 48 83 7c 24 08 17 0f 85 20 03 00 00 64 f0 RSP: 002b:00007ffe8f32e360 EFLAGS: 00010247 RAX: 000020000000018c RBX: 0000000000000102 RCX: 0000000000000001 RDX: 04fb0df441bab7be RSI: 0000000000000081 RDI: 00005555675243d8 RBP: 00007ffe8f32e480 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008100 R11: 0000000000000002 R12: 00007ffe8f32e4c0 R13: 00007f809f62627c R14: 0000000000053967 R15: 00007f809f626270 ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 8d a2 9b f5 f7 c3 lea -0x3c080a65(%rdx),%esp 8: 00 02 add %al,(%rdx) a: 00 00 add %al,(%rax) c: 74 05 je 0x13 e: e8 80 41 c8 f5 call 0xf5c84193 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 54 94 8c f5 call 0xf58c9483 <-- trapping instruction 2f: 65 48 8b 05 bc 50 d8 mov %gs:0x8d850bc(%rip),%rax # 0x8d850f3 36: 08 37: 48 85 c0 test %rax,%rax 3a: 74 18 je 0x54 3c: 5b pop %rbx 3d: 41 5e pop %r14 3f: e9 .byte 0xe9