================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/0:2/1100 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff0000c6ef2260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff0000c6ef2260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x114/0x2a0 net/x25/af_x25.c:1778 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x140/0x364 kernel/locking/lockdep.c:5868 lock_sock_nested+0x58/0x110 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_bind+0x22c/0x34c net/x25/af_x25.c:694 __sys_bind_socket net/socket.c:1920 [inline] __sys_bind+0x1c4/0x268 net/socket.c:1951 __do_sys_bind net/socket.c:1956 [inline] __se_sys_bind net/socket.c:1954 [inline] __arm64_sys_bind+0x84/0x9c net/socket.c:1954 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 irq event stamp: 49352 hardirqs last enabled at (49352): [] __local_bh_enable_ip+0x1ec/0x35c kernel/softirq.c:455 hardirqs last disabled at (49351): [] __local_bh_enable_ip+0x16c/0x35c kernel/softirq.c:432 softirqs last enabled at (49146): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (49146): [] ptr_ring_consume_bh include/linux/ptr_ring.h:377 [inline] softirqs last enabled at (49146): [] wg_packet_encrypt_worker+0x25c/0x1290 drivers/net/wireguard/send.c:293 softirqs last disabled at (49147): [] __do_softirq+0x14/0x20 kernel/softirq.c:656 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:2/1100: #0: ffff0000d979a540 ((wq_completion)wg-crypt-wg0){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline] #0: ffff0000d979a540 ((wq_completion)wg-crypt-wg0){+.+.}-{0:0}, at: process_scheduled_works+0x734/0x10b8 kernel/workqueue.c:3405 #1: ffff800094c67c40 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ((typeof((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker)))))((unsigned long)((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker)))) + (((__per_cpu_offset[(cpu)]))))); })->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline] #1: ffff800094c67c40 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ((typeof((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker)))))((unsigned long)((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker)))) + (((__per_cpu_offset[(cpu)]))))); })->work)){+.+.}-{0:0}, at: process_scheduled_works+0x73c/0x10b8 kernel/workqueue.c:3405 #2: ffff800088d271a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #2: ffff800088d271a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline] #2: ffff800088d271a0 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x38/0x190 net/core/dev.c:6236 stack backtrace: CPU: 0 UID: 0 PID: 1100 Comm: kworker/0:2 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/2026 Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 print_usage_bug+0x310/0x384 kernel/locking/lockdep.c:4042 valid_state kernel/locking/lockdep.c:4056 [inline] mark_lock_irq+0x4a0/0x4a8 kernel/locking/lockdep.c:-1 mark_lock+0x144/0x1a4 kernel/locking/lockdep.c:4753 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x6c0/0x2ebc kernel/locking/lockdep.c:5191 lock_acquire+0x140/0x364 kernel/locking/lockdep.c:5868 lock_sock_nested+0x58/0x110 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x114/0x2a0 net/x25/af_x25.c:1778 x25_link_terminated+0x60/0x7c net/x25/x25_link.c:257 x25_lapb_receive_frame+0x144/0xcf8 net/x25/x25_dev.c:138 __netif_receive_skb_one_core+0xc8/0x110 net/core/dev.c:6212 netif_receive_skb_core+0xd8/0x190 net/core/dev.c:6237 lapbeth_napi_poll+0x48/0xa0 drivers/net/wan/lapbether.c:100 __napi_poll+0xb4/0x328 net/core/dev.c:7735 napi_poll net/core/dev.c:7798 [inline] net_rx_action+0x5b0/0xc14 net/core/dev.c:7955 handle_softirqs+0x2ec/0xd98 kernel/softirq.c:622 __do_softirq+0x14/0x20 kernel/softirq.c:656 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:885 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:83 do_softirq+0x90/0xf8 kernel/softirq.c:523 __local_bh_enable_ip+0x240/0x35c kernel/softirq.c:450 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:196 [inline] _raw_spin_unlock_bh+0x3c/0x4c kernel/locking/spinlock.c:214 spin_unlock_bh include/linux/spinlock.h:396 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:377 [inline] wg_packet_encrypt_worker+0x25c/0x1290 drivers/net/wireguard/send.c:293 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0x788/0x10b8 kernel/workqueue.c:3405 worker_thread+0x798/0xbd0 kernel/workqueue.c:3486 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:838 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1100, name: kworker/0:2 preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:348 [inline] [] ptr_ring_consume_bh include/linux/ptr_ring.h:375 [inline] [] wg_packet_encrypt_worker+0xcc/0x1290 drivers/net/wireguard/send.c:293 CPU: 0 UID: 0 PID: 1100 Comm: kworker/0:2 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/2026 Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 __might_resched+0x354/0x4c0 kernel/sched/core.c:9197 __might_sleep+0x84/0xdc kernel/sched/core.c:9126 lock_sock_nested+0x68/0x110 net/core/sock.c:3829 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x114/0x2a0 net/x25/af_x25.c:1778 x25_link_terminated+0x60/0x7c net/x25/x25_link.c:257 x25_lapb_receive_frame+0x144/0xcf8 net/x25/x25_dev.c:138 __netif_receive_skb_one_core+0xc8/0x110 net/core/dev.c:6212 netif_receive_skb_core+0xd8/0x190 net/core/dev.c:6237 lapbeth_napi_poll+0x48/0xa0 drivers/net/wan/lapbether.c:100 __napi_poll+0xb4/0x328 net/core/dev.c:7735 napi_poll net/core/dev.c:7798 [inline] net_rx_action+0x5b0/0xc14 net/core/dev.c:7955 handle_softirqs+0x2ec/0xd98 kernel/softirq.c:622 __do_softirq+0x14/0x20 kernel/softirq.c:656 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:885 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:83 do_softirq+0x90/0xf8 kernel/softirq.c:523 __local_bh_enable_ip+0x240/0x35c kernel/softirq.c:450 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:196 [inline] _raw_spin_unlock_bh+0x3c/0x4c kernel/locking/spinlock.c:214 spin_unlock_bh include/linux/spinlock.h:396 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:377 [inline] wg_packet_encrypt_worker+0x25c/0x1290 drivers/net/wireguard/send.c:293 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0x788/0x10b8 kernel/workqueue.c:3405 worker_thread+0x798/0xbd0 kernel/workqueue.c:3486 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:838