================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.5.1867/11820 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888033d42260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff888033d42260 (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_release+0xa0/0x3d0 net/x25/af_x25.c:632 __sock_release+0xa0/0x1f0 net/socket.c:735 sock_close+0x1c/0x30 net/socket.c:1526 __fput+0x418/0xa50 fs/file_table.c:512 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 233944 hardirqs last enabled at (233944): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (233943): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (208516): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (208516): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (208516): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 softirqs last disabled at (233875): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (233875): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (233875): [] __irq_exit_rcu+0xcb/0x220 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.1867/11820: 1, last CPU#0: #0: ffffffff8ed5ca20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffffffff8ed5ca20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8ed5ca20 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6269 stack backtrace: CPU: 0 UID: 0 PID: 11820 Comm: syz.5.1867 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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+0x28c/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:6245 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6270 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7768 napi_poll net/core/dev.c:7831 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7988 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 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+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:snd_rawmidi_write+0x3b7/0xbc0 sound/core/rawmidi.c:-1 Code: 18 be 04 00 00 00 e8 08 dc c9 f8 b8 01 00 00 00 87 43 18 48 8b 7c 24 18 e8 16 20 74 02 bf b8 0b 00 00 e8 3c 04 74 02 49 89 c6 <48> 8b 7c 24 50 48 8d b4 24 c0 00 00 00 e8 d7 d1 33 f8 48 8b 84 24 RSP: 0018:ffffc90004c3fa60 EFLAGS: 00000246 RAX: 0000000000000bb8 RBX: ffff888034a60000 RCX: 0000000000080000 RDX: ffffc90006899000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90004c3fc10 R08: ffffffff9079847f R09: 1ffffffff20f308f R10: dffffc0000000000 R11: fffffbfff20f3090 R12: ffff88804f578a80 R13: dffffc0000000000 R14: 0000000000000bb8 R15: ffffffff896c3f50 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/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0a4179e0d9 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:00007f0a425ca028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f0a41a25fa0 RCX: 00007f0a4179e0d9 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000005 RBP: 00007f0a41835024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0a41a26038 R14: 00007f0a41a25fa0 R15: 00007fff6bb1a768 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 11820, name: syz.5.1867 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+0xab/0x860 kernel/softirq.c:621 CPU: 0 UID: 0 PID: 11820 Comm: syz.5.1867 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9203 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:6245 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6270 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7768 napi_poll net/core/dev.c:7831 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7988 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 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+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:snd_rawmidi_write+0x3b7/0xbc0 sound/core/rawmidi.c:-1 Code: 18 be 04 00 00 00 e8 08 dc c9 f8 b8 01 00 00 00 87 43 18 48 8b 7c 24 18 e8 16 20 74 02 bf b8 0b 00 00 e8 3c 04 74 02 49 89 c6 <48> 8b 7c 24 50 48 8d b4 24 c0 00 00 00 e8 d7 d1 33 f8 48 8b 84 24 RSP: 0018:ffffc90004c3fa60 EFLAGS: 00000246 RAX: 0000000000000bb8 RBX: ffff888034a60000 RCX: 0000000000080000 RDX: ffffc90006899000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90004c3fc10 R08: ffffffff9079847f R09: 1ffffffff20f308f R10: dffffc0000000000 R11: fffffbfff20f3090 R12: ffff88804f578a80 R13: dffffc0000000000 R14: 0000000000000bb8 R15: ffffffff896c3f50 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/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0a4179e0d9 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:00007f0a425ca028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f0a41a25fa0 RCX: 00007f0a4179e0d9 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000005 RBP: 00007f0a41835024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0a41a26038 R14: 00007f0a41a25fa0 R15: 00007fff6bb1a768 ---------------- Code disassembly (best guess): 0: 18 be 04 00 00 00 sbb %bh,0x4(%rsi) 6: e8 08 dc c9 f8 call 0xf8c9dc13 b: b8 01 00 00 00 mov $0x1,%eax 10: 87 43 18 xchg %eax,0x18(%rbx) 13: 48 8b 7c 24 18 mov 0x18(%rsp),%rdi 18: e8 16 20 74 02 call 0x2742033 1d: bf b8 0b 00 00 mov $0xbb8,%edi 22: e8 3c 04 74 02 call 0x2740463 27: 49 89 c6 mov %rax,%r14 * 2a: 48 8b 7c 24 50 mov 0x50(%rsp),%rdi <-- trapping instruction 2f: 48 8d b4 24 c0 00 00 lea 0xc0(%rsp),%rsi 36: 00 37: e8 d7 d1 33 f8 call 0xf833d213 3c: 48 rex.W 3d: 8b .byte 0x8b 3e: 84 .byte 0x84 3f: 24 .byte 0x24