============================= [ BUG: Invalid wait context ] syzkaller #0 Not tainted ----------------------------- kworker/u8:0/12 is trying to lock: ffff88807db0a8e8 (&ep->mtx/1){+.+.}-{4:4}, at: spin_lock include/linux/spinlock.h:347 [inline] ffff88807db0a8e8 (&ep->mtx/1){+.+.}-{4:4}, at: tcp_tsq_handler+0x29/0x200 net/ipv4/tcp_output.c:1291 other info that might help us debug this: context-{3:3} locks held by kworker/u8:0/12: 4, last CPU#0: #0: ffff888078932140 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #0: ffff888078932140 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline] #0: ffff888078932140 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline] #0: ffff888078932140 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470 #1: ffffc90000117c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #1: ffffc90000117c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline] #1: ffffc90000117c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline] #1: ffffc90000117c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470 #2: ffff88801b069540 ((wq_completion)events_bh){+.-.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #2: ffff88801b069540 ((wq_completion)events_bh){+.-.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline] #2: ffff88801b069540 ((wq_completion)events_bh){+.-.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline] #2: ffff88801b069540 ((wq_completion)events_bh){+.-.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470 #3: ffffc90000007e00 ((work_completion)(&tsq->work)){+.-.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #3: ffffc90000007e00 ((work_completion)(&tsq->work)){+.-.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline] #3: ffffc90000007e00 ((work_completion)(&tsq->work)){+.-.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline] #3: ffffc90000007e00 ((work_completion)(&tsq->work)){+.-.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470 stack backtrace: CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4846 [inline] check_wait_context kernel/locking/lockdep.c:4918 [inline] __lock_acquire+0xe39/0x2cf0 kernel/locking/lockdep.c:5203 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5886 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] tcp_tsq_handler+0x29/0x200 net/ipv4/tcp_output.c:1291 tcp_tsq_workfn+0x384/0x410 net/ipv4/tcp_output.c:1325 process_one_work kernel/workqueue.c:3387 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470 bh_worker+0x451/0x870 kernel/workqueue.c:3773 tasklet_action+0xc/0x70 kernel/softirq.c:997 handle_softirqs+0x226/0x860 kernel/softirq.c:645 do_softirq+0x77/0xd0 kernel/softirq.c:546 __local_bh_enable_ip+0x100/0x140 kernel/softirq.c:473 wg_socket_send_skb_to_peer+0x16b/0x1d0 drivers/net/wireguard/socket.c:183 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x204/0x370 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3387 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3551 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: workqueue leaked atomic, lock or RCU: kworker/u8:0[12] preempt=0x00000101 lock=2->0 RCU=0->0 workfn=tcp_tsq_workfn INFO: lockdep is turned off. CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 process_one_work kernel/workqueue.c:3408 [inline] process_scheduled_works+0x12c7/0x1630 kernel/workqueue.c:3470 bh_worker+0x451/0x870 kernel/workqueue.c:3773 tasklet_action+0xc/0x70 kernel/softirq.c:997 handle_softirqs+0x226/0x860 kernel/softirq.c:645 do_softirq+0x77/0xd0 kernel/softirq.c:546 __local_bh_enable_ip+0x100/0x140 kernel/softirq.c:473 wg_socket_send_skb_to_peer+0x16b/0x1d0 drivers/net/wireguard/socket.c:183 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x204/0x370 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3387 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3551 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245