================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.9.1939/13726 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88801c7c0120 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1744 [inline] (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 lock_sock_nested+0x44/0x100 net/core/sock.c:3258 lock_sock include/net/sock.h:1744 [inline] x25_release+0x9c/0x380 net/x25/af_x25.c:636 __sock_release net/socket.c:651 [inline] sock_close+0xbf/0x210 net/socket.c:1346 __fput+0x212/0x8c0 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:184 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:217 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:310 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 irq event stamp: 53342 hardirqs last enabled at (53342): [] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:406 hardirqs last disabled at (53341): [] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:383 softirqs last enabled at (48074): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last enabled at (48074): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last enabled at (48074): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 softirqs last disabled at (53211): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (53211): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last disabled at (53211): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_X25); lock(sk_lock-AF_X25); *** DEADLOCK *** 1 lock held by syz.9.1939/13726: #0: ffffffff8d11efa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:313 stack backtrace: CPU: 1 PID: 13726 Comm: syz.9.1939 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3999 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4202 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4664 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xd77/0x7d40 kernel/locking/lockdep.c:5074 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 lock_sock_nested+0x44/0x100 net/core/sock.c:3258 lock_sock include/net/sock.h:1744 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5552 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5577 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7102 napi_poll net/core/dev.c:7169 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7259 handle_softirqs+0x336/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [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 7f 5c 7f f7 65 8b 05 50 6d 2f 76 85 c0 74 3c 48 c7 04 24 0e 36 RSP: 0018:ffffc900033ff780 EFLAGS: 00000206 RAX: dffffc0000000004 RBX: 0000000000000a06 RCX: 34591d758098ef00 RDX: dffffc0000000000 RSI: ffffffff8a2b2b60 RDI: 0000000000000001 RBP: ffffc900033ff808 R08: ffffffff9733cca3 R09: 1ffffffff2e67994 R10: dffffc0000000000 R11: fffffbfff2e67995 R12: dffffc0000000000 R13: ffff8880677f1fc0 R14: ffffffff9733cca0 R15: 1ffff9200067fef0 debug_object_assert_init+0x1e8/0x2f0 lib/debugobjects.c:891 debug_timer_assert_init kernel/time/timer.c:739 [inline] debug_assert_init kernel/time/timer.c:784 [inline] __try_to_del_timer_sync+0x47/0x1f0 kernel/time/timer.c:1359 __timer_delete_sync+0x1df/0x290 kernel/time/timer.c:1521 timer_delete_sync kernel/time/timer.c:1576 [inline] del_timer_sync include/linux/timer.h:200 [inline] schedule_timeout+0x18e/0x2d0 kernel/time/timer.c:2118 snd_rawmidi_write+0x3ca/0xb90 sound/core/rawmidi.c:1542 do_loop_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x3c3/0x7a0 fs/read_write.c:857 vfs_writev fs/read_write.c:928 [inline] do_writev+0x281/0x480 fs/read_write.c:971 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa69a899b19 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:00007fa698af0028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fa69ab1ffa0 RCX: 00007fa69a899b19 RDX: 0000000000000002 RSI: 0000200000000580 RDI: 0000000000000004 RBP: 00007fa69a931b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa69ab20038 R14: 00007fa69ab1ffa0 R15: 00007ffc42f2e108 BUG: sleeping function called from invalid context at net/core/sock.c:3260 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 13726, name: syz.9.1939 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 13726 Comm: syz.9.1939 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 ___might_sleep+0x493/0x610 kernel/sched/core.c:9658 lock_sock_nested+0x5b/0x100 net/core/sock.c:3260 lock_sock include/net/sock.h:1744 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5552 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5577 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7102 napi_poll net/core/dev.c:7169 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7259 handle_softirqs+0x336/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [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 7f 5c 7f f7 65 8b 05 50 6d 2f 76 85 c0 74 3c 48 c7 04 24 0e 36 RSP: 0018:ffffc900033ff780 EFLAGS: 00000206 RAX: dffffc0000000004 RBX: 0000000000000a06 RCX: 34591d758098ef00 RDX: dffffc0000000000 RSI: ffffffff8a2b2b60 RDI: 0000000000000001 RBP: ffffc900033ff808 R08: ffffffff9733cca3 R09: 1ffffffff2e67994 R10: dffffc0000000000 R11: fffffbfff2e67995 R12: dffffc0000000000 R13: ffff8880677f1fc0 R14: ffffffff9733cca0 R15: 1ffff9200067fef0 debug_object_assert_init+0x1e8/0x2f0 lib/debugobjects.c:891 debug_timer_assert_init kernel/time/timer.c:739 [inline] debug_assert_init kernel/time/timer.c:784 [inline] __try_to_del_timer_sync+0x47/0x1f0 kernel/time/timer.c:1359 __timer_delete_sync+0x1df/0x290 kernel/time/timer.c:1521 timer_delete_sync kernel/time/timer.c:1576 [inline] del_timer_sync include/linux/timer.h:200 [inline] schedule_timeout+0x18e/0x2d0 kernel/time/timer.c:2118 snd_rawmidi_write+0x3ca/0xb90 sound/core/rawmidi.c:1542 do_loop_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x3c3/0x7a0 fs/read_write.c:857 vfs_writev fs/read_write.c:928 [inline] do_writev+0x281/0x480 fs/read_write.c:971 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa69a899b19 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:00007fa698af0028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fa69ab1ffa0 RCX: 00007fa69a899b19 RDX: 0000000000000002 RSI: 0000200000000580 RDI: 0000000000000004 RBP: 00007fa69a931b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa69ab20038 R14: 00007fa69ab1ffa0 R15: 00007ffc42f2e108 sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffffffff9750be98 is addr:fe80::2e6:a2c7:2f0c:3b6a for cmd:0 at entry:ffff888143d96400 sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffffffff9750be98 is addr:fe80::8bcb:8eb8:69f3:14a5 for cmd:0 at entry:ffff8880246a4100 wireguard: wg2: Handshake for peer 41 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 10) wireguard: wg0: Sending keepalive packet to peer 61 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 67 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 55 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 31 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 37 ([::1]:20002/0%0) wireguard: wg1: Handshake for peer 40 (127.0.0.1:20003) did not complete after 5 seconds, retrying (try 7) wireguard: wg1: Handshake for peer 39 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 3) virtqueue callback for ffff888147b9e600 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff88802457b928 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff888147b9e600 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff88801edfc928 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff888147b9e600 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff888024580d28 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff888022fb3c00 (ffffffff854eb520) Sent skb ffff888065c953c0 No more buffers in queue percpu_ref_switch_to_atomic_rcu: global 9223372036854775809 percpu 0 percpu_ref_switch_to_atomic_rcu: global 9223372036854775809 percpu 0 wireguard: wg2: Handshake for peer 42 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 13) percpu_ref_switch_to_atomic_rcu: global 9223372036854775809 percpu 0 virtqueue callback for ffff888022fb3c00 (ffffffff854eb520) Sent skb ffff888063e70780 No more buffers in queue wireguard: wg2: Receiving keepalive packet from peer 36 (127.0.0.1:20002) wireguard: wg0: Sending keepalive packet to peer 31 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 55 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 37 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 61 ([::1]:20002/0%0) wireguard: wg1: Receiving keepalive packet from peer 63 ([::1]:20001/0%0) wireguard: wg0: Sending keepalive packet to peer 67 ([::1]:20002/0%0) wireguard: wg2: Handshake for peer 41 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 11) sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffffffff9750be98 is addr:fe80::7ce2:3604:446e:e34b for cmd:0 at entry:ffff88807df68180 wireguard: wg1: Handshake for peer 39 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 4) virtqueue callback for ffff888147b9e600 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff888024581128 response 0 status 0x0 sense_len 0 No more buffers in queue wireguard: wg0: Handshake for peer 38 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 2) virtqueue callback for ffff888147b9e600 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff88801edfc928 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff888147b9e600 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff888024581528 response 0 status 0x0 sense_len 0 No more buffers in queue ---------------- 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 7f 5c 7f f7 call 0xf77f5cae <-- trapping instruction 2f: 65 8b 05 50 6d 2f 76 mov %gs:0x762f6d50(%rip),%eax # 0x762f6d86 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