INFO: task kworker/0:2:897 blocked for more than 143 seconds. Not tainted 6.2.0-next-20230303-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:2 state:D stack:27288 pid:897 ppid:2 flags:0x00004000 Workqueue: gfs_recovery gfs2_recover_func Call Trace: context_switch kernel/sched/core.c:5305 [inline] __schedule+0x24b4/0x5ac0 kernel/sched/core.c:6623 schedule+0xde/0x1a0 kernel/sched/core.c:6699 io_schedule+0xbe/0x130 kernel/sched/core.c:8885 folio_wait_bit_common+0x394/0x9b0 mm/filemap.c:1301 folio_wait_locked include/linux/pagemap.h:1025 [inline] gfs2_jhead_process_page.isra.0+0x515/0x600 fs/gfs2/lops.c:476 gfs2_find_jhead+0xa0b/0xd00 fs/gfs2/lops.c:594 gfs2_recover_func+0x6ad/0x1e40 fs/gfs2/recovery.c:460 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor103:5082 blocked for more than 143 seconds. Not tainted 6.2.0-next-20230303-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor103 state:D stack:25672 pid:5082 ppid:5081 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5305 [inline] __schedule+0x24b4/0x5ac0 kernel/sched/core.c:6623 schedule+0xde/0x1a0 kernel/sched/core.c:6699 bit_wait+0x16/0xe0 kernel/sched/wait_bit.c:199 __wait_on_bit+0x64/0x180 kernel/sched/wait_bit.c:49 out_of_line_wait_on_bit+0xd9/0x110 kernel/sched/wait_bit.c:64 wait_on_bit include/linux/wait_bit.h:76 [inline] gfs2_recover_journal+0x135/0x150 fs/gfs2/recovery.c:577 init_journal fs/gfs2/ops_fstype.c:835 [inline] init_inodes+0x2140/0x2c80 fs/gfs2/ops_fstype.c:889 gfs2_fill_super+0x1a75/0x2b20 fs/gfs2/ops_fstype.c:1253 get_tree_bdev+0x444/0x760 fs/super.c:1294 gfs2_get_tree+0x4e/0x270 fs/gfs2/ops_fstype.c:1338 vfs_get_tree+0x8d/0x350 fs/super.c:1501 do_new_mount fs/namespace.c:3042 [inline] path_mount+0x1342/0x1e40 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f61b2c4293a RSP: 002b:00007ffd61679618 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f61b2c4293a RDX: 0000000020021140 RSI: 0000000020021180 RDI: 00007ffd61679630 RBP: 00007ffd61679630 R08: 00007ffd61679670 R09: 0000000000000002 R10: 0000000000010010 R11: 0000000000000282 R12: 0000000000000004 R13: 00005555565e42c0 R14: 0000000000010010 R15: 00007ffd61679670 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c7964f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c7961f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8c797040 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6495 2 locks held by kworker/0:2/897: #0: ffff888145e0f938 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888145e0f938 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888145e0f938 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888145e0f938 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:639 [inline] #0: ffff888145e0f938 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:666 [inline] #0: ffff888145e0f938 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: process_one_work+0x86d/0x1820 kernel/workqueue.c:2361 #1: ffffc900052dfda8 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1820 kernel/workqueue.c:2365 1 lock held by klogd/4434: #0: ffff8880b993c298 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:539 2 locks held by getty/4760: #0: ffff888028701098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 1 lock held by syz-executor103/5082: #0: ffff8880294540e0 (&type->s_umount_key#41/1){+.+.}-{3:3}, at: alloc_super+0x22e/0xb60 fs/super.c:228 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-next-20230303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x316/0x3e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x3a7/0x460 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe94/0x11e0 kernel/hung_task.c:379 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt+0x40/0x50 drivers/acpi/processor_idle.c:112