INFO: task syz.1.7330:24328 blocked for more than 430 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.7330 state:D stack:0 pid:24328 tgid:24327 ppid:3274 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/36: #0: ffffffff885df120 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6771 1 lock held by kcompactd0/40: #0: ffffaf806ed15198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:638 [inline] #0: ffffaf806ed15198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1546 [inline] #0: ffffaf806ed15198 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1868 [inline] #0: ffffaf806ed15198 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x310/0x4114 kernel/sched/core.c:6833 2 locks held by getty/3163: #0: ffffaf801d87f0a0 (&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/3191: 2 locks held by syz.1.7330/24328: #0: ffffffff912ae678 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_msg+0x172/0x680 drivers/infiniband/core/netlink.c:164 #1: ffffaf80333b8700 (&device->unregistration_lock){+.+.}-{4:4}, at: __ib_unregister_device+0x200/0x402 drivers/infiniband/core/device.c:1551 4 locks held by syz-executor/24394: 2 locks held by syz.2.7370/24636: #0: ffffffff89a9cd70 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x26e/0x5fe net/core/net_namespace.c:576 #1: ffffaf80333b8700 (&device->unregistration_lock){+.+.}-{4:4}, at: rdma_dev_change_netns+0x3c/0x348 drivers/infiniband/core/device.c:1703 2 locks held by kworker/0:5/24813: 2 locks held by syz.4.7447/25350: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 36 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: 3015 Comm: klogd Not tainted syzkaller #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) epc : lock_is_held_type+0x146/0x1e8 kernel/locking/lockdep.c:5944 ra : lockdep_recursion_finish kernel/locking/lockdep.c:470 [inline] ra : lock_is_held_type+0x114/0x1e8 kernel/locking/lockdep.c:5941 epc : ffffffff8647d296 ra : ffffffff8647d264 sp : ffff8f8007786c30 gp : ffffffff89eb7800 tp : ffffaf801ccb0000 t0 : ffff8f8007786c40 t1 : fffff5ef03996120 t2 : 1ffff1f000ef0e28 s0 : ffff8f8007786c90 s1 : ffffffff912828a8 a0 : 0000000000000001 a1 : 0000000000000000 a2 : 0000000000000000 a3 : ffffffff8181f8ea a4 : 0000000000000000 a5 : 0000000000000000 a6 : 0000000000000003 a7 : ffffaf801ccb0900 s2 : ffffaf806ecff708 s3 : 0000000000000000 s4 : ffffaf801ccb1000 s5 : ffffffffffffffff s6 : 0000000000000002 s7 : ffffffff8685f708 s8 : ffffffff912828a0 s9 : 0000000000000000 s10: ffff8d8000f69500 s11: ffffaf8072fef0c0 t3 : 4b952e4d00000000 t4 : fffff5ef03996120 t5 : fffff5ef03996121 t6 : 0000000000000000 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] lock_is_held_type+0x146/0x1e8 kernel/locking/lockdep.c:5942 [] lock_is_held include/linux/lockdep.h:249 [inline] [] depot_fetch_stack+0x74/0xa6 lib/stackdepot.c:497 [] __stack_depot_get_stack_record+0xe/0x1e lib/stackdepot.c:749 [] inc_stack_record_count mm/page_owner.c:197 [inline] [] __set_page_owner+0x126/0x4a8 mm/page_owner.c:333 [] set_page_owner include/linux/page_owner.h:32 [inline] [] post_alloc_hook+0xdc/0x1ba mm/page_alloc.c:1850 [] prep_new_page mm/page_alloc.c:1858 [inline] [] get_page_from_freelist+0xdfc/0x3672 mm/page_alloc.c:3884 [] __alloc_frozen_pages_noprof+0x22e/0x2124 mm/page_alloc.c:5183 [] alloc_pages_mpol+0x1fa/0x5be mm/mempolicy.c:2416 [] alloc_frozen_pages_noprof+0x174/0x2f0 mm/mempolicy.c:2487 [] alloc_slab_page mm/slub.c:3039 [inline] [] allocate_slab mm/slub.c:3212 [inline] [] new_slab+0x2fe/0x3a4 mm/slub.c:3266 [] ___slab_alloc+0xc5e/0x15ee mm/slub.c:4636 [] __slab_alloc.constprop.0+0x72/0x118 mm/slub.c:4755 [] __slab_alloc_node mm/slub.c:4831 [inline] [] slab_alloc_node mm/slub.c:5253 [inline] [] __do_kmalloc_node mm/slub.c:5626 [inline] [] __kmalloc_node_track_caller_noprof+0x41c/0x934 mm/slub.c:5736 [] kmalloc_reserve+0xfe/0x2be net/core/skbuff.c:601 [] __alloc_skb+0x154/0x438 net/core/skbuff.c:670 [] alloc_skb include/linux/skbuff.h:1383 [inline] [] alloc_skb_with_frags+0xe2/0x838 net/core/skbuff.c:6671 [] sock_alloc_send_pskb+0x6e2/0x82a net/core/sock.c:2965 [] unix_dgram_sendmsg+0x370/0x1586 net/unix/af_unix.c:2153 [] sock_sendmsg_nosec net/socket.c:727 [inline] [] __sock_sendmsg+0xcc/0x160 net/socket.c:742 [] __sys_sendto+0x27a/0x34e net/socket.c:2244 [] __do_sys_sendto net/socket.c:2251 [inline] [] __se_sys_sendto net/socket.c:2247 [inline] [] __riscv_sys_sendto+0xc0/0x158 net/socket.c:2247 [] 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