INFO: task syz.2.901:7834 blocked for more than 430 seconds. Not tainted 6.12.0-rc6-syzkaller-g57f7c7dc78cd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.901 state:D stack:0 pid:7834 tgid:7832 ppid:5628 flags:0x00000006 Call Trace: [] context_switch kernel/sched/core.c:5328 [inline] [] __schedule+0xd58/0x3848 kernel/sched/core.c:6690 [] __schedule_loop kernel/sched/core.c:6767 [inline] [] schedule+0xc4/0x324 kernel/sched/core.c:6782 [] schedule_timeout+0x1e2/0x296 kernel/time/timer.c:2591 [] do_wait_for_common kernel/sched/completion.c:95 [inline] [] __wait_for_common+0x1ca/0x4b6 kernel/sched/completion.c:116 [] wait_for_common kernel/sched/completion.c:127 [inline] [] wait_for_completion+0x1a/0x22 kernel/sched/completion.c:148 [] __flush_work+0x5ee/0xcba kernel/workqueue.c:4217 [] __cancel_work_sync+0x136/0x15a kernel/workqueue.c:4337 [] cancel_delayed_work_sync+0x1c/0x26 kernel/workqueue.c:4411 [] htable_put.part.0+0x1a0/0x278 net/netfilter/xt_hashlimit.c:429 [] htable_put net/netfilter/xt_hashlimit.c:424 [inline] [] hashlimit_mt_destroy_v1+0x7e/0xa6 net/netfilter/xt_hashlimit.c:970 [] cleanup_match net/ipv6/netfilter/ip6_tables.c:477 [inline] [] cleanup_entry+0x15e/0x326 net/ipv6/netfilter/ip6_tables.c:661 [] translate_table+0xcf4/0x15da net/ipv6/netfilter/ip6_tables.c:744 [] do_replace+0x2f8/0x432 net/ipv4/netfilter/ip_tables.c:1137 [] do_ip6t_set_ctl+0x39e/0x92a net/ipv6/netfilter/ip6_tables.c:1644 [] nf_setsockopt+0x78/0xda net/netfilter/nf_sockopt.c:101 [] ipv6_setsockopt+0x13c/0x16e net/ipv6/ipv6_sockglue.c:998 [] rawv6_setsockopt+0xe8/0x64c net/ipv6/raw.c:1054 [] sock_common_setsockopt+0x90/0xc0 net/core/sock.c:3803 [] do_sock_setsockopt+0x20a/0x402 net/socket.c:2334 [] __sys_setsockopt+0xf0/0x1aa net/socket.c:2357 [] __do_sys_setsockopt net/socket.c:2366 [inline] [] __se_sys_setsockopt net/socket.c:2363 [inline] [] __riscv_sys_setsockopt+0xa6/0x114 net/socket.c:2363 [] 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: 1 lock held by khungtaskd/37: #0: ffffffff881cc080 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 2 locks held by syslogd/2967: 3 locks held by dhcpcd/3016: 2 locks held by getty/3125: #0: ff6000001c6840a0 (&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 syz-executor/3149: 5 locks held by kworker/1:2/4681: 3 locks held by kworker/u9:1/5025: 3 locks held by kworker/u9:2/6531: 2 locks held by kworker/1:8/6752: 4 locks held by kworker/u8:3/6962: #0: ff60000011e81948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000004167c90 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff89597c70 (pernet_ops_rwsem ){++++}-{3:3}, at: cleanup_net+0xda/0x984 net/core/net_namespace.c:580 #3: ffffffff881dc600 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4562 2 locks held by kworker/1:0/7856: 4 locks held by syz-executor/7860: #0: ff6000001b9fe420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001b9fe420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001b9fe420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001b9fe420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff6000001e0cd088 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001b039b48 (kn->active#4){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x258/0x460 fs/kernfs/file.c:326 #3: ffffffff88e12dc8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xf0/0x48c drivers/net/netdevsim/bus.c:216 2 locks held by kworker/1:4/7866: 8 locks held by syz-executor/7869: 3 locks held by kworker/u9:9/8112: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 37 Comm: khungtaskd Not tainted 6.12.0-rc6-syzkaller-g57f7c7dc78cd #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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 24 Comm: ksoftirqd/1 Not tainted 6.12.0-rc6-syzkaller-g57f7c7dc78cd #0 Hardware name: riscv-virtio,qemu (DT) epc : lock_acquire.part.0+0x36c/0x81c kernel/locking/lockdep.c:5790 ra : lockdep_recursion_finish kernel/locking/lockdep.c:467 [inline] ra : lock_acquire.part.0+0x2d6/0x81c kernel/locking/lockdep.c:5827 epc : ffffffff802497ac ra : ffffffff80249716 sp : ff200000001a6880 gp : ffffffff899c0180 tp : ff60000012aa0000 t0 : ff60000012aa0b20 t1 : ff60000012aa0b70 t2 : 0000000000000006 s0 : ff200000001a69e0 s1 : ff6000005cde0708 a0 : ffffffff90d62aa8 a1 : ffffffff8663e8a0 a2 : 0000000000000014 a3 : ffffffff89abdd80 a4 : 0000000000000000 a5 : 0000000000000000 a6 : ffffffff8d1b74e0 a7 : 0000000056e543b7 s2 : ffffffff90d62aa8 s3 : 0000000000000000 s4 : ffffffff881cc080 s5 : 1fe4000000034d18 s6 : 0000000000000000 s7 : ffffffff854db6f6 s8 : 0000000000000000 s9 : ffffffff86458708 s10: ffffffff90d62aa0 s11: 0000000000000002 t3 : 1fec000002554163 t4 : 000000000000000f t5 : 8374b928a67c3bc0 t6 : 1fec000002554172 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] lock_acquire.part.0+0x36c/0x81c kernel/locking/lockdep.c:5828 [] lock_acquire+0x74/0x98 kernel/locking/lockdep.c:5798 [] rcu_lock_acquire include/linux/rcupdate.h:337 [inline] [] rcu_read_lock include/linux/rcupdate.h:849 [inline] [] __inet_dev_addr_type+0x14c/0x848 net/ipv4/fib_frontend.c:220 [] inet_addr_type_dev_table+0xec/0x226 net/ipv4/fib_frontend.c:267 [] ip_route_me_harder+0x824/0x1158 net/ipv4/netfilter.c:36 [] 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:5670 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:5783 [] process_backlog+0x4fc/0x1cbc net/core/dev.c:6115 [] __napi_poll.constprop.0+0xaa/0x4b8 net/core/dev.c:6779 [] napi_poll net/core/dev.c:6848 [inline] [] net_rx_action+0xa12/0xf10 net/core/dev.c:6970 [] handle_softirqs+0x4a6/0x10de kernel/softirq.c:554 [] run_ksoftirqd kernel/softirq.c:927 [inline] [] run_ksoftirqd+0xce/0x144 kernel/softirq.c:919 [] smpboot_thread_fn+0x654/0xb98 kernel/smpboot.c:164 [] kthread+0x28c/0x3a6 kernel/kthread.c:389 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:326