INFO: task syz.2.763:6456 blocked for more than 430 seconds. Not tainted 6.14.0-rc1-syzkaller-g245aece3750d #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.763 state:D stack:0 pid:6456 tgid:6456 ppid:5234 task_flags:0x400040 flags:0x0000000c Call Trace: [] context_switch kernel/sched/core.c:5377 [inline] [] __schedule+0xe4c/0x3d70 kernel/sched/core.c:6764 [] __schedule_loop kernel/sched/core.c:6841 [inline] [] schedule+0xc4/0x324 kernel/sched/core.c:6856 [] schedule_preempt_disabled+0x16/0x28 kernel/sched/core.c:6913 [] __mutex_lock_common kernel/locking/mutex.c:662 [inline] [] __mutex_lock+0x9b2/0x1230 kernel/locking/mutex.c:730 [] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:782 [] rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:3741 [] netdev_run_todo+0x294/0x10b4 net/core/dev.c:11130 [] rtnl_unlock+0x14/0x1c net/core/rtnetlink.c:151 [] tun_detach drivers/net/tun.c:708 [inline] [] tun_chr_close+0xde/0x230 drivers/net/tun.c:3521 [] __fput+0x37e/0x9f4 fs/file_table.c:448 [] ____fput+0x1c/0x26 fs/file_table.c:476 [] task_work_run+0x16a/0x25e kernel/task_work.c:227 [] resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] [] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] [] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] [] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] [] syscall_exit_to_user_mode+0x290/0x2a4 kernel/entry/common.c:218 [] do_trap_ecall_u+0x86/0x216 arch/riscv/kernel/traps.c:345 [] handle_exception+0x146/0x152 arch/riscv/kernel/entry.S:197 Showing all locks held in the system: 2 locks held by kworker/0:0/8: 1 lock held by kworker/R-mm_pe/13: 3 locks held by kworker/u10:1/31: #0: ffffaf8011a89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3211 #1: ffff8f8000217bd0 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f3a kernel/workqueue.c:3211 #2: ffffffff883e7d00 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:3741 1 lock held by khungtaskd/36: #0: ffffffff883d7b80 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x68/0x288 kernel/locking/lockdep.c:6742 2 locks held by kworker/0:2/919: 1 lock held by klogd/2994: 2 locks held by getty/3145: #0: ffffaf801cec20a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ffff8f800008b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xd7c/0x129a drivers/tty/n_tty.c:2211 1 lock held by syz-executor/3171: 2 locks held by kworker/0:1/3749: 3 locks held by kworker/u10:4/4254: 1 lock held by kworker/R-wg-cr/5380: #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2734 [inline] #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3533 1 lock held by kworker/R-wg-cr/5383: #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2676 1 lock held by kworker/R-wg-cr/5387: #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2676 2 locks held by kworker/0:3/5887: 2 locks held by kworker/0:4/5996: 2 locks held by kworker/0:5/6196: 5 locks held by kworker/u10:0/6199: 2 locks held by kworker/0:7/6211: 4 locks held by kworker/0:8/6214: 1 lock held by syz.1.740/6217: #0: ffffffff883e7d00 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:3741 3 locks held by kworker/0:9/6229: 3 locks held by kworker/u10:6/6230: 3 locks held by syz-executor/6247: 1 lock held by kworker/R-wg-cr/6362: #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2734 [inline] #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3533 2 locks held by kworker/0:10/6363: 1 lock held by kworker/R-wg-cr/6366: #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2734 [inline] #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3533 1 lock held by kworker/R-wg-cr/6369: #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2734 [inline] #0: ffffffff8828d768 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3533 1 lock held by syz.2.763/6456: #0: ffffffff883e7d00 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:3741 2 locks held by syz-executor/6588: 2 locks held by kworker/0:11/6944: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 36 Comm: khungtaskd Not tainted 6.14.0-rc1-syzkaller-g245aece3750d #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:132 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:138 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x12e/0x1a6 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/0x458 lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3e arch/riscv/kernel/smp.c:348 [] trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:236 [inline] [] watchdog+0xcf2/0x11de kernel/hung_task.c:399 [] kthread+0x37e/0x7b6 kernel/kthread.c:464 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:327 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.14.0-rc1-syzkaller-g245aece3750d #0 Hardware name: riscv-virtio,qemu (DT) epc : walk_stackframe+0xc4/0x474 arch/riscv/kernel/stacktrace.c:58 ra : walk_stackframe+0xc4/0x474 arch/riscv/kernel/stacktrace.c:58 epc : ffffffff80073da6 ra : ffffffff80073da6 sp : ffff8f8000116450 gp : ffffffff89c21d80 tp : ffffaf801328ce00 t0 : ffff8f80001167a0 t1 : ffffaf801328d940 t2 : 0000000000000005 s0 : ffff8f80001164d0 s1 : ffff8f80001164e0 a0 : 0000000000000001 a1 : ffffffff8623b584 a2 : 0000000000f00000 a3 : ffffffff80073d9c a4 : 0000000000000000 a5 : ffffffff86261374 a6 : 0000000000f00000 a7 : 000000001471ee82 s2 : ffff8f80001164d0 s3 : 0000000000000000 s4 : 0000000000000000 s5 : dfffffff00000000 s6 : ffffffff8623b584 s7 : ffff8f80001164e0 s8 : dfffffff00000000 s9 : 0000000000007fff s10: ffffffff86261034 s11: 0000000000000007 t3 : ffffaf801328d8f0 t4 : 1ffff5f002651b1d t5 : 1ffff5f002651b2c t6 : 0000000000000009 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] walk_stackframe+0xc4/0x474 arch/riscv/kernel/stacktrace.c:58 [] arch_stack_walk+0x1c/0x24 arch/riscv/kernel/stacktrace.c:165 [] stack_trace_save+0xa0/0xd2 kernel/stacktrace.c:122 [] kasan_save_stack+0x3e/0x6a mm/kasan/common.c:47 [] kasan_save_track+0x16/0x28 mm/kasan/common.c:68 [] kasan_save_alloc_info+0x30/0x3e mm/kasan/generic.c:562 [] unpoison_slab_object mm/kasan/common.c:319 [inline] [] __kasan_slab_alloc+0x7c/0x82 mm/kasan/common.c:345 [] kasan_slab_alloc include/linux/kasan.h:250 [inline] [] slab_post_alloc_hook mm/slub.c:4115 [inline] [] slab_alloc_node mm/slub.c:4164 [inline] [] kmem_cache_alloc_noprof+0x108/0x3e2 mm/slub.c:4171 [] dst_alloc+0x94/0x174 net/core/dst.c:89 [] rt_dst_alloc+0x3a/0x340 net/ipv4/route.c:1626 [] __mkroute_output net/ipv4/route.c:2620 [inline] [] ip_route_output_key_hash_rcu+0x822/0x2748 net/ipv4/route.c:2842 [] ip_route_output_key_hash+0x158/0x31c net/ipv4/route.c:2671 [] __ip_route_output_key include/net/route.h:169 [inline] [] ip_route_output_flow+0x2a/0x142 net/ipv4/route.c:2899 [] ip_route_output_key include/net/route.h:179 [inline] [] ip_route_me_harder+0x52e/0x11a6 net/ipv4/netfilter.c:53 [] synproxy_send_tcp.isra.0+0x2be/0x5d2 net/netfilter/nf_synproxy_core.c:431 [] synproxy_send_client_synack+0x6dc/0x8be 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:469 [inline] [] ip_rcv_finish+0x1b0/0x2d2 net/ipv4/ip_input.c:447 [] 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:567 [] __netif_receive_skb_one_core+0x106/0x16e net/core/dev.c:5828 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:5941 [] process_backlog+0x4f6/0x1cb0 net/core/dev.c:6289 [] __napi_poll.constprop.0+0xaa/0x4b8 net/core/dev.c:7106 [] napi_poll net/core/dev.c:7175 [inline] [] net_rx_action+0xa12/0xf10 net/core/dev.c:7297 [] handle_softirqs+0x4b2/0x132e kernel/softirq.c:561 [] run_ksoftirqd kernel/softirq.c:950 [inline] [] run_ksoftirqd+0xce/0x144 kernel/softirq.c:942 [] smpboot_thread_fn+0x654/0xb96 kernel/smpboot.c:164 [] kthread+0x37e/0x7b6 kernel/kthread.c:464 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:327