syzbot


INFO: task hung in wg_netns_pre_exit (4)

Status: upstream: reported on 2024/05/30 10:55
Subsystems: wireguard
[Documentation on labels]
Reported-by: syzbot+1d5c9cd5bcdce13e618e@syzkaller.appspotmail.com
Fix commit: d864319871b0 net/sched: act_api: fix possible infinite loop in tcf_idr_check_alloc()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci2-upstream-usb]
First crash: 126d, last: 1d08h
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [wireguard?] INFO: task hung in wg_netns_pre_exit (4) 1 (2) 2024/06/20 13:16
[syzbot] Monthly wireguard report (Jun 2024) 0 (1) 2024/06/03 07:52
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in wg_netns_pre_exit wireguard 3 1284d 1358d 0/27 auto-closed as invalid on 2021/03/15 22:17
upstream INFO: task hung in wg_netns_pre_exit (2) wireguard 39 950d 974d 0/27 auto-closed as invalid on 2022/03/15 05:14
linux-5.15 INFO: task hung in wg_netns_pre_exit 5 6d04h 29d 0/3 upstream: reported on 2024/05/24 01:54
upstream INFO: task hung in wg_netns_pre_exit (3) wireguard 4 303d 433d 0/27 auto-obsoleted due to no activity on 2023/11/21 16:36
linux-6.1 INFO: task hung in wg_netns_pre_exit 3 1d13h 31d 0/3 upstream: reported on 2024/05/22 02:49

Sample crash report:
INFO: task kworker/u8:12:5782 blocked for more than 143 seconds.
      Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:12   state:D stack:24368 pid:5782  tgid:5782  ppid:2      flags:0x00004000
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6837
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752
 wg_netns_pre_exit+0x1f/0x1e0 drivers/net/wireguard/device.c:414
 ops_pre_exit_list net/core/net_namespace.c:163 [inline]
 cleanup_net+0x617/0xcc0 net/core/net_namespace.c:620
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
INFO: task syz-executor.4:6736 blocked for more than 143 seconds.
      Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:24672 pid:6736  tgid:6736  ppid:5121   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6837
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894

Crashes (122):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/20 21:30 upstream 2ccbdf43d5e7 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/06/20 18:43 upstream 2ccbdf43d5e7 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/06/19 08:22 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/06/17 04:51 upstream 2ccbdf43d5e7 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in wg_netns_pre_exit
2024/06/16 23:33 upstream 2ccbdf43d5e7 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in wg_netns_pre_exit
2024/06/16 14:30 upstream 2ccbdf43d5e7 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/06/13 22:40 upstream 2ccbdf43d5e7 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in wg_netns_pre_exit
2024/06/13 14:55 upstream 2ccbdf43d5e7 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in wg_netns_pre_exit
2024/06/12 04:00 upstream 2ef5971ff345 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/06/11 06:24 upstream 83a7eefedc9b 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in wg_netns_pre_exit
2024/05/29 21:34 upstream 4a4be1ad3a6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/05/21 13:43 upstream 8f6a15f095a6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in wg_netns_pre_exit
2024/03/05 18:13 upstream 90d35da658da f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/14 12:50 net be27b8965297 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/14 11:43 net be27b8965297 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/13 13:50 net be27b8965297 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/12 18:40 net 144ba8580bcb 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/11 10:37 net 36534d3c5453 c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/11 00:36 net 5add2f728846 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/10 07:20 net 0579f2724904 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/10 05:52 net 0579f2724904 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/09 09:08 net c44711b78608 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/09 05:12 net c44711b78608 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/09 03:16 net c44711b78608 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/09 01:55 net c44711b78608 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/20 19:14 net-next 3ec8d7572a69 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/20 15:01 net-next 3ec8d7572a69 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/20 11:58 net-next 3ec8d7572a69 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/20 06:29 net-next 3ec8d7572a69 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/20 01:20 net-next 3ec8d7572a69 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/20 00:13 net-next 3ec8d7572a69 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/19 22:40 net-next 3ec8d7572a69 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/18 03:36 net-next 3ec8d7572a69 1f11cfd7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/18 02:25 net-next 3ec8d7572a69 1f11cfd7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/18 01:24 net-next 3ec8d7572a69 1f11cfd7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/17 02:56 net-next 3ec8d7572a69 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/16 23:46 net-next 3ec8d7572a69 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/16 13:26 net-next 3ec8d7572a69 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/16 10:47 net-next 3ec8d7572a69 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/15 03:51 net-next 3ec8d7572a69 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/14 07:41 net-next 3ec8d7572a69 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/12 21:18 net-next 91579c93a9b2 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/12 02:27 net-next bb678f01804c 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/11 04:48 net-next 2ba6d15786f6 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/10 08:23 net-next 28f961f9d5b7 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/09 16:42 net-next 924ee5317548 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/08 23:47 net-next a99997323654 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/08 19:14 net-next a99997323654 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in wg_netns_pre_exit
2024/06/15 23:23 linux-next a957267fa7e9 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/06/13 11:27 linux-next a957267fa7e9 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in wg_netns_pre_exit
2024/06/10 18:08 linux-next d35b2284e966 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in wg_netns_pre_exit
* Struck through repros no longer work on HEAD.