================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/0:1H/1045 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888079586130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline] ffff888079586130 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1783 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 lock_sock_nested+0x44/0x100 net/core/sock.c:3504 lock_sock include/net/sock.h:1805 [inline] x25_bind+0x1aa/0x3e0 net/x25/af_x25.c:698 __sys_bind+0x2e9/0x3e0 net/socket.c:1811 __do_sys_bind net/socket.c:1822 [inline] __se_sys_bind net/socket.c:1820 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1820 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 1958272 hardirqs last enabled at (1958272): [] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:426 hardirqs last disabled at (1958271): [] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:403 softirqs last enabled at (1956186): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last enabled at (1956186): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last enabled at (1956186): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 softirqs last disabled at (1958189): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last disabled at (1958189): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last disabled at (1958189): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_X25); lock(sk_lock-AF_X25); *** DEADLOCK *** 3 locks held by kworker/0:1H/1045: #0: ffff888018470d38 ((wq_completion)events_highpri){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267 #1: ffffc90004dffd00 ((work_completion)(&vmidi->output_work)){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267 #2: ffffffff8d92d8a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #2: ffffffff8d92d8a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #2: ffffffff8d92d8a0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_core+0x30/0x230 net/core/dev.c:5643 stack backtrace: CPU: 0 PID: 1045 Comm: kworker/0:1H Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Workqueue: events_highpri snd_vmidi_output_work Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4041 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4244 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xdf3/0x7ea0 kernel/locking/lockdep.c:5125 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 lock_sock_nested+0x44/0x100 net/core/sock.c:3504 lock_sock include/net/sock.h:1805 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1783 x25_lapb_receive_frame+0x1a3/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5619 [inline] netif_receive_skb_core+0x166/0x230 net/core/dev.c:5644 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6628 napi_poll net/core/dev.c:6695 [inline] net_rx_action+0x622/0xbc0 net/core/dev.c:6809 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xbc/0x120 kernel/locking/spinlock.c:194 Code: c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 41 c6 04 07 f8 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 ff c7 1a f7 65 8b 05 c0 77 c4 75 85 c0 74 3c 48 c7 04 24 0e 36 RSP: 0018:ffffc90004dffa60 EFLAGS: 00000206 RAX: dffffc0000000004 RBX: 0000000000000a02 RCX: cb03a80a9df8b700 RDX: dffffc0000000000 RSI: ffffffff8a8c19a0 RDI: 0000000000000001 RBP: ffffc90004dffaf0 R08: ffffffff91934347 R09: 1ffffffff2326868 R10: dffffc0000000000 R11: fffffbfff2326869 R12: dffffc0000000000 R13: ffff8880294924a0 R14: ffff8880294924a0 R15: 1ffff920009bff4c spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] snd_midi_event_encode_byte+0x7e1/0xcc0 sound/core/seq/seq_midi_event.c:239 snd_vmidi_output_work+0x1e0/0x3e0 sound/core/seq/seq_virmidi.c:153 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: sleeping function called from invalid context at net/core/sock.c:3506 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1045, name: kworker/0:1H preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 1045 Comm: kworker/0:1H Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Workqueue: events_highpri snd_vmidi_output_work Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 __might_resched+0x489/0x5f0 kernel/sched/core.c:9970 lock_sock_nested+0x59/0x100 net/core/sock.c:3506 lock_sock include/net/sock.h:1805 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1783 x25_lapb_receive_frame+0x1a3/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5619 [inline] netif_receive_skb_core+0x166/0x230 net/core/dev.c:5644 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6628 napi_poll net/core/dev.c:6695 [inline] net_rx_action+0x622/0xbc0 net/core/dev.c:6809 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xbc/0x120 kernel/locking/spinlock.c:194 Code: c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 41 c6 04 07 f8 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 ff c7 1a f7 65 8b 05 c0 77 c4 75 85 c0 74 3c 48 c7 04 24 0e 36 RSP: 0018:ffffc90004dffa60 EFLAGS: 00000206 RAX: dffffc0000000004 RBX: 0000000000000a02 RCX: cb03a80a9df8b700 RDX: dffffc0000000000 RSI: ffffffff8a8c19a0 RDI: 0000000000000001 RBP: ffffc90004dffaf0 R08: ffffffff91934347 R09: 1ffffffff2326868 R10: dffffc0000000000 R11: fffffbfff2326869 R12: dffffc0000000000 R13: ffff8880294924a0 R14: ffff8880294924a0 R15: 1ffff920009bff4c spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] snd_midi_event_encode_byte+0x7e1/0xcc0 sound/core/seq/seq_midi_event.c:239 snd_vmidi_output_work+0x1e0/0x3e0 sound/core/seq/seq_virmidi.c:153 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: c7 44 24 20 00 00 00 movl $0x0,0x20(%rsp) 7: 00 8: 9c pushf 9: 8f 44 24 20 pop 0x20(%rsp) d: f7 44 24 20 00 02 00 testl $0x200,0x20(%rsp) 14: 00 15: 41 c6 04 07 f8 movb $0xf8,(%r15,%rax,1) 1a: 75 4b jne 0x67 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 ff c7 1a f7 call 0xf71ac82e <-- trapping instruction 2f: 65 8b 05 c0 77 c4 75 mov %gs:0x75c477c0(%rip),%eax # 0x75c477f6 36: 85 c0 test %eax,%eax 38: 74 3c je 0x76 3a: 48 rex.W 3b: c7 .byte 0xc7 3c: 04 24 add $0x24,%al 3e: 0e (bad) 3f: 36 ss