INFO: task syz.1.166:4420 blocked for more than 430 seconds. Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.166 state:D stack:0 pid:4420 tgid:4419 ppid:3187 flags:0x00000006 Call Trace: [] context_switch kernel/sched/core.c:5315 [inline] [] __schedule+0xd5a/0x3886 kernel/sched/core.c:6675 [] __schedule_loop kernel/sched/core.c:6752 [inline] [] schedule+0xc4/0x324 kernel/sched/core.c:6767 [] schedule_preempt_disabled+0x16/0x28 kernel/sched/core.c:6824 [] __mutex_lock_common kernel/locking/mutex.c:684 [inline] [] __mutex_lock+0x86a/0x1022 kernel/locking/mutex.c:752 [] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:804 [] genl_lock net/netlink/genetlink.c:35 [inline] [] genl_op_lock net/netlink/genetlink.c:60 [inline] [] genl_op_lock net/netlink/genetlink.c:57 [inline] [] genl_rcv_msg+0x532/0x78e net/netlink/genetlink.c:1209 [] netlink_rcv_skb+0x216/0x3dc net/netlink/af_netlink.c:2550 [] genl_rcv+0x36/0x4c net/netlink/genetlink.c:1219 [] netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] [] netlink_unicast+0x4f0/0x82c net/netlink/af_netlink.c:1357 [] netlink_sendmsg+0x864/0xdc6 net/netlink/af_netlink.c:1901 [] sock_sendmsg_nosec net/socket.c:729 [inline] [] __sock_sendmsg+0xcc/0x160 net/socket.c:744 [] __sys_sendto+0x230/0x320 net/socket.c:2209 [] __do_sys_sendto net/socket.c:2221 [inline] [] __se_sys_sendto net/socket.c:2217 [inline] [] __riscv_sys_sendto+0xc0/0x158 net/socket.c:2217 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0x1aa/0x216 arch/riscv/kernel/traps.c:331 [] _new_vmalloc_restore_context_a0+0xc2/0xce Showing all locks held in the system: 2 locks held by kworker/0:1/9: 3 locks held by kworker/u8:2/27: #0: ff600000184fb148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff200000001d7c90 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x22/0x2a net/core/rtnetlink.c:79 1 lock held by khungtaskd/37: #0: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 1 lock held by klogd/2999: 1 lock held by dhcpcd/3043: #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xdbe net/core/rtnetlink.c:6643 2 locks held by getty/3147: #0: ff6000001c9dd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ff2000000008b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd7c/0x129a drivers/tty/n_tty.c:2211 2 locks held by kworker/0:0/3802: 2 locks held by kworker/0:4/3873: 3 locks held by kworker/0:5/3874: 4 locks held by kworker/0:7/4181: 2 locks held by kworker/0:10/4195: 2 locks held by kworker/0:13/4222: 2 locks held by kworker/0:16/4314: 4 locks held by syz.0.164/4416: #0: ffffffff89449530 (cb_lock){++++}-{3:3}, at: genl_rcv+0x28/0x4c net/netlink/genetlink.c:1218 #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_op_lock net/netlink/genetlink.c:57 [inline] #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x532/0x78e net/netlink/genetlink.c:1209 #2: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x22/0x2a net/core/rtnetlink.c:79 #3: ff6000001f9613e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_set_device+0xea/0x12d8 drivers/net/wireguard/netlink.c:505 2 locks held by kworker/0:19/4415: 2 locks held by syz.1.166/4420: #0: ffffffff89449530 (cb_lock){++++}-{3:3}, at: genl_rcv+0x28/0x4c net/netlink/genetlink.c:1218 #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_op_lock net/netlink/genetlink.c:57 [inline] #1: ffffffff89449468 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x532/0x78e net/netlink/genetlink.c:1209 1 lock held by syz-executor/4424: #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xdbe net/core/rtnetlink.c:6643 1 lock held by syz-executor/4427: #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff893adde8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xdbe net/core/rtnetlink.c:6643 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 37 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:130 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:136 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x122/0x196 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x39c/0x39e lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x2b6/0x456 lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3c arch/riscv/kernel/smp.c:347 [] trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] [] watchdog+0xcfa/0x1178 kernel/hung_task.c:379 [] kthread+0x28c/0x3a6 kernel/kthread.c:389 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:326 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 4181 Comm: kworker/0:7 Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker epc : __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] epc : _raw_spin_unlock_irqrestore+0x36/0xd6 kernel/locking/spinlock.c:194 ra : __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] ra : _raw_spin_unlock_irqrestore+0x86/0xd6 kernel/locking/spinlock.c:194 epc : ffffffff85ffb79a ra : ffffffff85ffb7ea sp : ff200000000069b0 gp : ffffffff897bea80 tp : ff6000001b5b0000 t0 : ff6000001b5b0b20 t1 : ffebffff03224cbd t2 : 0000000000000178 s0 : ff200000000069d0 s1 : 0000000000000002 a0 : 0000000000000000 a1 : ffffffff8643e620 a2 : 0000000000000003 a3 : 0000000000000102 a4 : 0000000000000001 a5 : 0000000000000000 a6 : ff6000001b5b0b68 a7 : 1fec0000036b616d s2 : ff600000191265e8 s3 : 1fe4000000000d3c s4 : ff60000019126638 s5 : 1fec000003224cc7 s6 : 0000000200000022 s7 : 0000000000000001 s8 : ff60000036166240 s9 : 0000000000000000 s10: 0000000000000002 s11: ffffffff80000000 t3 : 1fec0000036b6163 t4 : ffebffff03224cbd t5 : ffebffff03224cbe t6 : 1fec0000036b6181 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] [] _raw_spin_unlock_irqrestore+0x36/0xd6 kernel/locking/spinlock.c:194 [] spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] [] ref_tracker_alloc+0x2d8/0x542 lib/ref_tracker.c:214 [] __netdev_tracker_alloc include/linux/netdevice.h:4050 [inline] [] netdev_hold include/linux/netdevice.h:4079 [inline] [] dst_init+0xca/0x506 net/core/dst.c:52 [] dst_alloc+0xae/0x174 net/core/dst.c:93 [] rt_dst_alloc+0x3a/0x340 net/ipv4/route.c:1612 [] __mkroute_output net/ipv4/route.c:2573 [inline] [] ip_route_output_key_hash_rcu+0x822/0x2748 net/ipv4/route.c:2795 [] ip_route_output_key_hash+0x158/0x31c net/ipv4/route.c:2624 [] __ip_route_output_key include/net/route.h:141 [inline] [] ip_route_output_flow+0x2a/0x142 net/ipv4/route.c:2852 [] ip_route_output_key include/net/route.h:151 [inline] [] ip_route_me_harder+0x4e4/0x1158 net/ipv4/netfilter.c:53 [] synproxy_send_tcp.isra.0+0x2be/0x5d2 net/netfilter/nf_synproxy_core.c:431 [] synproxy_send_client_synack+0x940/0xc9a net/netfilter/nf_synproxy_core.c:484 [] nft_synproxy_eval_v4 net/netfilter/nft_synproxy.c:59 [inline] [] nft_synproxy_do_eval+0x8ac/0xa52 net/netfilter/nft_synproxy.c:141 [] nft_synproxy_eval+0x28/0x36 net/netfilter/nft_synproxy.c:247 [] expr_call_ops_eval net/netfilter/nf_tables_core.c:240 [inline] [] nft_do_chain+0x328/0x1598 net/netfilter/nf_tables_core.c:288 [] nft_do_chain_inet+0x180/0x316 net/netfilter/nft_chain_filter.c:161 [] nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] [] nf_hook_slow+0xb8/0x1ec net/netfilter/core.c:626 [] nf_hook include/linux/netfilter.h:269 [inline] [] NF_HOOK include/linux/netfilter.h:312 [inline] [] ip_local_deliver+0x2ea/0x568 net/ipv4/ip_input.c:254 [] dst_input include/net/dst.h:460 [inline] [] ip_rcv_finish+0x1b0/0x2d2 net/ipv4/ip_input.c:449 [] NF_HOOK include/linux/netfilter.h:314 [inline] [] NF_HOOK include/linux/netfilter.h:308 [inline] [] ip_rcv+0xd6/0x44e net/ipv4/ip_input.c:569 [] __netif_receive_skb_one_core+0x106/0x16e net/core/dev.c:5662 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:5775 [] process_backlog+0x4fc/0x1cbc net/core/dev.c:6107 [] __napi_poll.constprop.0+0xaa/0x4b8 net/core/dev.c:6771 [] napi_poll net/core/dev.c:6840 [inline] [] net_rx_action+0xa12/0xf10 net/core/dev.c:6962 [] handle_softirqs+0x4a6/0x10de kernel/softirq.c:554 [] __do_softirq+0x12/0x1a kernel/softirq.c:588 [] ___do_softirq+0x18/0x20 arch/riscv/kernel/irq.c:85 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:355