INFO: task hung in wg_noise_handshake_create_initiation

From: cruise k
Date: Mon Jan 10 2022 - 08:58:40 EST


Hi,

Syzkaller found the following issue:

HEAD commit: 75acfdb Linux 5.16-rc8
git tree: upstream
console output: https://pastebin.com/raw/4aZeyEi8
kernel config: https://pastebin.com/raw/XsnKfdRt

And hope the report log can help you.

INFO: task kworker/u17:18:25859 blocked for more than 145 seconds.
Not tainted 5.16.0-rc8+ #10
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u17:18 state:D stack:25232 pid:25859 ppid: 2 flags:0x00004000
Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker
Call Trace:
<TASK>
context_switch kernel/sched/core.c:4972 [inline]
__schedule+0xcd9/0x2550 kernel/sched/core.c:6253
schedule+0xd2/0x260 kernel/sched/core.c:6326
rwsem_down_write_slowpath+0x664/0x1190 kernel/locking/rwsem.c:1151
__down_write_common kernel/locking/rwsem.c:1268 [inline]
__down_write_common kernel/locking/rwsem.c:1265 [inline]
__down_write kernel/locking/rwsem.c:1277 [inline]
down_write+0x135/0x150 kernel/locking/rwsem.c:1524
wg_noise_handshake_create_initiation+0xb8/0x580
drivers/net/wireguard/noise.c:497
wg_packet_send_handshake_initiation+0x187/0x340 drivers/net/wireguard/send.c:34
wg_packet_handshake_send_worker+0x18/0x30 drivers/net/wireguard/send.c:51
process_one_work+0x9df/0x16a0 kernel/workqueue.c:2298
worker_thread+0x90/0xe20 kernel/workqueue.c:2445
kthread+0x405/0x4f0 kernel/kthread.c:327
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>