================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.5.1926/17911 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888036d42260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff888036d42260 (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: 1635056 hardirqs last enabled at (1635056): [] __local_bh_enable_ip+0xa5/0x120 kernel/softirq.c:478 hardirqs last disabled at (1635055): [] __local_bh_enable_ip+0xce/0x120 kernel/softirq.c:455 softirqs last enabled at (1625864): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (1625864): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (1625864): [] __irq_exit_rcu+0x194/0x210 kernel/softirq.c:767 softirqs last disabled at (1634921): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (1634921): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (1634921): [] __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.1926/17911: 1, last CPU#0: #0: ffffffff8edec060 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffffffff8edec060 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: 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: 17911 Comm: syz.5.1926 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/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:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:206 Code: 66 03 60 00 48 89 df 5b e9 ed b7 65 00 be 03 00 00 00 5b e9 d2 fd 1b 03 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 65 48 8b 05 4c ab 7f 12 48 8b 34 24 65 48 8b 15 30 ab RSP: 0018:ffffc90004207a28 EFLAGS: 00000246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc90017c29000 RDX: 0000000000080000 RSI: ffffffff81d0c96b RDI: ffff888013501f40 RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000008 R13: ffff88801c056c00 R14: ffff8880330e0f00 R15: 0000000000001000 queue_work_on+0x141/0x1e0 kernel/workqueue.c:2506 queue_work include/linux/workqueue.h:700 [inline] snd_virmidi_output_trigger+0xf6/0x140 sound/core/seq/seq_virmidi.c:179 snd_rawmidi_output_trigger sound/core/rawmidi.c:213 [inline] snd_rawmidi_output_trigger sound/core/rawmidi.c:209 [inline] snd_rawmidi_kernel_write1+0x51f/0x7c0 sound/core/rawmidi.c:1576 snd_rawmidi_write+0x2dc/0xc60 sound/core/rawmidi.c:1629 do_loop_readv_writev fs/read_write.c:851 [inline] do_loop_readv_writev fs/read_write.c:836 [inline] vfs_writev+0x5ed/0xdd0 fs/read_write.c:1060 do_writev+0x28a/0x340 fs/read_write.c:1104 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:0x7fcfd639e0d9 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:00007fcfd71a9028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fcfd6625fa0 RCX: 00007fcfd639e0d9 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000004 RBP: 00007fcfd6435024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcfd6626038 R14: 00007fcfd6625fa0 R15: 00007ffc50c2eac8 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 17911, name: syz.5.1926 preempt_count: 100, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:486 [inline] [] handle_softirqs+0xf3/0x9d0 kernel/softirq.c:621 CPU: 0 UID: 0 PID: 17911 Comm: syz.5.1926 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/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:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:206 Code: 66 03 60 00 48 89 df 5b e9 ed b7 65 00 be 03 00 00 00 5b e9 d2 fd 1b 03 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 65 48 8b 05 4c ab 7f 12 48 8b 34 24 65 48 8b 15 30 ab RSP: 0018:ffffc90004207a28 EFLAGS: 00000246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc90017c29000 RDX: 0000000000080000 RSI: ffffffff81d0c96b RDI: ffff888013501f40 RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000008 R13: ffff88801c056c00 R14: ffff8880330e0f00 R15: 0000000000001000 queue_work_on+0x141/0x1e0 kernel/workqueue.c:2506 queue_work include/linux/workqueue.h:700 [inline] snd_virmidi_output_trigger+0xf6/0x140 sound/core/seq/seq_virmidi.c:179 snd_rawmidi_output_trigger sound/core/rawmidi.c:213 [inline] snd_rawmidi_output_trigger sound/core/rawmidi.c:209 [inline] snd_rawmidi_kernel_write1+0x51f/0x7c0 sound/core/rawmidi.c:1576 snd_rawmidi_write+0x2dc/0xc60 sound/core/rawmidi.c:1629 do_loop_readv_writev fs/read_write.c:851 [inline] do_loop_readv_writev fs/read_write.c:836 [inline] vfs_writev+0x5ed/0xdd0 fs/read_write.c:1060 do_writev+0x28a/0x340 fs/read_write.c:1104 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:0x7fcfd639e0d9 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:00007fcfd71a9028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fcfd6625fa0 RCX: 00007fcfd639e0d9 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000004 RBP: 00007fcfd6435024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcfd6626038 R14: 00007fcfd6625fa0 R15: 00007ffc50c2eac8 ---------------- Code disassembly (best guess): 0: 66 03 60 00 add 0x0(%rax),%sp 4: 48 89 df mov %rbx,%rdi 7: 5b pop %rbx 8: e9 ed b7 65 00 jmp 0x65b7fa d: be 03 00 00 00 mov $0x3,%esi 12: 5b pop %rbx 13: e9 d2 fd 1b 03 jmp 0x31bfdea 18: 66 90 xchg %ax,%ax 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 90 nop 28: 90 nop 29: 90 nop * 2a: f3 0f 1e fa endbr64 <-- trapping instruction 2e: 65 48 8b 05 4c ab 7f mov %gs:0x127fab4c(%rip),%rax # 0x127fab82 35: 12 36: 48 8b 34 24 mov (%rsp),%rsi 3a: 65 gs 3b: 48 rex.W 3c: 8b .byte 0x8b 3d: 15 .byte 0x15 3e: 30 .byte 0x30 3f: ab stos %eax,%es:(%rdi)