INFO: task kworker/u10:1:23347 blocked for more than 430 seconds. Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u10:1 state:D stack:0 pid:23347 tgid:23347 ppid:2 flags:0x00000000 Workqueue: events_unbound bpf_map_free_deferred 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 [] rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 [] dev_map_free+0x11c/0x6b8 kernel/bpf/devmap.c:214 [] bpf_map_free kernel/bpf/syscall.c:744 [inline] [] bpf_map_free_deferred+0x21e/0x46a kernel/bpf/syscall.c:768 [] 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 khungtaskd/37: #0: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 2 locks held by klogd/2998: 2 locks held by getty/3147: #0: ff6000001c2b90a0 (&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 6 locks held by kworker/1:1/18122: #0: ff600000136bdd48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000003877c90 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ff6000001bf6b190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ff6000001bf6b190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1bc/0x48a4 drivers/usb/core/hub.c:5849 #3: ff6000003f104190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #3: ff6000003f104190 (&dev->mutex){....}-{3:3}, at: usb_disconnect+0x108/0x8a2 drivers/usb/core/hub.c:2295 #4: ff6000002c441160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ff6000002c441160 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ff6000002c441160 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x572 drivers/base/dd.c:1293 #5: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 2 locks held by kworker/0:4/22250: 3 locks held by kworker/u10:1/23347: #0: ff60000011071148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000002d07c90 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 5 locks held by kworker/0:7/23464: 2 locks held by kworker/0:9/23495: 7 locks held by syz-executor/23560: #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff6000001d586888 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001b4d83c8 (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: ff6000003ce090e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ff6000003ce090e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ff6000003ce090e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x572 drivers/base/dd.c:1293 #5: ff6000003ce0a250 (&devlink->lock_key#31){+.+.}-{3:3}, at: devl_lock+0x22/0x2c net/devlink/core.c:276 #6: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 1 lock held by syz.1.879/23670: #0: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 4 locks held by syz-executor/23711: #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001bdda420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff6000002b73a488 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001b4d83c8 (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 1 CPU: 1 UID: 0 PID: 37 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #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: 23537 Comm: syz.0.872 Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 Hardware name: riscv-virtio,qemu (DT) epc : __call_rcu_common.constprop.0+0x292/0x934 kernel/rcu/tree.c:3109 ra : __call_rcu_common.constprop.0+0x284/0x934 kernel/rcu/tree.c:3108 epc : ffffffff802e216a ra : ffffffff802e215c sp : ff20000000007450 gp : ffffffff897bea80 tp : ff6000001ace3480 t0 : ff200000000073d0 t1 : 0000000000000005 t2 : 000000000000000e s0 : ff200000000074d0 s1 : ff6000006ec2ebc0 a0 : 0000000000000000 a1 : ffffffff8643e620 a2 : 0000000000000003 a3 : 0000000000000101 a4 : 0000000000000001 a5 : 0000000000000000 a6 : 0000000000f00000 a7 : ffffffffb954e376 s2 : ff60000041aa6400 s3 : ff6000006ec2eca8 s4 : 1fec00000dd85d9b s5 : 0000000000000002 s6 : 1fec00000dd85d95 s7 : ff6000006ec2ec60 s8 : ff6000006ec2ecd8 s9 : 0000000000040cf2 s10: ffffffff87fdc080 s11: 1fec000003481b75 t3 : 1fec00000359c7f3 t4 : 0000000000000004 t5 : b7813bd8ef2efd39 t6 : 1fec00000359c802 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] __call_rcu_common.constprop.0+0x292/0x934 kernel/rcu/tree.c:3108 [] call_rcu+0xc/0x14 kernel/rcu/tree.c:3190 [] slab_free_hook mm/slub.c:2307 [inline] [] slab_free mm/slub.c:4580 [inline] [] kmem_cache_free+0x43e/0x5f4 mm/slub.c:4682 [] nf_conntrack_free+0x10c/0x4a4 net/netfilter/nf_conntrack_core.c:1735 [] nf_ct_destroy+0x176/0x272 net/netfilter/nf_conntrack_core.c:598 [] nf_ct_put include/net/netfilter/nf_conntrack.h:186 [inline] [] nf_ct_put include/net/netfilter/nf_conntrack.h:183 [inline] [] nf_conntrack_in+0x728/0x1b28 net/netfilter/nf_conntrack_core.c:2061 [] ipv4_conntrack_in+0x20/0x2e net/netfilter/nf_conntrack_proto.c:207 [] 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_rcv+0x20e/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 kernel/softirq.c:588 [inline] [] invoke_softirq kernel/softirq.c:428 [inline] [] __irq_exit_rcu+0x188/0x372 kernel/softirq.c:637 [] irq_exit_rcu+0x10/0xf8 kernel/softirq.c:649 [] handle_riscv_irq+0x40/0x4c arch/riscv/kernel/traps.c:378 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:355