syzbot


INFO: task hung in wg_noise_handshake_create_initiation (2)

Status: auto-obsoleted due to no activity on 2024/04/09 14:33
Subsystems: wireguard
[Documentation on labels]
First crash: 430d, last: 430d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in wg_noise_handshake_create_initiation (3) wireguard 6 125d 282d 0/28 auto-obsoleted due to no activity on 2025/02/08 22:54
upstream INFO: task hung in wg_noise_handshake_create_initiation wireguard 2 1814d 1835d 0/28 auto-closed as invalid on 2020/06/25 19:28

Sample crash report:
INFO: task kworker/u4:2:3810 blocked for more than 143 seconds.
      Not tainted 6.7.0-syzkaller-01727-gab27740f7665 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:2    state:D stack:27264 pid:3810  tgid:3810  ppid:2      flags:0x00004000
Workqueue: wg-kex-wg1 wg_packet_handshake_send_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 rwsem_down_write_slowpath kernel/locking/rwsem.c:1178 [inline]
 __down_write_common+0x948/0x1400 kernel/locking/rwsem.c:1306
 wg_noise_handshake_create_initiation+0x101/0x650 drivers/net/wireguard/noise.c:530
 wg_packet_send_handshake_initiation+0x198/0x350 drivers/net/wireguard/send.c:34
 wg_packet_handshake_send_worker+0x1c/0x30 drivers/net/wireguard/send.c:51
 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633
 process_scheduled_works kernel/workqueue.c:2706 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
INFO: task syz-executor.5:5282 blocked for more than 145 seconds.
      Not tainted 6.7.0-syzkaller-01727-gab27740f7665 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:27312 pid:5282  tgid:5282  ppid:1      flags:0x20004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 wg_netns_pre_exit+0x1b/0x220 drivers/net/wireguard/device.c:421
 ops_pre_exit_list net/core/net_namespace.c:160 [inline]
 setup_net+0x59b/0xa40 net/core/net_namespace.c:356
 copy_net_ns+0x2f1/0x660 net/core/net_namespace.c:491
 create_new_namespaces+0x3ea/0xb10 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:228
 ksys_unshare+0x417/0x970 kernel/fork.c:3425
 __do_sys_unshare kernel/fork.c:3496 [inline]
 __se_sys_unshare kernel/fork.c:3494 [inline]
 __ia32_sys_unshare+0x30/0x40 kernel/fork.c:3494
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0x79/0x110 arch/x86/entry/common.c:321
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:346
 entry_SYSENTER_compat_after_hwframe+0x70/0x7a
RIP: 0023:0xf7fdf579
RSP: 002b:00000000f749ff5c EFLAGS: 00000296 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 0000000040000000 RCX: 0000000000000000
RDX: 00000000f7354ff4 RSI: 00000000f72a64de RDI: 0000000030000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
INFO: task syz-executor.4:5302 blocked for more than 147 seconds.
      Not tainted 6.7.0-syzkaller-01727-gab27740f7665 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:27552 pid:5302  tgid:5302  ppid:1      flags:0x20004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 ip_tunnel_init_net+0x225/0x5e0 net/ipv4/ip_tunnel.c:1090
 ops_init+0xb9/0x650 net/core/net_namespace.c:136
 setup_net+0x422/0xa40 net/core/net_namespace.c:339
 copy_net_ns+0x2f1/0x660 net/core/net_namespace.c:491
 create_new_namespaces+0x3ea/0xb10 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:228
 ksys_unshare+0x417/0x970 kernel/fork.c:3425
 __do_sys_unshare kernel/fork.c:3496 [inline]
 __se_sys_unshare kernel/fork.c:3494 [inline]
 __ia32_sys_unshare+0x30/0x40 kernel/fork.c:3494
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0x79/0x110 arch/x86/entry/common.c:321
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:346
 entry_SYSENTER_compat_after_hwframe+0x70/0x7a
RIP: 0023:0xf7f58579
RSP: 002b:00000000f749ff5c EFLAGS: 00000296 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 0000000040000000 RCX: 0000000000000000
RDX: 00000000f7354ff4 RSI: 00000000f72a64de RDI: 0000000030000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
INFO: task syz-executor.0:5309 blocked for more than 149 seconds.
      Not tainted 6.7.0-syzkaller-01727-gab27740f7665 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27568 pid:5309  tgid:5309  ppid:1      flags:0x20004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 ip_tunnel_init_net+0x225/0x5e0 net/ipv4/ip_tunnel.c:1090
 ops_init+0xb9/0x650 net/core/net_namespace.c:136
 setup_net+0x422/0xa40 net/core/net_namespace.c:339
 copy_net_ns+0x2f1/0x660 net/core/net_namespace.c:491
 create_new_namespaces+0x3ea/0xb10 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:228
 ksys_unshare+0x417/0x970 kernel/fork.c:3425
 __do_sys_unshare kernel/fork.c:3496 [inline]
 __se_sys_unshare kernel/fork.c:3494 [inline]
 __ia32_sys_unshare+0x30/0x40 kernel/fork.c:3494
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0x79/0x110 arch/x86/entry/common.c:321
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:346
 entry_SYSENTER_compat_after_hwframe+0x70/0x7a
RIP: 0023:0xf7fe4579
RSP: 002b:00000000f749ff5c EFLAGS: 00000296 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 0000000040000000 RCX: 0000000000000000
RDX: 00000000f7354ff4 RSI: 00000000f72a64de RDI: 0000000030000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
INFO: task syz-executor.2:5313 blocked for more than 150 seconds.
      Not tainted 6.7.0-syzkaller-01727-gab27740f7665 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:27344 pid:5313  tgid:5313  ppid:1      flags:0x20004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 ip_tunnel_init_net+0x225/0x5e0 net/ipv4/ip_tunnel.c:1090
 ops_init+0xb9/0x650 net/core/net_namespace.c:136
 setup_net+0x422/0xa40 net/core/net_namespace.c:339
 copy_net_ns+0x2f1/0x660 net/core/net_namespace.c:491
 create_new_namespaces+0x3ea/0xb10 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:228
 ksys_unshare+0x417/0x970 kernel/fork.c:3425
 __do_sys_unshare kernel/fork.c:3496 [inline]
 __se_sys_unshare kernel/fork.c:3494 [inline]
 __ia32_sys_unshare+0x30/0x40 kernel/fork.c:3494
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0x79/0x110 arch/x86/entry/common.c:321
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:346
 entry_SYSENTER_compat_after_hwframe+0x70/0x7a
RIP: 0023:0xf7fc1579
RSP: 002b:00000000f749ff5c EFLAGS: 00000296 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 0000000040000000 RCX: 0000000000000000
RDX: 00000000f7354ff4 RSI: 00000000f72a64de RDI: 0000000030000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
INFO: task syz-executor.3:5315 blocked for more than 152 seconds.
      Not tainted 6.7.0-syzkaller-01727-gab27740f7665 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:27568 pid:5315  tgid:5315  ppid:1      flags:0x20004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 ip_tunnel_init_net+0x225/0x5e0 net/ipv4/ip_tunnel.c:1090
 ops_init+0xb9/0x650 net/core/net_namespace.c:136
 setup_net+0x422/0xa40 net/core/net_namespace.c:339

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/10 14:26 upstream ab27740f7665 04815ef1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in wg_noise_handshake_create_initiation
* Struck through repros no longer work on HEAD.