INFO: task syz.0.99:6352 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.99        state:D stack:19704 pid:6352  tgid:6351  ppid:5845   task_flags:0x400740 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x14ef/0x4fb0
 schedule+0x164/0x360
 io_schedule+0x7f/0xd0
 lock_metapage+0x1ff/0x400
 __get_metapage+0x49a/0xde0
 xtSplitPage+0x281/0x2150
 xtSplitUp+0x33c/0x1fc0
 xtInsert+0x452/0xf20
 extAlloc+0xad9/0x1020
 jfs_get_block+0x358/0xad0
 __block_write_begin_int+0x6c6/0x1910
 block_write_begin+0x8d/0x120
 jfs_write_begin+0x35/0x80
 generic_perform_write+0x2e2/0x8f0
 generic_file_write_iter+0x14a/0x680
 __kernel_write_iter+0x41e/0x880
 dump_user_range+0x8ba/0xc70
 elf_core_dump+0x34c2/0x3ad0
 coredump_write+0x11de/0x1980
 vfs_coredump+0x369e/0x4270
 get_signal+0x1107/0x1330
 arch_do_signal_or_restart+0xbc/0x830
 exit_to_user_mode_loop+0x86/0x480
 do_syscall_64+0x2b7/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: d563:0x7f34b3a15fa0
RSP: 0003:00007f34b3a15fa8 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 00007f34b365098e RCX: 00007f34b458b0d0
RDX: 0000000000000056 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000010 R09: 00007f34b3a15fa0
R10: 00000000b458b070 R11: ffffffff000015f0 R12: 00007f34b397c020
R13: 00007f34b3a15fd0 R14: 0000000000000056 R15: 000000000f4d8252
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/35:
 #0: ffffffff8e35a360 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/u10:2/41:
 #0: ffff8881626b0148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc90000b17bc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffff888113aa20e0 (&type->s_umount_key#80){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
 #3: ffff888020dd6fa8 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: jfs_commit_inode+0x1ca/0x530
2 locks held by getty/5667:
 #0: ffff888176a060a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000356b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0
4 locks held by syz.0.99/6352:
 #0: ffff888113aa2420 (sb_writers#19){.+.+}-{0:0}, at: vfs_coredump+0x369e/0x4270
 #1: ffff888020dd7358 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: generic_file_write_iter+0x11e/0x680
 #2: ffff888020dd6f18 (&jfs_ip->rdwrlock#2){++++}-{4:4}, at: jfs_get_block+0x153/0xad0
 #3: ffff888020dd6fa8 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: extAlloc+0x130/0x1020
2 locks held by poweroff/8643:
 #0: ffff888113aa20e0 (&type->s_umount_key#80){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88816a5f8820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}
, at: sync_inodes_sb+0x1c2/0xbd0
7 locks held by syz.2.751/9442:
 #0: ffffffff8e360c78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2d0/0x770
 #1: ffff88812103a918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #2: ffff888121024588 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #3: ffff88812103a918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #4: ffff888121024588 (psi_seq){-.-.}-{0:0}, at: psi_task_change+0xd4/0x340
 #5: ffff888102eaa018 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x7ea/0xf90
 #6: ffff888101790a68 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0x66/0x12a0

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 35 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+0x17a/0x300
 sys_info+0x135/0x170
 watchdog+0xf90/0xfe0
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 174 Comm: kworker/u9:3 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
Workqueue: btrfs-delalloc btrfs_work_helper
RIP: 0010:__lock_acquire+0x17b4/0x2cf0
Code: 39 14 48 8d 84 24 90 00 00 00 48 89 05 05 bc 38 14 31 ff 45 31 e4 4d 85 e4 4c 8b 6c 24 10 74 30 49 8b 44 24 30 48 85 c0 74 26 <48> 8b 40 10 48 83 c0 30 49 8b 0c 24 48 89 8c 24 d8 00 00 00 48 39
RSP: 0018:ffffc900034c6af0 EFLAGS: 00000082
RAX: ffffc900034c6b80 RBX: 00000000000003dd RCX: 00000000000001b1
RDX: ffffffff966a8a78 RSI: ffff888101790bf8 RDI: 00000000000003dd
RBP: 3bb564a513acfeac R08: ffffc900034c6ab8 R09: 0000000000000020
R10: ffff88810a158018 R11: ffffffff819f9f10 R12: ffffffff9675c938
R13: ffff888101790bf8 R14: ffff888101790000 R15: 00000000000001b0
FS:  0000000000000000(0000) GS:ffff88818e323000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31f08ff8 CR3: 0000000109624000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_acquire+0x106/0x330
 psi_write_begin+0xab/0x160
 psi_task_change+0xd4/0x340
 enqueue_task+0x3db/0x4b0
 ttwu_do_activate+0x1dc/0x860
 try_to_wake_up+0x720/0x12a0
 wake_page_function+0x176/0x450
 __wake_up_locked_key+0xe7/0x160
 folio_wake_bit+0xd9/0x200
 __process_folios_contig+0x3ca/0x550
 cow_file_range_inline+0x41d/0x490
 cow_file_range+0x382/0x1140
 run_delalloc_cow+0x7e/0x100
 submit_uncompressed_range+0x19a/0x5c0
 submit_compressed_extents+0x7ed/0x16d0
 btrfs_work_helper+0x564/0xbe0
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0x89f/0xd90
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30
 </TASK>
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
