INFO: task syz.0.2192:9340 blocked for more than 430 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.2192 state:D stack:0 pid:9340 tgid:9338 ppid:3203 task_flags:0x400140 flags:0x00000003 Call Trace: [] context_switch kernel/sched/core.c:5325 [inline] [] __schedule+0x1042/0x4114 kernel/sched/core.c:6929 [] __schedule_loop kernel/sched/core.c:7011 [inline] [] schedule+0xc4/0x35e kernel/sched/core.c:7026 [] schedule_timeout+0x1c6/0x2ae kernel/time/sleep_timeout.c:75 [] do_wait_for_common kernel/sched/completion.c:100 [inline] [] __wait_for_common+0x1d2/0x3e8 kernel/sched/completion.c:121 [] wait_for_common kernel/sched/completion.c:132 [inline] [] wait_for_completion+0x1a/0x22 kernel/sched/completion.c:153 [] disable_device+0x1b2/0x2ba drivers/infiniband/core/device.c:1325 [] __ib_unregister_device+0x28e/0x402 drivers/infiniband/core/device.c:1555 [] ib_unregister_device_and_put+0x56/0x82 drivers/infiniband/core/device.c:1620 [] nldev_dellink+0x220/0x32c drivers/infiniband/core/nldev.c:1827 [] rdma_nl_rcv_msg+0x352/0x680 drivers/infiniband/core/netlink.c:195 [] rdma_nl_rcv_skb.constprop.0.isra.0+0x30a/0x406 drivers/infiniband/core/netlink.c:239 [] rdma_nl_rcv+0x1a/0x24 drivers/infiniband/core/netlink.c:259 [] netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] [] netlink_unicast+0x544/0x88a net/netlink/af_netlink.c:1346 [] netlink_sendmsg+0x850/0xdc8 net/netlink/af_netlink.c:1896 [] sock_sendmsg_nosec net/socket.c:727 [inline] [] __sock_sendmsg+0xcc/0x160 net/socket.c:742 [] ____sys_sendmsg+0x640/0x79e net/socket.c:2630 [] ___sys_sendmsg+0x144/0x1e6 net/socket.c:2684 [] __sys_sendmsg+0x188/0x246 net/socket.c:2716 [] __do_sys_sendmsg net/socket.c:2721 [inline] [] __se_sys_sendmsg net/socket.c:2719 [inline] [] __riscv_sys_sendmsg+0x70/0xa2 net/socket.c:2719 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:112 [] do_trap_ecall_u+0x39e/0x53a arch/riscv/kernel/traps.c:343 [] handle_exception+0x146/0x152 arch/riscv/kernel/entry.S:198 Showing all locks held in the system: 1 lock held by khungtaskd/38: #0: ffffffff885df120 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6771 2 locks held by syslogd/3011: 2 locks held by getty/3166: #0: ffffaf801d6d30a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ffff8f800008e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x3e4/0x12b6 drivers/tty/n_tty.c:2222 2 locks held by syz-executor/3196: 4 locks held by kworker/u10:4/4602: 3 locks held by kworker/u9:3/7730: #0: ffffaf806ecf3198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:638 [inline] #0: ffffaf806ecf3198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1546 [inline] #0: ffffaf806ecf3198 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1868 [inline] #0: ffffaf806ecf3198 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x310/0x4114 kernel/sched/core.c:6833 #1: ffffaf806ecdd610 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:220 [inline] #1: ffffaf806ecdd610 (psi_seq){-.-.}-{0:0}, at: __schedule+0x1408/0x4114 kernel/sched/core.c:6923 #2: ffffaf806ecdf058 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x156/0x1f4 kernel/time/timer.c:1004 2 locks held by kworker/1:1/9202: 2 locks held by syz.0.2192/9340: #0: ffffffff912ae678 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_msg+0x172/0x680 drivers/infiniband/core/netlink.c:164 #1: ffffaf8032184700 (&device->unregistration_lock){+.+.}-{4:4}, at: __ib_unregister_device+0x200/0x402 drivers/infiniband/core/device.c:1551 1 lock held by syz-executor/9362: 3 locks held by syz.1.2278/9895: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 38 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT 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+0x12a/0x1a2 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/0x45a lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3c arch/riscv/kernel/smp.c:350 [] trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:332 [inline] [] watchdog+0xf58/0x11ac kernel/hung_task.c:495 [] kthread+0x39c/0x7d6 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xbc6 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:328 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 8948 Comm: kworker/u10:1 Not tainted syzkaller #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) Workqueue: events_unbound toggle_allocation_gate epc : __might_sleep+0x0/0xca kernel/sched/core.c:8842 ra : __mutex_lock_common kernel/locking/mutex.c:575 [inline] ra : __mutex_lock+0xf4/0x19b4 kernel/locking/mutex.c:760 epc : ffffffff8021702c ra : ffffffff86491b80 sp : ffff8f8002bd7590 gp : ffffffff89eb7800 tp : ffffaf8030fcb500 t0 : ffff8f8007b26ec0 t1 : fffffffef221c6f4 t2 : ffff8f8007b27320 s0 : ffff8f8002bd7770 s1 : ffffffff8849d540 a0 : ffffffff86a49000 a1 : 000000000000023f a2 : 0000000000000000 a3 : 0000000000000000 a4 : ffffffff80091fd6 a5 : 0000000000000001 a6 : fffffffff3f3f3f3 a7 : fffffffff200f1f1 s2 : ffff8f8002bd7700 s3 : 0000000000000000 s4 : 0000000000000000 s5 : ffff8f8002bd7690 s6 : ffffffff89fc4160 s7 : dfffffff00000000 s8 : 0000000000000002 s9 : ffffffffffffffff s10: ffff8f8002bd7670 s11: 0000000000000000 t3 : 7a2d786400000000 t4 : fffffffef221c6f4 t5 : fffffffef221c6f5 t6 : 0000000000000002 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] preempt_count include/asm-generic/preempt.h:11 [inline] [] print_preempt_disable_ip kernel/sched/core.c:8863 [inline] [] __might_sleep+0x0/0xca kernel/sched/core.c:8922 [] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:812 [] arch_jump_label_transform_queue+0x192/0x312 arch/riscv/kernel/jump_label.c:44 [] __jump_label_update+0x11c/0x3ee kernel/jump_label.c:513 [] jump_label_update+0x322/0x52c kernel/jump_label.c:919 [] static_key_enable_cpuslocked+0x1e0/0x286 kernel/jump_label.c:210 [] static_key_enable+0x22/0x34 kernel/jump_label.c:223 [] toggle_allocation_gate mm/kfence/core.c:852 [inline] [] toggle_allocation_gate+0x11c/0x26c mm/kfence/core.c:844 [] process_one_work+0x96a/0x1f3a kernel/workqueue.c:3263 [] process_scheduled_works kernel/workqueue.c:3346 [inline] [] worker_thread+0x5ce/0xde8 kernel/workqueue.c:3427 [] kthread+0x39c/0x7d6 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xbc6 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:328