INFO: task kworker/1:2:805 blocked in I/O wait for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:2     state:D stack:24520 pid:805   tgid:805   ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: gfs2_recovery gfs2_recover_func
Call Trace:
 <TASK>
 __schedule+0x17db/0x58f0
 schedule+0x164/0x2b0
 io_schedule+0x7f/0xd0
 folio_wait_bit_common+0x836/0xbc0
 gfs2_jhead_process_page+0x17f/0x670
 gfs2_find_jhead+0xbe0/0xd20
 gfs2_recover_func+0x6bd/0x1f00
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.9.102:6946 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.102       state:D stack:24616 pid:6946  tgid:6944  ppid:6783   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17db/0x58f0
 schedule+0x164/0x2b0
 bit_wait+0x11/0xd0
 __wait_on_bit+0xac/0x300
 out_of_line_wait_on_bit+0x13b/0x190
 gfs2_recover_journal+0xda/0x140
 init_journal+0x1af4/0x2330
 init_inodes+0xdb/0x320
 gfs2_fill_super+0x1959/0x20d0
 get_tree_bdev_flags+0x430/0x4f0
 gfs2_get_tree+0x51/0x1e0
 vfs_get_tree+0x92/0x2a0
 do_new_mount+0x319/0xdc0
 __se_sys_mount+0x31d/0x420
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4d8d19f7ca
RSP: 002b:00007f4d8dfe9e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f4d8dfe9ee0 RCX: 00007f4d8d19f7ca
RDX: 0000200000037f40 RSI: 00002000000008c0 RDI: 00007f4d8dfe9ea0
RBP: 0000200000037f40 R08: 00007f4d8dfe9ee0 R09: 0000000001010084
R10: 0000000001010084 R11: 0000000000000246 R12: 00002000000008c0
R13: 00007f4d8dfe9ea0 R14: 0000000000037f7b R15: 0000200000000480
 </TASK>

Showing all locks held in the system:
locks held by pool_workqueue_/3: 1, on CPU#0:
 #0: ffffffff8fd62c68 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2d0/0x770
locks held by khungtaskd/36: 1, last CPU#1:
 #0: ffffffff8fd5c8a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by kworker/1:2/805: 2, on CPU#1:
 #0: ffff888169199140 ((wq_completion)gfs2_recovery){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004b87c40 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by getty/5426: 2, on CPU#0:
 #0: ffff88816049d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034932e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by syz.9.102/6946: 1, on CPU#1:
 #0: ffff8881a30cc0e8 (&type->s_umount_key#53/1){+.+.}-{4:4}, at: sget_fc+0x9d4/0x1a60
locks held by syz.5.513/11798: 2, last CPU#1:
 #0: ffff8881012fa460 (sb_writers#5){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8880200e14a0 (&sb->s_type->i_mutex_key#16){+.+.}-{4:4}, at: shmem_file_write_iter+0x7f/0x120
locks held by syz.3.518/11838: 2, last CPU#0:
 #0: ffff888120e3bb20 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2d/0x160
 #1: ffff888120e24408 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x57/0x7d0
locks held by syz.6.520/11847: 2, last CPU#1:
 #0: ffff8881012fa460 (sb_writers#5){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88816d6226b8 (&sb->s_type->i_mutex_key#16){+.+.}-{4:4}, at: shmem_file_write_iter+0x7f/0x120
locks held by rm/11864: 2, last CPU#1:
 #0: ffff8881b9af8f80 (&mm->mmap_lock){++++}-{4:4}, at: exit_mmap+0x1a4/0x9f0
 #1: ffffffff8fd5c8a0 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240

=============================================

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 36 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 nmi_cpu_backtrace+0x274/0x2d0
 nmi_trigger_cpumask_backtrace+0x17d/0x390
 sys_info+0x135/0x170
 watchdog+0xfd7/0x1030
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 16 Comm: pr/ttyS0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:io_serial_out+0x7c/0xc0
Code: 54 53 fc 44 89 f9 d3 e5 49 83 c6 40 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 0c 38 c4 fc 41 03 2e 89 d8 89 ea ee <5b> 41 5c 41 5e 41 5f 5d e9 47 82 78 06 cc 44 89 f9 80 e1 07 38 c1
RSP: 0018:ffffc90000157900 EFLAGS: 00000002
RAX: 0000000000000074 RBX: 0000000000000074 RCX: 0000000000000000
RDX: 00000000000003f8 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 00000000000003f8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: ffffffff8574b790 R12: dffffc0000000000
R13: 0000000000000074 R14: ffffffff9bd54e60 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8882a7cb6000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563e2c7e9e48 CR3: 0000000022efe000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __serial8250_console_fifo_write+0x1e6/0x3e0
 serial8250_console_write+0xaa1/0x1200
 nbcon_emit_next_record+0xef5/0x1a90
 nbcon_kthread_func+0x679/0x880
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
