INFO: task kworker/u8:0:7009 blocked for more than 430 seconds. Tainted: G L syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:0 state:D stack:0 pid:7009 tgid:7009 ppid:2 task_flags:0x4208060 flags:0x00000000 Workqueue: netns cleanup_net Call Trace: [] context_switch kernel/sched/core.c:5256 [inline] [] __schedule+0x102c/0x451e kernel/sched/core.c:6863 [] __schedule_loop kernel/sched/core.c:6945 [inline] [] schedule+0xc4/0x35e kernel/sched/core.c:6960 [] schedule_timeout+0x1c6/0x2ae kernel/time/sleep_timeout.c:75 [] do_wait_for_common kernel/sched/completion.c:100 [inline] [] __wait_for_common+0x1d2/0x3e8 kernel/sched/completion.c:121 [] wait_for_common kernel/sched/completion.c:132 [inline] [] wait_for_completion+0x1a/0x22 kernel/sched/completion.c:153 [] __flush_workqueue+0x34c/0xfca kernel/workqueue.c:4033 [] peer_remove_after_dead+0xb2/0x310 drivers/net/wireguard/peer.c:116 [] wg_peer_remove_all+0x22c/0x334 drivers/net/wireguard/peer.c:183 [] wg_destruct+0x1b6/0x3f4 drivers/net/wireguard/device.c:254 [] netdev_run_todo+0x656/0x10b8 net/core/dev.c:11691 [] rtnl_unlock+0x14/0x1c net/core/rtnetlink.c:157 [] default_device_exit_batch+0x67c/0x8b0 net/core/dev.c:13037 [] ops_exit_list net/core/net_namespace.c:205 [inline] [] ops_undo_list+0x3e8/0x9dc net/core/net_namespace.c:252 [] cleanup_net+0x3f6/0x82c net/core/net_namespace.c:696 [] process_one_work+0x96a/0x1f3a kernel/workqueue.c:3257 [] process_scheduled_works kernel/workqueue.c:3340 [inline] [] worker_thread+0x5ce/0xde8 kernel/workqueue.c:3421 [] kthread+0x39e/0x7d8 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xc78 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:328 Showing all locks held in the system: 1 lock held by khungtaskd/33: #0: ffffffff889e1320 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6771 2 locks held by getty/3169: #0: ffffaf8072e1e8a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ffff8f800008e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x3e4/0x12ea drivers/tty/n_tty.c:2211 2 locks held by syz-executor/3198: 2 locks held by kworker/1:6/4295: 2 locks held by kworker/u8:4/4402: #0: ffffaf8012289148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3232 #1: ffff8f800b747b70 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f3a kernel/workqueue.c:3232 2 locks held by kworker/1:7/4920: 2 locks held by kworker/1:2/6166: 3 locks held by kworker/1:0/6385: 2 locks held by kworker/u8:1/6646: #0: ffffaf8012289148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3232 #1: ffff8f8004fe7b70 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f3a kernel/workqueue.c:3232 2 locks held by kworker/0:4/6817: 2 locks held by kworker/1:16/6941: 4 locks held by kworker/u8:0/7009: #0: ffffaf8012aa3148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3232 #1: ffff8f8001857b70 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x870/0x1f3a kernel/workqueue.c:3232 #2: ffffffff89ec48b0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xcc/0x82c net/core/net_namespace.c:670 #3: ffffaf801e61d4e8 (&wg->device_update_lock){+.+.}-{4:4}, at: wg_destruct+0x150/0x3f4 drivers/net/wireguard/device.c:249 3 locks held by kworker/u8:7/7092: 3 locks held by kworker/u8:8/7115: 3 locks held by kworker/u8:10/7136: 1 lock held by dhcpcd-run-hook/7750: 2 locks held by modprobe/7752: 1 lock held by kworker/u8:4/7753: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 33 Comm: khungtaskd Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:149 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:155 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x12a/0x1a2 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x3b0/0x3b2 lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x2b6/0x45a lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3c arch/riscv/kernel/smp.c:350 [] trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] [] __sys_info lib/sys_info.c:157 [inline] [] sys_info+0x20c/0x252 lib/sys_info.c:165 [] check_hung_uninterruptible_tasks kernel/hung_task.c:346 [inline] [] watchdog+0xa70/0x11ec kernel/hung_task.c:515 [] kthread+0x39e/0x7d8 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xc78 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:328 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 4295 Comm: kworker/1:6 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) Workqueue: wg-crypt-wg0 wg_packet_tx_worker epc : ip6_packet_match net/ipv6/netfilter/ip6_tables.c:72 [inline] epc : ip6t_do_table+0xc06/0x2248 net/ipv6/netfilter/ip6_tables.c:306 ra : ip6_packet_match net/ipv6/netfilter/ip6_tables.c:72 [inline] ra : ip6t_do_table+0xc06/0x2248 net/ipv6/netfilter/ip6_tables.c:306 epc : ffffffff8605a818 ra : ffffffff8605a818 sp : ffff8f80000174a0 gp : ffffffff8a2fec60 tp : ffffaf801bf70000 t0 : 0000000000000000 t1 : 0000000000000000 t2 : ffffaf801e1ae128 s0 : ffff8f8000017750 s1 : ffffaf8019236040 a0 : 0000000000000007 a1 : 0000000000000000 a2 : 0000000000000000 a3 : ffffffff8605a818 a4 : 0000000000000000 a5 : ffffaf801bf70000 a6 : 0000000000f00000 a7 : 0000000000000000 s2 : ffffaf80192360c4 s3 : 1ffff5f003246c18 s4 : 0000000000000004 s5 : 0000000000000000 s6 : 0000000000000000 s7 : 0000000000000000 s8 : dfffffff00000000 s9 : 0000000000000000 s10: 0000000000000000 s11: ffff8f80000176e0 t3 : 0000000000000000 t4 : 0000000000000000 t5 : ffffaf8019236004 t6 : 0000000000000002 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] ip6_packet_match net/ipv6/netfilter/ip6_tables.c:72 [inline] [] ip6t_do_table+0xc06/0x2248 net/ipv6/netfilter/ip6_tables.c:306 [] nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] [] nf_hook_slow+0xb8/0x1ec net/netfilter/core.c:623 [] nf_hook include/linux/netfilter.h:273 [inline] [] NF_HOOK include/linux/netfilter.h:316 [inline] [] ip6_input+0x2e6/0x70a net/ipv6/ip6_input.c:500 [] dst_input include/net/dst.h:474 [inline] [] ip6_rcv_finish net/ipv6/ip6_input.c:79 [inline] [] NF_HOOK include/linux/netfilter.h:318 [inline] [] NF_HOOK include/linux/netfilter.h:312 [inline] [] ipv6_rcv+0x5ac/0x6de net/ipv6/ip6_input.c:311 [] __netif_receive_skb_one_core+0x106/0x16e net/core/dev.c:6137 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:6250 [] process_backlog+0x4ec/0x1caa net/core/dev.c:6602 [] __napi_poll.constprop.0+0xa4/0x4b6 net/core/dev.c:7666 [] napi_poll net/core/dev.c:7729 [inline] [] net_rx_action+0xa42/0xe36 net/core/dev.c:7881 [] handle_softirqs+0x4b6/0x1336 kernel/softirq.c:622 [] __do_softirq+0x12/0x1a kernel/softirq.c:656 [] ___do_softirq+0x18/0x20 arch/riscv/kernel/irq.c:119 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:361 INFO: task kworker/u8:0:7009 blocked for more than 451 seconds. Tainted: G L syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:0 state:D stack:0 pid:7009 tgid:7009 ppid:2 task_flags:0x4208060 flags:0x00000000 Workqueue: netns cleanup_net Call Trace: [] context_switch kernel/sched/core.c:5256 [inline] [] __schedule+0x102c/0x451e kernel/sched/core.c:6863 [] __schedule_loop kernel/sched/core.c:6945 [inline] [] schedule+0xc4/0x35e kernel/sched/core.c:6960 [] schedule_timeout+0x1c6/0x2ae kernel/time/sleep_timeout.c:75 [] do_wait_for_common kernel/sched/completion.c:100 [inline] [] __wait_for_common+0x1d2/0x3e8 kernel/sched/completion.c:121 [] wait_for_common kernel/sched/completion.c:132 [inline] [] wait_for_completion+0x1a/0x22 kernel/sched/completion.c:153 [] __flush_workqueue+0x34c/0xfca kernel/workqueue.c:4033 [] peer_remove_after_dead+0xb2/0x310 drivers/net/wireguard/peer.c:116 [] wg_peer_remove_all+0x22c/0x334 drivers/net/wireguard/peer.c:183 [] wg_destruct+0x1b6/0x3f4 drivers/net/wireguard/device.c:254 [] netdev_run_todo+0x656/0x10b8 net/core/dev.c:11691 [] rtnl_unlock+0x14/0x1c net/core/rtnetlink.c:157 [] default_device_exit_batch+0x67c/0x8b0 net/core/dev.c:13037 [] ops_exit_list net/core/net_namespace.c:205 [inline] [] ops_undo_list+0x3e8/0x9dc net/core/net_namespace.c:252 [] cleanup_net+0x3f6/0x82c net/core/net_namespace.c:696 [] process_one_work+0x96a/0x1f3a kernel/workqueue.c:3257 [] process_scheduled_works kernel/workqueue.c:3340 [inline] [] worker_thread+0x5ce/0xde8 kernel/workqueue.c:3421 [] kthread+0x39e/0x7d8 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xc78 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:328 Showing all locks held in the system: 1 lock held by khungtaskd/33: #0: ffffffff889e1320 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6771 1 lock held by syslogd/3013: 2 locks held by getty/3169: #0: ffffaf8072e1e8a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ffff8f800008e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x3e4/0x12ea drivers/tty/n_tty.c:2211 2 locks held by kworker/1:6/4295: 3 locks held by kworker/u8:4/4402: 2 locks held by kworker/1:7/4920: 2 locks held by kworker/1:2/6166: 2 locks held by kworker/1:0/6385: 3 locks held by kworker/0:4/6817: 4 locks held by kworker/u8:0/7009: #0: ffffaf8012aa3148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3232 #1: ffff8f8001857b70 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x870/0x1f3a kernel/workqueue.c:3232 #2: ffffffff89ec48b0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xcc/0x82c net/core/net_namespace.c:670 #3: ffffaf801e61d4e8 (&wg->device_update_lock){+.+.}-{4:4}, at: wg_destruct+0x150/0x3f4 drivers/net/wireguard/device.c:249 3 locks held by kworker/0:1/7064: #0: ffffaf8012281948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3232 #1: ffff8f80017d7b70 (free_ipc_work){+.+.}-{0:0}, at: process_one_work+0x870/0x1f3a kernel/workqueue.c:3232 #2: ffffffff889f17f8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock+0x26a/0x37e kernel/rcu/tree_exp.h:311 1 lock held by syz-executor/7733: 2 locks held by kworker/u8:12/7743: #0: ffffaf8012289148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3232 #1: ffff8f8001927b70 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f3a kernel/workqueue.c:3232 2 locks held by modprobe/7756: 1 lock held by rm/7758: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 33 Comm: khungtaskd Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:149 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:155 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x12a/0x1a2 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x3b0/0x3b2 lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x2b6/0x45a lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3c arch/riscv/kernel/smp.c:350 [] trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] [] __sys_info lib/sys_info.c:157 [inline] [] sys_info+0x20c/0x252 lib/sys_info.c:165 [] check_hung_uninterruptible_tasks kernel/hung_task.c:346 [inline] [] watchdog+0xa70/0x11ec kernel/hung_task.c:515 [] kthread+0x39e/0x7d8 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xc78 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:328 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) epc : preempt_count include/asm-generic/preempt.h:11 [inline] epc : should_resched include/asm-generic/preempt.h:77 [inline] epc : __local_bh_enable_ip+0x392/0x5ee kernel/softirq.c:457 ra : __local_bh_enable_ip+0x38e/0x5ee kernel/softirq.c:455 epc : ffffffff8016b9d2 ra : ffffffff8016b9ce sp : ffff8f8000197130 gp : ffffffff8a2fec60 tp : ffffaf8013aacf80 t0 : 0000000000000000 t1 : 0000000000000000 t2 : ffffaf801e1ae128 s0 : ffff8f8000197180 s1 : 0000000000000101 a0 : 0000000000000001 a1 : ffffffff8820a170 a2 : 0000000000000003 a3 : 0000000000000100 a4 : 0000000000000001 a5 : 00000000005975c2 a6 : 0000000000f00000 a7 : 0000000000000000 s2 : ffffaf8013aacf80 s3 : ffffffff8605ac62 s4 : 0000000000000001 s5 : ffffffff916cd6a0 s6 : 1ffff5f0027559f1 s7 : ffffffff8a340820 s8 : dfffffff00000000 s9 : ffffaf80192360c3 s10: 0000000000000000 s11: ffff8f80001973c0 t3 : 0000000000000000 t4 : 0000000000000000 t5 : ffffaf8019236004 t6 : 0000000000000002 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_enable arch/riscv/include/asm/irqflags.h:21 [inline] [] __local_bh_enable_ip+0x392/0x5ee kernel/softirq.c:455 [] local_bh_enable include/linux/bottom_half.h:33 [inline] [] ip6t_do_table+0x1074/0x2248 net/ipv6/netfilter/ip6_tables.c:375 [] nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] [] nf_hook_slow+0xb8/0x1ec net/netfilter/core.c:623 [] nf_hook include/linux/netfilter.h:273 [inline] [] NF_HOOK include/linux/netfilter.h:316 [inline] [] ip6_input+0x2e6/0x70a net/ipv6/ip6_input.c:500 [] dst_input include/net/dst.h:474 [inline] [] ip6_rcv_finish net/ipv6/ip6_input.c:79 [inline] [] NF_HOOK include/linux/netfilter.h:318 [inline] [] NF_HOOK include/linux/netfilter.h:312 [inline] [] ipv6_rcv+0x5ac/0x6de net/ipv6/ip6_input.c:311 [] __netif_receive_skb_one_core+0x106/0x16e net/core/dev.c:6137 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:6250 [] process_backlog+0x4ec/0x1caa net/core/dev.c:6602 [] __napi_poll.constprop.0+0xa4/0x4b6 net/core/dev.c:7666 [] napi_poll net/core/dev.c:7729 [inline] [] net_rx_action+0xa42/0xe36 net/core/dev.c:7881 [] handle_softirqs+0x4b6/0x1336 kernel/softirq.c:622 [] run_ksoftirqd kernel/softirq.c:1063 [inline] [] run_ksoftirqd+0xce/0x144 kernel/softirq.c:1055 [] smpboot_thread_fn+0x420/0xc82 kernel/smpboot.c:160 [] kthread+0x39e/0x7d8 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xc78 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:328