INFO: task syz.3.185:7134 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.185       state:D stack:17448 pid:7134  tgid:7133  ppid:6248   task_flags:0x400140 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 io_schedule+0x80/0xd0
 folio_wait_bit_common+0x6b0/0xb90
 invalidate_inode_pages2_range+0x557/0xa80
 bch2_write_invalidate_inode_pages_range+0xc5/0x110
 bch2_direct_write+0x2a62/0x2ce0
 bch2_write_iter+0x18f/0x2b90
 iter_file_splice_write+0x9c9/0x10b0
 direct_splice_actor+0x101/0x160
 splice_direct_to_actor+0x5a8/0xcc0
 do_splice_direct+0x181/0x270
 do_sendfile+0x4da/0x7e0
 __se_sys_sendfile64+0x13e/0x190
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f93c478ebe9
RSP: 002b:00007f93c551c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f93c49b5fa0 RCX: 00007f93c478ebe9
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000007
RBP: 00007f93c4811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f93c49b6038 R14: 00007f93c49b5fa0 R15: 00007ffcb4a8d3e8
 </TASK>
INFO: task syz.3.185:7155 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.185       state:D stack:23392 pid:7155  tgid:7133  ppid:6248   task_flags:0x440040 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+0xb22/0x1ea0
 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/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f93c478ebe9
RSP: 002b:00007f93c29f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f93c49b6090 RCX: 00007f93c478ebe9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007f93c4811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000e3aa6ea R11: 0000000000000246 R12: 0000000000000000
R13: 00007f93c49b6128 R14: 00007f93c49b6090 R15: 00007ffcb4a8d3e8
 </TASK>

Showing all locks held in the system:
6 locks held by kworker/1:0/24:
 #0: ffff888105264548 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900001c7bc0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8880245b6198 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4a20
 #3: ffff888024638518 (&port_dev->status_lock){+.+.}-{4:4}, at: hub_event+0x21b8/0x4a20
 #4: ffff88801fb92568 (hcd->address0_mutex){+.+.}-{4:4}, at: hub_event+0x21e5/0x4a20
 #5: ffffffff8eddffd0 (ehci_cf_port_reset_rwsem){.+.+}-{4:4}, at: hub_port_reset+0x163/0x1750
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
5 locks held by kworker/u12:0/56:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffff88804b024008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #2: ffff888036e1e330 (&wp->writes_lock){..-.}-{3:3}, at: bch2_write_point_do_index_updates+0xad/0x570
 #3: ffffffff99afd388 (&____s->seqcount#2){----}-{0:0}, at: ktime_get+0x3e/0x1f0
 #4: ffff888036e4b148 (journal res){.+.+}-{0:0}, at: bch2_journal_res_get+0x6a9/0x8f0
2 locks held by getty/5680:
 #0: ffff888023a7a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000290e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
1 lock held by syz.3.185/7134:
 #0: ffff888136544428 (sb_writers#13){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x160
1 lock held by syz.3.185/7155:
 #0: ffff888031c5b810 (mapping.invalidate_lock#4){.+.+}-{4:4}, at: page_cache_ra_order+0x318/0xd40
1 lock held by bch-rebalance/l/7151:

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #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+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 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: 7151 Comm: bch-rebalance/l Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #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:unwind_next_frame+0x2d/0x2390
Code: fa 55 41 57 41 56 41 55 41 54 53 48 81 ec 98 00 00 00 49 89 fe 48 bd 00 00 00 00 00 fc ff df 48 8d 5f 48 48 89 d8 48 c1 e8 03 <48> 89 44 24 30 80 3c 28 00 74 08 48 89 df e8 b0 53 b0 00 48 89 5c
RSP: 0018:ffffc90002b164d8 EFLAGS: 00000a06
RAX: 1ffff92000562cbe RBX: ffffc90002b165f0 RCX: 3e719a445fc72100
RDX: dffffc0000000000 RSI: ffffffff822c78bd RDI: ffffc90002b165a8
RBP: dffffc0000000000 R08: ffffc90002b16670 R09: 0000000000000000
R10: ffffc90002b165f8 R11: ffffffff81ac3870 R12: ffff888020f25640
R13: 1ffff92000562ce0 R14: ffffc90002b165a8 R15: ffffc90002b165a8
FS:  0000000000000000(0000) GS:ffff8880b861c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f42229ff000 CR3: 000000000df36000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __set_page_owner+0x8d/0x4a0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 alloc_pages_noprof+0xa9/0x190
 bch2_bio_alloc_pages+0x36/0xc0
 __bch2_data_update_bios_init+0xef/0x460
 bch2_data_update_init+0x36b3/0x4900
 bch2_move_extent+0x690/0x1bb0
 do_rebalance_extent+0x8f0/0x1fe0
 bch2_rebalance_thread+0x126a/0x1f80
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
