INFO: task kworker/u8:0:4599 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:kworker/u8:0 state:D stack:0 pid:4599 tgid:4599 ppid:2 flags:0x00000000 Workqueue: netns cleanup_net 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 [] devl_lock net/devlink/core.c:276 [inline] [] devl_dev_lock net/devlink/devl_internal.h:109 [inline] [] devlink_pernet_pre_exit+0x144/0x29a net/devlink/core.c:506 [] ops_pre_exit_list net/core/net_namespace.c:163 [inline] [] cleanup_net+0x444/0x984 net/core/net_namespace.c:606 [] process_one_work+0x956/0x1dae kernel/workqueue.c:3229 [] process_scheduled_works kernel/workqueue.c:3310 [inline] [] worker_thread+0x5be/0xdc6 kernel/workqueue.c:3391 [] kthread+0x28c/0x3a6 kernel/kthread.c:389 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:326 Showing all locks held in the system: 1 lock held by kworker/R-mm_pe/13: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 2 locks held by kworker/1:0/25: 1 lock held by khungtaskd/36: #0: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 1 lock held by kworker/R-dm_bu/1602: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 2 locks held by kworker/1:2/1837: 5 locks held by kworker/u9:5/2382: 1 lock held by klogd/2998: 2 locks held by getty/3149: #0: ff600000731d80a0 (&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 3 locks held by syz-executor/3175: 3 locks held by kworker/1:1/3182: 2 locks held by kworker/1:3/3183: 1 lock held by kworker/R-wg-cr/3360: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 1 lock held by kworker/R-wg-cr/3363: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 1 lock held by kworker/R-wg-cr/3366: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 3 locks held by kworker/0:3/3872: 2 locks held by kworker/1:5/3874: 1 lock held by kworker/R-wg-cr/4073: 1 lock held by kworker/R-wg-cr/4076: 1 lock held by syz.1.69/4541: #0: ff6000001575abc8 (mapping.invalidate_lock#2){+.+.}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ff6000001575abc8 (mapping.invalidate_lock#2){+.+.}-{3:3}, at: blkdev_fallocate+0x1ac/0x30a block/fops.c:808 5 locks held by kworker/u8:0/4599: #0: ff60000011e81948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000007247c90 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff89397670 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xda/0x984 net/core/net_namespace.c:580 #3: ff6000002dbf60e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #3: ff6000002dbf60e8 (&dev->mutex){....}-{3:3}, at: devl_dev_lock net/devlink/devl_internal.h:108 [inline] #3: ff6000002dbf60e8 (&dev->mutex){....}-{3:3}, at: devlink_pernet_pre_exit+0x138/0x29a net/devlink/core.c:506 #4: ff6000002dbf7250 (&devlink->lock_key#4){+.+.}-{3:3}, at: devl_lock net/devlink/core.c:276 [inline] #4: ff6000002dbf7250 (&devlink->lock_key#4){+.+.}-{3:3}, at: devl_dev_lock net/devlink/devl_internal.h:109 [inline] #4: ff6000002dbf7250 (&devlink->lock_key#4){+.+.}-{3:3}, at: devlink_pernet_pre_exit+0x144/0x29a net/devlink/core.c:506 7 locks held by kworker/R-wg-cr/4684: 2 locks held by kworker/R-wg-cr/4687: 1 lock held by kworker/R-wg-cr/4692: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 2 locks held by kworker/1:4/5216: 2 locks held by kworker/1:6/5270: 2 locks held by kworker/1:7/5450: 5 locks held by syz-executor/5487: #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff600000237dfc88 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001b259968 (kn->active#4){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x258/0x460 fs/kernfs/file.c:326 #3: ffffffff88c129e8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xf0/0x48c drivers/net/netdevsim/bus.c:216 #4: ff6000002dbf60e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ff6000002dbf60e8 (&dev->mutex){....}-{3:3}, at: device_del+0xac/0x898 drivers/base/core.c:3826 1 lock held by kworker/1:8/5495: 4 locks held by syz-executor/5631: #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001beec420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff60000022dd3088 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001b259968 (kn->active#4){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x258/0x460 fs/kernfs/file.c:326 #3: ffffffff88c129e8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xf0/0x48c drivers/net/netdevsim/bus.c:216 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 36 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 4073 Comm: kworker/R-wg-cr 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 : nft_set_pktinfo_ipv4 include/net/netfilter/nf_tables_ipv4.h:16 [inline] epc : nft_do_chain_inet+0x2a6/0x316 net/netfilter/nft_chain_filter.c:152 ra : skb_network_header include/linux/skbuff.h:3003 [inline] ra : ip_hdr include/linux/ip.h:21 [inline] ra : nft_set_pktinfo_ipv4 include/net/netfilter/nf_tables_ipv4.h:12 [inline] ra : nft_do_chain_inet+0x1ce/0x316 net/netfilter/nft_chain_filter.c:152 epc : ffffffff852373b2 ra : ffffffff852372da sp : ff20000000017600 gp : ffffffff897bea80 tp : ff6000001b601a40 t0 : ff6000001b602560 t1 : 0000000000000000 t2 : 0000000000000006 s0 : ff20000000017730 s1 : ff200000000176e0 a0 : ff6000002de2a106 a1 : 000000000000000a a2 : 0000000000f00000 a3 : 1fec000005bc5420 a4 : 0000000000000000 a5 : 0000000000000001 a6 : 0000000000f00000 a7 : 1fec0000036c04b5 s2 : ff6000002de2a100 s3 : 1fe4000000002ec4 s4 : ff60000018a228c0 s5 : ff6000002c2fd650 s6 : 0000000000000002 s7 : ff20000000017680 s8 : 1fec00000585fa80 s9 : 0000000000000003 s10: ffffffff871b05a0 s11: ffffffff8523710c t3 : 1fec000005465402 t4 : ffffffff87217028 t5 : ff600000195f4138 t6 : 1fec0000036c04bf status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] nft_set_pktinfo_ipv4 include/net/netfilter/nf_tables_ipv4.h:16 [inline] [] nft_do_chain_inet+0x2a6/0x316 net/netfilter/nft_chain_filter.c:152 [] 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