INFO: task syz.6.5123:28716 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.5123      state:D stack:25304 pid:28716 tgid:28715 ppid:23580  task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17db/0x58f0
 schedule+0x164/0x2b0
 cgroup_lock_and_drain_offline+0x51a/0x650
 cgroup_kn_lock_live+0x120/0x230
 cgroup_subtree_control_write+0x4b5/0x1080
 cgroup_file_write+0x331/0x8f0
 kernfs_fop_write_iter+0x3a4/0x540
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f220df9e559
RSP: 002b:00007f220c1f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f220e225fa0 RCX: 00007f220df9e559
RDX: 0000000000000006 RSI: 0000200000000080 RDI: 0000000000000005
RBP: 00007f220e0358b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f220e226038 R14: 00007f220e225fa0 R15: 00007ffe45f9cba8
 </TASK>

Showing all locks held in the system:
locks held by kworker/u9:0/29: 4, last CPU#1:
 #0: ffff8881128be940 ((wq_completion)wg-kex-wg1#11){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90000a47c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff8881199b1440 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x12e/0x810
 #3: ffff888112abdc58 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x13f/0x810
locks held by khungtaskd/37: 1, last CPU#0:
 #0: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by kworker/u9:2/63: 2, last CPU#0:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000159fc40 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by getty/5423: 2, on CPU#1:
 #0: ffff88811146f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034762e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by syz.1.2757/15686: 4, last CPU#0:
 #0: ffff88816f9ee6f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff88816fe42460 (sb_writers#16){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff8881af980f40 (&sb->s_type->i_mutex_key#31){+.+.}-{4:4}, at: fuse_file_write_iter+0xb7f/0x11b0
 #3: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0x8f/0x2550
locks held by syz.6.5123/28716: 3, on CPU#0:
 #0: ffff88810bcd7cf0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff888175d50460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88811027a080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
locks held by syz.3.5359/30439: 3, on CPU#0:
 #0: ffff88811d6b2af0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff888175d50460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88816f081480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
locks held by syz.8.5343/30500: 3, on CPU#1:
 #0: ffff88816c43dcf0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff888175d50460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff8881b57aac80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
locks held by syz.8.5343/30502: 1, on CPU#0:
 #0: ffff88816c43dcf0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
locks held by syz.9.5800/674: 3, on CPU#0:
 #0: ffff88810d73eef0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff888175d50460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88811dc1a480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 37 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+0x17d/0x390
 sys_info+0x135/0x170
 watchdog+0xfd7/0x1030
 kthread+0x38b/0x480
 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: 29 Comm: kworker/u9:0 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-kex-wg1 wg_packet_handshake_send_worker
RIP: 0010:__lock_acquire+0x1a2e/0x2de0
Code: 15 25 ff 0f 00 00 39 05 2c 41 f8 13 73 06 89 05 24 41 f8 13 49 8b 06 48 89 df 4c 39 e8 0f 84 39 fe ff ff 4c 89 78 30 48 8b 00 <4c> 39 e8 75 f4 48 89 df e9 25 fe ff ff 48 89 fb 48 c7 c7 30 aa c2
RSP: 0018:ffffc90000a46180 EFLAGS: 00000002
RAX: ffffffff983e7128 RBX: 00000000000003fd RCX: 000000000000013d
RDX: 0000000000000008 RSI: ffff8881032c0ca0 RDI: 00000000000003fd
RBP: 502029fff2b6f669 R08: ffffc90000a46148 R09: 0000000000000020
R10: 0000000000000003 R11: ffffffff81a3ec50 R12: 000000000000013c
R13: ffffffff954379c8 R14: ffffffff982fce68 R15: ffffffff982fcd18
FS:  0000000000000000(0000) GS:ffff8882a7cbe000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc62253b440 CR3: 000000000fb48000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_acquire+0x115/0x350
 seqcount_lockdep_reader_access+0x55/0x100
 ktime_get+0x45/0x220
 clockevents_program_event+0x290/0x630
 __hrtimer_rearm_deferred+0x36c/0x4b0
 hrtick_schedule_exit+0x1c7/0x2b0
 __schedule+0x1dae/0x58f0
 preempt_schedule_irq+0x4b/0x90
 irqentry_exit+0x14f/0x910
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:curve25519_generic+0x3a2d/0xa470
Code: f7 e6 49 89 d0 49 89 c3 4c 89 f0 48 f7 e3 49 89 d7 48 89 c3 4c 01 db 4d 11 c7 4c 8b 84 24 80 00 00 00 4b 8d 04 c0 49 8d 04 40 <49> f7 e0 49 89 d5 49 89 c4 49 01 dc 4d 11 fd 4c 89 c0 48 f7 e6 48
RSP: 0018:ffffc90000a46820 EFLAGS: 00000216
RAX: 043d057424f166d1 RBX: 45c6cfddadd7932a RCX: 00010f7bd3e2a623
RDX: 0000215a11de4091 RSI: 007fa246b5773d4e RDI: f5ee7327e9d05243
RBP: ffffc90000a473b0 R08: 00391b3c01f1c20b R09: 000483f55e72bb87
R10: 003c7aff393e4f97 R11: ad2945ee0c243b02 R12: 736cab7ed01b41de
R13: 004262d2281a9fb4 R14: 0084c5a450353f68 R15: 00003f816d05a9a0
 curve25519_generate_public+0x303f/0x3050
 wg_noise_handshake_create_initiation+0x223/0x810
 wg_packet_handshake_send_worker+0x18c/0x370
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
