INFO: task kworker/u9:18:9347 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u9:18   state:D stack:22296 pid:9347  tgid:9347  ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker
Call Trace:
 <TASK>
 __schedule+0x1821/0x5740
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x883/0x1080
 down_write+0x1bc/0x200
 wg_noise_handshake_create_initiation+0x140/0x830
 wg_packet_handshake_send_worker+0x18d/0x350
 process_scheduled_works+0xb5d/0x1860
 worker_thread+0xa53/0xfc0
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Showing all locks held in the system:
6 locks held by kworker/u8:1/13:
 #0: ffff8881012b5940 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860
 #1: ffffc90000127c40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860
 #2: ffffffff8fdba2e8 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf4/0x800
 #3: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0xe5/0x9e0
 #4: ffff888025799590 (&wg->device_update_lock){+.+.}-{4:4}, at: wg_stop+0x35/0x600
 #5: ffff888020a2d270 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_clear+0x2e/0xb0
1 lock held by kworker/R-mm_pe/14:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
4 locks held by kworker/1:1/31:
1 lock held by khungtaskd/34:
 #0: ffffffff8e95cd20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
3 locks held by kworker/1:2/995:
1 lock held by dhcpcd/5363:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
2 locks held by getty/5445:
 #0: ffff8881740fa0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034732e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13a0
2 locks held by kworker/1:4/5691:
2 locks held by kworker/1:5/5699:
4 locks held by kworker/u9:18/9347:
 #0: ffff888112cee940 ((wq_completion)wg-kex-wg0#7){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860
 #1: ffffc90006337c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860
 #2: ffff8880257993c0 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x12f/0x830
 #3: ffff888020a2d270 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x140/0x830
1 lock held by kworker/1:0/15756:
3 locks held by kworker/u9:23/19790:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860
 #1: ffffc900077f7c40 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860
 #2: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
3 locks held by kworker/u8:3/22307:
 #0: ffff88816d68a140 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860
 #1: ffffc90004f57c40 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860
 #2: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0x11e/0x14c0
1 lock held by kworker/R-wg-cr/22390:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
1 lock held by kworker/R-wg-cr/22391:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
1 lock held by kworker/R-wg-cr/22392:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
3 locks held by kworker/0:2/22439:
 #0: ffff888100069d40 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860
 #1: ffffc900071a7c40 ((reg_check_chans).work){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860
 #2: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: reg_check_chans_work+0xab/0x1090
1 lock held by kworker/R-wg-cr/22506:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
1 lock held by kworker/R-wg-cr/22507:
1 lock held by kworker/R-wg-cr/22568:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
1 lock held by kworker/R-wg-cr/22569:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
2 locks held by kworker/R-wg-cr/22570:
2 locks held by kworker/R-wg-cr/22608:
1 lock held by kworker/R-wg-cr/22609:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
1 lock held by kworker/R-wg-cr/22610:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x2e/0x3a0
1 lock held by kworker/R-wg-cr/22747:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x2e/0x3a0
1 lock held by kworker/R-wg-cr/22749:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
1 lock held by kworker/R-wg-cr/22750:
 #0: ffffffff8e7faf80 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xc4d/0x1130
1 lock held by syz.8.4399/23093:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: __tun_chr_ioctl+0x3bc/0x1e10
1 lock held by syz.8.4399/23097:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: __tun_chr_ioctl+0x3bc/0x1e10
1 lock held by syz.8.4399/23102:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: __tun_chr_ioctl+0x3bc/0x1e10
1 lock held by syz.7.4400/23103:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0
1 lock held by syz.7.4400/23105:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: dev_ethtool+0x1e1/0x1ae0
1 lock held by syz.6.4401/23101:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: __tun_chr_ioctl+0x3bc/0x1e10
1 lock held by syz-executor/23111:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/23116:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/23119:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/23128:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/23131:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/23137:
 #0: ffffffff8fdc8fc0 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0

=============================================

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 34 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 nmi_cpu_backtrace+0x274/0x2d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 sys_info+0x135/0x170
 watchdog+0xfd3/0x1030
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 22747 Comm: kworker/R-wg-cr Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: wg-crypt-wg0 wg_packet_tx_worker
RIP: 0010:enqueue_to_backlog+0x6be/0xee0
Code: 89 da e8 55 7a f7 ff b8 01 00 00 00 eb 33 e8 b9 62 49 f8 e8 44 30 2b 02 4d 85 f6 0f 84 84 fd ff ff e8 a6 62 49 f8 fb 4c 89 e0 <48> c1 e8 03 42 0f b6 04 28 84 c0 0f 85 90 04 00 00 41 89 1c 24 31
RSP: 0018:ffffc90000a07ad0 EFLAGS: 00000246
RAX: ffffc90000a07b78 RBX: 000000000007c5c6 RCX: ffff888110008000
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88823c63cde0 R08: ffffffff903036f7 R09: 1ffffffff20606de
R10: dffffc0000000000 R11: fffffbfff20606df R12: ffffc90000a07b78
R13: dffffc0000000000 R14: 0000000000000200 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8882a92a0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003a9000 CR3: 000000000e74a000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 netif_rx_internal+0x120/0x560
 __netif_rx+0x78/0xc0
 loopback_xmit+0x43a/0x660
 dev_hard_start_xmit+0x2cd/0x830
 sch_direct_xmit+0x251/0x4c0
 __qdisc_run+0xa83/0x1560
 __dev_queue_xmit+0x1d26/0x3950
 ip_finish_output2+0xc68/0x1070
 ip_output+0x29f/0x450
 synproxy_send_client_synack+0x8c1/0xe30
 nft_synproxy_eval_v4+0x34a/0x4e0
 nft_synproxy_do_eval+0x305/0x580
 nft_do_chain+0x48d/0x1ae0
 nft_do_chain_inet+0x360/0x4b0
 nf_hook_slow+0xc5/0x220
 NF_HOOK+0x21f/0x3c0
 NF_HOOK+0x336/0x3c0
 process_backlog+0xaa3/0x1950
 __napi_poll+0xae/0x340
 net_rx_action+0x627/0xf70
 handle_softirqs+0x22a/0x840
 do_softirq+0x76/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0xf8/0x130
 wg_packet_tx_worker+0x16b/0x7c0
 process_scheduled_works+0xb5d/0x1860
 rescuer_thread+0x827/0x1130
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
