INFO: task syz.5.304:7913 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.304       state:D stack:17384 pid:7913  tgid:7912  ppid:6752   task_flags:0x440140 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __bch2_two_state_lock+0x1ea/0x370
 bch2_readahead+0x94f/0x1100
 read_pages+0x17a/0x580
 page_cache_ra_order+0x8ca/0xd40
 filemap_get_pages+0x468/0x1de0
 filemap_splice_read+0x581/0xc60
 splice_direct_to_actor+0x4a9/0xcc0
 do_splice_direct+0x181/0x270
 do_sendfile+0x4da/0x7e0
 __se_sys_sendfile64+0x13e/0x190
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff0b718eba9
RSP: 002b:00007ff0b53f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007ff0b73d5fa0 RCX: 00007ff0b718eba9
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007
RBP: 00007ff0b7211e19 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000e0000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff0b73d6038 R14: 00007ff0b73d5fa0 R15: 00007ffd6940c2a8
 </TASK>
INFO: task syz.5.304:7944 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.304       state:D stack:24648 pid:7944  tgid:7912  ppid:6752   task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 io_schedule+0x80/0xd0
 folio_wait_bit_common+0x6b0/0xb90
 bch2_mark_pagecache_unallocated+0x3a2/0x920
 bch2_remap_file_range+0x92c/0xd10
 vfs_copy_file_range+0xd81/0x1370
 __se_sys_copy_file_range+0x2fb/0x470
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff0b718eba9
RSP: 002b:00007ff0b53d5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146
RAX: ffffffffffffffda RBX: 00007ff0b73d6090 RCX: 00007ff0b718eba9
RDX: 0000000000000008 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007ff0b7211e19 R08: fffffbffa003e45b R09: 0700000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff0b73d6128 R14: 00007ff0b73d6090 R15: 00007ffd6940c2a8
 </TASK>

Showing all locks held in the system:
6 locks held by kworker/0:1/10:
1 lock held by khungtaskd/34:
 #0: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
1 lock held by udevd/5293:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
2 locks held by getty/5670:
 #0: ffff888106ccd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000291b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
1 lock held by udevd/6721:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
1 lock held by syz.5.304/7913:
 #0: ffff888111e7bf28 (mapping.invalidate_lock#7){.+.+}-{4:4}, at: page_cache_ra_order+0x318/0xd40
3 locks held by syz.5.304/7944:
 #0: ffff888107754420 (sb_writers#15){.+.+}-{0:0}, at: vfs_copy_file_range+0x9a1/0x1370
 #1: ffff88802b893d88 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: lock_two_nondirectories+0xe7/0x180
 #2: ffff888111e7bd88 (&sb->s_type->i_mutex_key#23/4){+.+.}-{4:4}, at: bch2_remap_file_range+0x2b0/0xd10

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 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+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf60/0xfa0
 kthread+0x711/0x8a0
 ret_from_fork+0x47f/0x820
 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: 3578 Comm: kworker/u10:5 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: events_unbound toggle_allocation_gate
RIP: 0010:check_preemption_disabled+0x17/0x120
Code: 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 56 53 48 83 ec 10 65 48 8b 05 ce 74 40 07 48 89 44 24 08 <65> 8b 05 d6 74 40 07 65 8b 0d cb 74 40 07 f7 c1 ff ff ff 7f 74 23
RSP: 0018:ffffc9000883f590 EFLAGS: 00000286
RAX: 611428069803a000 RBX: 00002aaaaaaab000 RCX: 0000000000000000
RDX: ffff888108201d00 RSI: ffffffff8c036560 RDI: ffffffff8c036520
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff82103a09
R10: dffffc0000000000 R11: fffff94000010c61 R12: ffffffff8218c020
R13: fffffffffffffeff R14: ffff88801a881aa8 R15: ffffc9000883f658
FS:  0000000000000000(0000) GS:ffff8880b83ed000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555615f35c8 CR3: 000000000e138000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 rcu_is_watching+0x15/0xb0
 ___pte_offset_map+0x62/0x250
 __pte_offset_map_lock+0x46/0x210
 __text_poke+0x2e6/0xa10
 smp_text_poke_batch_finish+0xd0f/0x1130
 arch_jump_label_transform_apply+0x1c/0x30
 static_key_disable_cpuslocked+0xc5/0x1b0
 static_key_disable+0x1a/0x20
 toggle_allocation_gate+0x1a1/0x240
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x47f/0x820
 ret_from_fork_asm+0x1a/0x30
 </TASK>
