INFO: task syz.0.3906:13402 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.3906 state:D stack:0 pid:13402 tgid:13401 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/33: #0: ffffffff885df1a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6771 2 locks held by syslogd/3011: 1 lock held by klogd/3015: 2 locks held by getty/3167: #0: ffffaf8018e3d0a0 (&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: 5 locks held by kworker/u8:2/8057: #0: ffffaf8011e89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1f3a kernel/workqueue.c:3238 #1: ffff8f8003bb7b70 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:220 [inline] #1: ffff8f8003bb7b70 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: __schedule+0x1408/0x4114 kernel/sched/core.c:6923 #2: ffffaf806ecfc058 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x156/0x1f4 kernel/time/timer.c:1004 #3: ffffffff91238100 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x130/0x33e lib/debugobjects.c:818 #4: ffffffff8849d5a8 (text_mutex){+.+.}-{4:4}, at: arch_jump_label_transform_queue+0x192/0x312 arch/riscv/kernel/jump_label.c:44 4 locks held by kworker/u8:1/11044: 4 locks held by kworker/u8:5/11547: 2 locks held by syz.0.3906/13402: #0: ffffffff912d58f8 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_msg+0x172/0x680 drivers/infiniband/core/netlink.c:164 #1: ffffaf8014ae8700 (&device->unregistration_lock){+.+.}-{4:4}, at: __ib_unregister_device+0x200/0x402 drivers/infiniband/core/device.c:1551 1 lock held by syz-executor/13445: 1 lock held by syz.2.4011/13997: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 33 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: 13445 Comm: syz-executor Not tainted syzkaller #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) epc : __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] epc : _raw_spin_unlock_irqrestore+0x36/0xd6 kernel/locking/spinlock.c:194 ra : __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] ra : _raw_spin_unlock_irqrestore+0x86/0xd6 kernel/locking/spinlock.c:194 epc : ffffffff86557adc ra : ffffffff86557b2c sp : ffff8f8002a473c0 gp : ffffffff89edc9e0 tp : ffffaf80127ab500 t0 : ffff8f8002a474e0 t1 : fffffffef224cb97 t2 : 0000000000000008 s0 : ffff8f8002a473e0 s1 : 0000000000000002 a0 : 0000000000000001 a1 : ffffffff87fa35f0 a2 : 0000000000000002 a3 : 0000000000000001 a4 : 0000000000000001 a5 : 0000000000000000 a6 : 0000000000000003 a7 : ffffffff91265cbb s2 : ffffffff91265cb8 s3 : dead000000000100 s4 : dead000000000122 s5 : dfffffff00000000 s6 : ffffffff91265cb0 s7 : ffffaf8037cfd800 s8 : 0000000000000000 s9 : 0000000000000000 s10: ffffaf8037cfdc00 s11: ffffaf8037cfd000 t3 : 3df1592f00000000 t4 : fffffffef224cb97 t5 : fffffffef224cb98 t6 : 0000000000000002 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] [] _raw_spin_unlock_irqrestore+0x36/0xd6 kernel/locking/spinlock.c:194 [] __debug_check_no_obj_freed lib/debugobjects.c:1108 [inline] [] debug_check_no_obj_freed+0x26a/0x4fe lib/debugobjects.c:1129 [] slab_free_hook mm/slub.c:2454 [inline] [] slab_free mm/slub.c:6611 [inline] [] kfree+0x240/0x76e mm/slub.c:6818 [] kvfree+0x28/0x32 mm/slub.c:7124 [] xt_free_table_info+0x166/0x284 net/netfilter/x_tables.c:1213 [] __do_replace+0x470/0xa64 net/ipv4/netfilter/ip_tables.c:1084 [] do_replace+0x32a/0x44a net/ipv4/netfilter/ip_tables.c:1141 [] do_ipt_set_ctl+0x39e/0x916 net/ipv4/netfilter/ip_tables.c:1635 [] nf_setsockopt+0x78/0xda net/netfilter/nf_sockopt.c:101 [] ip_setsockopt+0xd2/0xe6 net/ipv4/ip_sockglue.c:1424 [] tcp_setsockopt+0x8e/0xe0 net/ipv4/tcp.c:4142 [] sock_common_setsockopt+0x90/0xc0 net/core/sock.c:3912 [] do_sock_setsockopt+0x208/0x400 net/socket.c:2360 [] __sys_setsockopt+0x142/0x1e6 net/socket.c:2385 [] __do_sys_setsockopt net/socket.c:2391 [inline] [] __se_sys_setsockopt net/socket.c:2388 [inline] [] __riscv_sys_setsockopt+0xa6/0x114 net/socket.c:2388 [] 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