================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/1:0/21 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888079c34710 ((work_completion)(&(&host->detect)->work)){+.?.}-{0:0}, at: __flush_work+0xfa/0x210 kernel/workqueue.c:3090 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 process_one_work+0x7ba/0xff0 kernel/workqueue.c:2286 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 irq event stamp: 509540 hardirqs last enabled at (509540): [] __cancel_work_timer+0x36a/0x560 kernel/workqueue.c:3174 hardirqs last disabled at (509539): [] try_to_grab_pending+0xfb/0x820 kernel/workqueue.c:1272 softirqs last enabled at (509454): [] spin_unlock_bh include/linux/spinlock.h:409 [inline] softirqs last enabled at (509454): [] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] softirqs last enabled at (509454): [] wg_packet_handshake_receive_worker+0x2ee/0xf60 drivers/net/wireguard/receive.c:219 softirqs last disabled at (509457): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (509457): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last disabled at (509457): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((work_completion)(&(&host->detect)->work)); lock((work_completion)(&(&host->detect)->work)); *** DEADLOCK *** 4 locks held by kworker/1:0/21: #0: ffff88806162d938 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: process_one_work+0x75c/0xff0 kernel/workqueue.c:-1 #1: ffffc90000db7d00 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __ptr = (unsigned long) ((typeof(*((worker))) *)((worker))); (typeof((typeof(*((worker))) *)((worker)))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0xff0 kernel/workqueue.c:2285 #2: ffff88801e701208 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0x190/0xa30 drivers/net/wireguard/noise.c:598 #3: ffffc90000dd0bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:45 [inline] #3: ffffc90000dd0bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xca/0x540 kernel/time/timer.c:1638 stack backtrace: CPU: 1 PID: 21 Comm: kworker/1:0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_receive_worker 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 __flush_work+0x116/0x210 kernel/workqueue.c:3090 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3181 mmc_free_host+0x15/0x30 drivers/mmc/core/host.c:663 call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648 expire_timers kernel/time/timer.c:1699 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:1970 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983 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:fsqr2 arch/x86/crypto/curve25519-x86_64.c:608 [inline] RIP: 0010:point_add_and_double arch/x86/crypto/curve25519-x86_64.c:805 [inline] RIP: 0010:montgomery_ladder arch/x86/crypto/curve25519-x86_64.c:887 [inline] RIP: 0010:curve25519_ever64 arch/x86/crypto/curve25519-x86_64.c:1041 [inline] RIP: 0010:curve25519_arch+0x259a/0x51e0 arch/x86/crypto/curve25519-x86_64.c:1388 Code: c7 c0 00 00 00 00 48 0f 42 c2 49 01 c0 4c 89 46 20 48 8d bc 24 a0 00 00 00 4c 8b 64 24 08 4c 89 e6 48 8b 16 c4 62 bb f6 76 08 <45> 31 ff c4 62 b3 f6 56 10 66 4d 0f 38 f6 ce c4 e2 fb f6 4e 18 66 RSP: 0018:ffffc90000db7100 EFLAGS: 00000282 RAX: 0000000000000000 RBX: 0000000000000019 RCX: 0000000000000000 RDX: acc87ba31f4a8aaa RSI: ffffc90000db7280 RDI: ffffc90000db71a0 RBP: ffffc90000db7450 R08: 1316a6a291d3ef0e R09: ddb01f6d0b3c1984 R10: 56b095cf215e8439 R11: d2b9d4b942be7bb3 R12: ffffc90000db7280 R13: 0000000000000015 R14: 823a7882fc56c526 R15: 0000000000000000 curve25519 include/crypto/curve25519.h:39 [inline] mix_dh+0xd1/0x290 drivers/net/wireguard/noise.c:411 wg_noise_handshake_consume_initiation+0x335/0xa30 drivers/net/wireguard/noise.c:608 wg_receive_handshake_packet drivers/net/wireguard/receive.c:151 [inline] wg_packet_handshake_receive_worker+0x67d/0xf60 drivers/net/wireguard/receive.c:220 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 BUG: sleeping function called from invalid context at kernel/workqueue.c:3031 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 21, name: kworker/1:0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:414 [inline] [] handle_softirqs+0xfd/0x830 kernel/softirq.c:552 CPU: 1 PID: 21 Comm: kworker/1:0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_receive_worker Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 ___might_sleep+0x493/0x610 kernel/sched/core.c:9658 start_flush_work+0x2e/0x830 kernel/workqueue.c:3031 __flush_work+0x148/0x210 kernel/workqueue.c:3093 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3181 mmc_free_host+0x15/0x30 drivers/mmc/core/host.c:663 call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648 expire_timers kernel/time/timer.c:1699 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:1970 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983 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:fsqr2 arch/x86/crypto/curve25519-x86_64.c:608 [inline] RIP: 0010:point_add_and_double arch/x86/crypto/curve25519-x86_64.c:805 [inline] RIP: 0010:montgomery_ladder arch/x86/crypto/curve25519-x86_64.c:887 [inline] RIP: 0010:curve25519_ever64 arch/x86/crypto/curve25519-x86_64.c:1041 [inline] RIP: 0010:curve25519_arch+0x259a/0x51e0 arch/x86/crypto/curve25519-x86_64.c:1388 Code: c7 c0 00 00 00 00 48 0f 42 c2 49 01 c0 4c 89 46 20 48 8d bc 24 a0 00 00 00 4c 8b 64 24 08 4c 89 e6 48 8b 16 c4 62 bb f6 76 08 <45> 31 ff c4 62 b3 f6 56 10 66 4d 0f 38 f6 ce c4 e2 fb f6 4e 18 66 RSP: 0018:ffffc90000db7100 EFLAGS: 00000282 RAX: 0000000000000000 RBX: 0000000000000019 RCX: 0000000000000000 RDX: acc87ba31f4a8aaa RSI: ffffc90000db7280 RDI: ffffc90000db71a0 RBP: ffffc90000db7450 R08: 1316a6a291d3ef0e R09: ddb01f6d0b3c1984 R10: 56b095cf215e8439 R11: d2b9d4b942be7bb3 R12: ffffc90000db7280 R13: 0000000000000015 R14: 823a7882fc56c526 R15: 0000000000000000 curve25519 include/crypto/curve25519.h:39 [inline] mix_dh+0xd1/0x290 drivers/net/wireguard/noise.c:411 wg_noise_handshake_consume_initiation+0x335/0xa30 drivers/net/wireguard/noise.c:608 wg_receive_handshake_packet drivers/net/wireguard/receive.c:151 [inline] wg_packet_handshake_receive_worker+0x67d/0xf60 drivers/net/wireguard/receive.c:220 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 ODEBUG: object ffffc90000dd09a0 is NOT on stack ffffc90000db0000, but annotated. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 21 at lib/debugobjects.c:561 debug_object_is_on_stack lib/debugobjects.c:-1 [inline] WARNING: CPU: 1 PID: 21 at lib/debugobjects.c:561 lookup_object_or_alloc lib/debugobjects.c:594 [inline] WARNING: CPU: 1 PID: 21 at lib/debugobjects.c:561 __debug_object_init+0x4c0/0xc80 lib/debugobjects.c:621 Modules linked in: CPU: 1 PID: 21 Comm: kworker/1:0 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_receive_worker RIP: 0010:debug_object_is_on_stack lib/debugobjects.c:561 [inline] RIP: 0010:lookup_object_or_alloc lib/debugobjects.c:594 [inline] RIP: 0010:__debug_object_init+0x4c0/0xc80 lib/debugobjects.c:621 Code: 16 d2 54 13 48 c7 c1 40 53 7a 8a 48 c7 c7 a0 53 7a 8a 84 c0 48 0f 45 f9 4c 89 ee e8 ca ee c9 05 48 be 00 00 00 00 00 fc ff df <0f> 0b e9 4d fd ff ff 83 3d 42 d1 54 13 00 4c 89 6c 24 28 0f 84 23 RSP: 0018:ffffc90000dd07e0 EFLAGS: 00010046 RAX: 0000000000000050 RBX: 0000000000000001 RCX: 8b32820416301700 RDX: 0000000000000100 RSI: dffffc0000000000 RDI: 0000000000000000 RBP: ffffc90000dd0950 R08: ffffc90000dd0307 R09: 1ffff920001ba060 R10: dffffc0000000000 R11: fffff520001ba061 R12: f8f8f8f8f8f8f8f8 R13: ffffc90000dd09a0 R14: ffff888017a91de0 R15: ffff888075b9e7a8 FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005621063db950 CR3: 0000000070c90000 CR4: 00000000003506e0 Call Trace: __synchronize_srcu+0x229/0x350 kernel/rcu/srcutree.c:928 wakeup_source_remove drivers/base/power/wakeup.c:203 [inline] wakeup_source_unregister+0x112/0x190 drivers/base/power/wakeup.c:247 mmc_host_classdev_release+0x43/0xf0 drivers/mmc/core/host.c:77 device_release+0x92/0x1c0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x217/0x450 lib/kobject.c:761 call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648 expire_timers kernel/time/timer.c:1699 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:1970 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983 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:fsqr2 arch/x86/crypto/curve25519-x86_64.c:608 [inline] RIP: 0010:point_add_and_double arch/x86/crypto/curve25519-x86_64.c:805 [inline] RIP: 0010:montgomery_ladder arch/x86/crypto/curve25519-x86_64.c:887 [inline] RIP: 0010:curve25519_ever64 arch/x86/crypto/curve25519-x86_64.c:1041 [inline] RIP: 0010:curve25519_arch+0x259a/0x51e0 arch/x86/crypto/curve25519-x86_64.c:1388 Code: c7 c0 00 00 00 00 48 0f 42 c2 49 01 c0 4c 89 46 20 48 8d bc 24 a0 00 00 00 4c 8b 64 24 08 4c 89 e6 48 8b 16 c4 62 bb f6 76 08 <45> 31 ff c4 62 b3 f6 56 10 66 4d 0f 38 f6 ce c4 e2 fb f6 4e 18 66 RSP: 0018:ffffc90000db7100 EFLAGS: 00000282 RAX: 0000000000000000 RBX: 0000000000000019 RCX: 0000000000000000 RDX: acc87ba31f4a8aaa RSI: ffffc90000db7280 RDI: ffffc90000db71a0 RBP: ffffc90000db7450 R08: 1316a6a291d3ef0e R09: ddb01f6d0b3c1984 R10: 56b095cf215e8439 R11: d2b9d4b942be7bb3 R12: ffffc90000db7280 R13: 0000000000000015 R14: 823a7882fc56c526 R15: 0000000000000000 curve25519 include/crypto/curve25519.h:39 [inline] mix_dh+0xd1/0x290 drivers/net/wireguard/noise.c:411 wg_noise_handshake_consume_initiation+0x335/0xa30 drivers/net/wireguard/noise.c:608 wg_receive_handshake_packet drivers/net/wireguard/receive.c:151 [inline] wg_packet_handshake_receive_worker+0x67d/0xf60 drivers/net/wireguard/receive.c:220 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 ---------------- Code disassembly (best guess): 0: c7 c0 00 00 00 00 mov $0x0,%eax 6: 48 0f 42 c2 cmovb %rdx,%rax a: 49 01 c0 add %rax,%r8 d: 4c 89 46 20 mov %r8,0x20(%rsi) 11: 48 8d bc 24 a0 00 00 lea 0xa0(%rsp),%rdi 18: 00 19: 4c 8b 64 24 08 mov 0x8(%rsp),%r12 1e: 4c 89 e6 mov %r12,%rsi 21: 48 8b 16 mov (%rsi),%rdx 24: c4 62 bb f6 76 08 mulx 0x8(%rsi),%r8,%r14 * 2a: 45 31 ff xor %r15d,%r15d <-- trapping instruction 2d: c4 62 b3 f6 56 10 mulx 0x10(%rsi),%r9,%r10 33: 66 4d 0f 38 f6 ce adcx %r14,%r9 39: c4 e2 fb f6 4e 18 mulx 0x18(%rsi),%rax,%rcx 3f: 66 data16