================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.245/6750 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807e15e260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff88807e15e260 (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/0x510 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 38976 hardirqs last enabled at (38976): [] __local_bh_enable_ip+0xd0/0x130 kernel/softirq.c:455 hardirqs last disabled at (38975): [] __local_bh_enable_ip+0x71/0x130 kernel/softirq.c:432 softirqs last enabled at (38806): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last enabled at (38806): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last enabled at (38806): [] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 softirqs last disabled at (38841): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last disabled at (38841): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last disabled at (38841): [] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 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.3.245/6750: 1, on CPU#0: #0: ffffffff8eb5c6a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffffffff8eb5c6a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8eb5c6a0 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6265 stack backtrace: CPU: 0 UID: 0 PID: 6750 Comm: syz.3.245 Not tainted syzkaller #0 PREEMPT(full) 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+0x28b/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:6241 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6266 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7764 napi_poll net/core/dev.c:7827 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7984 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 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:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:198 Code: f7 e8 3d a8 c5 f5 f7 c3 00 02 00 00 74 05 e8 c0 cf f1 f5 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 04 ce b6 f5 65 8b 05 0d 52 93 07 85 c0 74 18 5b 41 5e c3 cc cc RSP: 0018:ffffc9000f417908 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000296 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8e253559 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff9058fb7f R09: 1ffffffff20b1f6f R10: dffffc0000000000 R11: fffffbfff20b1f70 R12: ffffffff81b42ee0 R13: ffffc9000f417980 R14: ffffffff9aa77400 R15: ffffc9000f417980 timer_init_key_on_stack+0x3c/0x110 kernel/time/timer.c:816 schedule_timeout+0x140/0x2c0 kernel/time/sleep_timeout.c:96 snd_rawmidi_write+0x3b4/0xbc0 sound/core/rawmidi.c:1616 do_loop_readv_writev fs/read_write.c:851 [inline] vfs_writev+0x4bb/0x990 fs/read_write.c:1060 do_writev+0x154/0x2e0 fs/read_write.c:1104 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x510 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff80059e0d9 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:00007ff80152d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007ff800825fa0 RCX: 00007ff80059e0d9 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000005 RBP: 00007ff800635024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff800826038 R14: 00007ff800825fa0 R15: 00007ffec3ed5ba8 ------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] snd_rawmidi_write+0x360/0xbc0 sound/core/rawmidi.c:1614 WARNING: kernel/sched/core.c:9122 at __might_sleep+0x92/0xf0 kernel/sched/core.c:9118, CPU#0: syz.3.245/6750 Modules linked in: CPU: 0 UID: 0 PID: 6750 Comm: syz.3.245 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:__might_sleep+0xac/0xf0 kernel/sched/core.c:9118 Code: 00 00 48 89 3c 24 41 89 f5 4c 8d 35 ae 9c c5 0e 43 80 3c 3c 00 74 08 48 89 df e8 ef ec 9f 00 48 8b 0b 4c 89 f7 89 ee 48 89 ca <67> 48 0f b9 3a 44 89 ee 48 8b 3c 24 eb b5 44 89 f1 80 e1 07 80 c1 RSP: 0018:ffffc90000007b50 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888030d3b7e8 RCX: ffffffff896a4820 RDX: ffffffff896a4820 RSI: 0000000000000001 RDI: ffffffff905bf870 RBP: 0000000000000001 R08: ffffc90000007727 R09: 1ffff92000000ee4 R10: dffffc0000000000 R11: fffff52000000ee5 R12: 1ffff110061a76fd R13: 0000000000000ef5 R14: ffffffff905bf870 R15: dffffc0000000000 FS: 00007ff80152d6c0(0000) GS:ffff888124f0c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 000000005ae6a000 CR4: 00000000003526f0 Call Trace: 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:6241 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6266 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7764 napi_poll net/core/dev.c:7827 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7984 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 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:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:198 Code: f7 e8 3d a8 c5 f5 f7 c3 00 02 00 00 74 05 e8 c0 cf f1 f5 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 04 ce b6 f5 65 8b 05 0d 52 93 07 85 c0 74 18 5b 41 5e c3 cc cc RSP: 0018:ffffc9000f417908 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000296 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8e253559 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff9058fb7f R09: 1ffffffff20b1f6f R10: dffffc0000000000 R11: fffffbfff20b1f70 R12: ffffffff81b42ee0 R13: ffffc9000f417980 R14: ffffffff9aa77400 R15: ffffc9000f417980 timer_init_key_on_stack+0x3c/0x110 kernel/time/timer.c:816 schedule_timeout+0x140/0x2c0 kernel/time/sleep_timeout.c:96 snd_rawmidi_write+0x3b4/0xbc0 sound/core/rawmidi.c:1616 do_loop_readv_writev fs/read_write.c:851 [inline] vfs_writev+0x4bb/0x990 fs/read_write.c:1060 do_writev+0x154/0x2e0 fs/read_write.c:1104 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x510 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff80059e0d9 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:00007ff80152d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007ff800825fa0 RCX: 00007ff80059e0d9 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000005 RBP: 00007ff800635024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff800826038 R14: 00007ff800825fa0 R15: 00007ffec3ed5ba8 ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 3d a8 c5 f5 f7 cmp $0xf7f5c5a8,%eax 7: c3 ret 8: 00 02 add %al,(%rdx) a: 00 00 add %al,(%rax) c: 74 05 je 0x13 e: e8 c0 cf f1 f5 call 0xf5f1cfd3 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 27 jne 0x43 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 04 ce b6 f5 call 0xf5b6ce33 <-- trapping instruction 2f: 65 8b 05 0d 52 93 07 mov %gs:0x793520d(%rip),%eax # 0x7935243 36: 85 c0 test %eax,%eax 38: 74 18 je 0x52 3a: 5b pop %rbx 3b: 41 5e pop %r14 3d: c3 ret 3e: cc int3 3f: cc int3