================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.8.1385/11181 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88804677e120 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1744 [inline] ffff88804677e120 (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:5751 lock_sock_nested+0x44/0x100 net/core/sock.c:3259 lock_sock include/net/sock.h:1744 [inline] x25_bind+0x18a/0x3b0 net/x25/af_x25.c:698 __sys_bind+0x2e9/0x3e0 net/socket.c:1730 __do_sys_bind net/socket.c:1741 [inline] __se_sys_bind net/socket.c:1739 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1739 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 irq event stamp: 60488 hardirqs last enabled at (60488): [] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:406 hardirqs last disabled at (60487): [] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:383 softirqs last enabled at (59852): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last enabled at (59852): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last enabled at (59852): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 softirqs last disabled at (60415): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (60415): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last disabled at (60415): [] __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.8.1385/11181: #0: ffffffff8d11f2a0 (rcu_read_lock){....}-{1:2} , at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:313 stack backtrace: CPU: 1 PID: 11181 Comm: syz.8.1385 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4004 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4207 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4669 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xdd9/0x7e20 kernel/locking/lockdep.c:5088 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5751 lock_sock_nested+0x44/0x100 net/core/sock.c:3259 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:5559 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5584 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7109 napi_poll net/core/dev.c:7176 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7266 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:finish_lock_switch+0x12f/0x290 kernel/sched/core.c:4804 Code: 83 c7 18 be ff ff ff ff e8 2e 14 77 08 85 c0 74 46 4d 85 ff 75 62 e9 06 01 00 00 48 89 df e8 c8 87 80 08 e8 53 04 2b 00 fb 5b <41> 5c 41 5d 41 5e 41 5f 5d c3 48 89 df e8 2f 0e fe ff 43 80 3c 2c RSP: 0018:ffffc9000469f2d8 EFLAGS: 00000286 RAX: 52f7522351a62700 RBX: ffff88813fe28000 RCX: 52f7522351a62700 RDX: dffffc0000000000 RSI: ffffffff8a2b3160 RDI: ffffffff8a7a6b80 RBP: 1ffff110171e7613 R08: ffff8880b8e3a343 R09: 1ffff110171c7468 R10: dffffc0000000000 R11: ffffed10171c7469 R12: ffff8880b8f3b088 R13: dffffc0000000000 R14: ffff8880b8f3ae08 R15: 0000000000000000 finish_task_switch+0x12f/0x650 kernel/sched/core.c:4921 context_switch kernel/sched/core.c:5052 [inline] __schedule+0x11cb/0x4350 kernel/sched/core.c:6395 schedule+0x11b/0x1e0 kernel/sched/core.c:6478 schedule_timeout+0xbd/0x2d0 kernel/time/timer.c:2117 unix_wait_for_peer+0x1f2/0x2e0 net/unix/af_unix.c:1315 unix_dgram_sendmsg+0x115c/0x19c0 net/unix/af_unix.c:1910 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500 __sys_sendmmsg+0x2ba/0x500 net/socket.c:2586 __do_sys_sendmmsg net/socket.c:2615 [inline] __se_sys_sendmmsg net/socket.c:2612 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2612 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:0x7fa7a3ee6a99 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:00007fa7a2133028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fa7a4172fa0 RCX: 00007fa7a3ee6a99 RDX: 0000000000000651 RSI: 0000200000005640 RDI: 0000000000000005 RBP: 00007fa7a3f7618b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa7a4173038 R14: 00007fa7a4172fa0 R15: 00007ffeb4daf2e8 BUG: sleeping function called from invalid context at net/core/sock.c:3261 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 11181, name: syz.8.1385 INFO: lockdep is turned off. Preemption disabled at: [] schedule+0x114/0x1e0 kernel/sched/core.c:6477 CPU: 1 PID: 11181 Comm: syz.8.1385 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:3261 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:5559 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5584 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7109 napi_poll net/core/dev.c:7176 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7266 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:finish_lock_switch+0x12f/0x290 kernel/sched/core.c:4804 Code: 83 c7 18 be ff ff ff ff e8 2e 14 77 08 85 c0 74 46 4d 85 ff 75 62 e9 06 01 00 00 48 89 df e8 c8 87 80 08 e8 53 04 2b 00 fb 5b <41> 5c 41 5d 41 5e 41 5f 5d c3 48 89 df e8 2f 0e fe ff 43 80 3c 2c RSP: 0018:ffffc9000469f2d8 EFLAGS: 00000286 RAX: 52f7522351a62700 RBX: ffff88813fe28000 RCX: 52f7522351a62700 RDX: dffffc0000000000 RSI: ffffffff8a2b3160 RDI: ffffffff8a7a6b80 RBP: 1ffff110171e7613 R08: ffff8880b8e3a343 R09: 1ffff110171c7468 R10: dffffc0000000000 R11: ffffed10171c7469 R12: ffff8880b8f3b088 R13: dffffc0000000000 R14: ffff8880b8f3ae08 R15: 0000000000000000 finish_task_switch+0x12f/0x650 kernel/sched/core.c:4921 context_switch kernel/sched/core.c:5052 [inline] __schedule+0x11cb/0x4350 kernel/sched/core.c:6395 schedule+0x11b/0x1e0 kernel/sched/core.c:6478 schedule_timeout+0xbd/0x2d0 kernel/time/timer.c:2117 unix_wait_for_peer+0x1f2/0x2e0 net/unix/af_unix.c:1315 unix_dgram_sendmsg+0x115c/0x19c0 net/unix/af_unix.c:1910 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500 __sys_sendmmsg+0x2ba/0x500 net/socket.c:2586 __do_sys_sendmmsg net/socket.c:2615 [inline] __se_sys_sendmmsg net/socket.c:2612 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2612 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:0x7fa7a3ee6a99 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:00007fa7a2133028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fa7a4172fa0 RCX: 00007fa7a3ee6a99 RDX: 0000000000000651 RSI: 0000200000005640 RDI: 0000000000000005 RBP: 00007fa7a3f7618b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa7a4173038 R14: 00007fa7a4172fa0 R15: 00007ffeb4daf2e8 wireguard: wg2: Handshake for peer 17 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 8) wireguard: wg1: Handshake for peer 64 (127.0.0.1:20003) did not complete after 5 seconds, retrying (try 4) nf_conntrack: new packet for ffff888029b83380 nf_conntrack: Confirming conntrack ffff888029b83380 wireguard: wg0: Handshake for peer 13 ([::1]:20002/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg1: Handshake for peer 4 (127.0.0.1:20003) did not complete after 5 seconds, retrying (try 16) wireguard: wg2: Handshake for peer 90 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 6) wireguard: wg2: Handshake for peer 5 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 10) wireguard: wg0: Handshake for peer 86 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 5) wireguard: wg0: Handshake for peer 2 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg1: Handshake for peer 81 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 20) wireguard: wg2: Handshake for peer 89 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 9) wireguard: wg1: Handshake for peer 15 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 14) wireguard: wg0: Handshake for peer 62 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg0: Handshake for peer 14 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg2: Handshake for peer 6 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 12) wireguard: wg1: Handshake for peer 3 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 14) nf_nat: Already setup manip DST for ct ffff888029b83380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888029b83380 (status bits 0x188) virtqueue callback for ffff888022590600 (ffffffff850d8c40) sd 0:0:1:0: cmd ffff888024bc9928 response 0 status 0x0 sense_len 0 No more buffers in queue wireguard: wg2: Handshake for peer 83 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 9) wireguard: wg1: Handshake for peer 63 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 3) wireguard: wg0: Handshake for peer 85 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 2) wireguard: wg1: Handshake for peer 16 (127.0.0.1:20003) did not complete after 5 seconds, retrying (try 10) wireguard: wg2: Handshake for peer 66 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 20) wireguard: wg0: Handshake for peer 1 ([::1]:20002/0%0) did not complete after 5 seconds, retrying (try 2) virtqueue callback for ffff888022590600 (ffffffff850d8c40) sd 0:0:1:0: cmd ffff8880225d9128 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff888022590600 (ffffffff850d8c40) sd 0:0:1:0: cmd ffff888024bc2528 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff888147c9f100 (ffffffff85505610) Sent skb ffff888061b00780 No more buffers in queue virtqueue callback for ffff888147c9f100 (ffffffff85505610) Sent skb ffff888075c02b40 No more buffers in queue wireguard: wg1: Handshake for peer 88 (127.0.0.1:20003) did not complete after 5 seconds, retrying (try 8) wireguard: wg0: Handshake for peer 61 ([::1]:20002/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg2: Handshake for peer 18 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 8) wireguard: wg2: Handshake for peer 84 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 7) wireguard: wg0: Sending keepalive packet to peer 85 (127.0.0.1:20002) wireguard: wg0: Sending keepalive packet to peer 91 ([::1]:20002/0%0) wireguard: wg1: Receiving keepalive packet from peer 93 ([::1]:20001/0%0) Dropped {multi|broad}cast of type=[86dd] Dropped {multi|broad}cast of type=[86dd] wireguard: wg1: Handshake for peer 81 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg2: Handshake for peer 83 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 10) wireguard: wg1: Handshake for peer 4 (127.0.0.1:20003) did not complete after 5 seconds, retrying (try 17) wireguard: wg0: Handshake for peer 86 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 6) wireguard: wg1: Handshake for peer 3 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 15) wireguard: wg2: Handshake for peer 6 (127.0.0.1:20002) did not complete after 5 seconds, retrying (try 13) wireguard: wg0: Handshake for peer 14 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg0: Handshake for peer 62 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg1: Handshake for peer 15 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 2) wireguard: wg2: Handshake for peer 89 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 10) wireguard: wg0: Handshake for peer 79 ([::1]:20002/0%0) did not complete after 5 seconds, retrying (try 2) ---------------- Code disassembly (best guess): 0: 83 c7 18 add $0x18,%edi 3: be ff ff ff ff mov $0xffffffff,%esi 8: e8 2e 14 77 08 call 0x877143b d: 85 c0 test %eax,%eax f: 74 46 je 0x57 11: 4d 85 ff test %r15,%r15 14: 75 62 jne 0x78 16: e9 06 01 00 00 jmp 0x121 1b: 48 89 df mov %rbx,%rdi 1e: e8 c8 87 80 08 call 0x88087eb 23: e8 53 04 2b 00 call 0x2b047b 28: fb sti 29: 5b pop %rbx * 2a: 41 5c pop %r12 <-- trapping instruction 2c: 41 5d pop %r13 2e: 41 5e pop %r14 30: 41 5f pop %r15 32: 5d pop %rbp 33: c3 ret 34: 48 89 df mov %rbx,%rdi 37: e8 2f 0e fe ff call 0xfffe0e6b 3c: 43 rex.XB 3d: 80 .byte 0x80 3e: 3c 2c cmp $0x2c,%al