INFO: task syz.6.292:8114 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.292       state:D stack:13128 pid:8114  tgid:8113  ppid:7470   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x872/0xfe0
 down_write+0x1ab/0x1f0
 bch2_direct_write+0x192/0x2ce0
 bch2_write_iter+0x18f/0x2b90
 iter_file_splice_write+0x975/0x10e0
 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:0x7f6fa2d8ebe9
RSP: 002b:00007f6fa3b83038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f6fa2fc5fa0 RCX: 00007f6fa2d8ebe9
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007f6fa2e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6fa2fc6038 R14: 00007f6fa2fc5fa0 R15: 00007ffde7922a48
 </TASK>
INFO: task syz.6.292:8142 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.292       state:D
 stack:19720 pid:8142  tgid:8113  ppid:7470   task_flags:0x400040 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x872/0xfe0
 down_write+0x1ab/0x1f0
 bch2_direct_write+0x192/0x2ce0
 bch2_write_iter+0x18f/0x2b90
 iter_file_splice_write+0x975/0x10e0
 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:0x7f6fa2d8ebe9
RSP: 002b:00007f6fa3b62038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f6fa2fc6090 RCX: 00007f6fa2d8ebe9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f6fa2e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6fa2fc6128 R14: 00007f6fa2fc6090 R15: 00007ffde7922a48
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/0:1/10:
 #0: ffff88812144e948 ((wq_completion)bcachefs_write_ref){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900000d7bc0 ((work_completion)(&ca->discard_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
3 locks held by kworker/u9:0/26:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900001efbc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f538c48 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
1 lock held by khungtaskd/35:
 #0: ffffffff8e139f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by kworker/u9:2/52:
 #0: ffff888032b36948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007afbc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
3 locks held by kworker/u11:0/54:
 #0: ffff88803363e948 ((wq_completion)hci3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007cfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888122a5cdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
4 locks held by kworker/u10:4/3359:
 #0: ffff8881000e4148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900070d7bc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88811c95e0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
 #3: ffff888112f25120 (&inode->ei_update_lock){+.+.}-{4:4}, at: bch2_vfs_write_inode+0x6a/0xd0
2 locks held by getty/5679:
 #0: ffff8880296c20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900027c82f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
7 locks held by kworker/u8:4/5892:
 #0: ffff88801b2f7148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900037afbc0 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f52bdb0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x800
 #3: ffff88812498b0e8 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x10a/0x3d0
 #4: ffff88812498e250 (&devlink->lock_key#18){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x11c/0x3d0
 #5: ffffffff8f538c48 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0xe5/0x670
 #6: ffffffff8e13f9b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
2 locks held by kworker/u8:5/6809:
2 locks held by syz.6.292/8114:
 #0: ffff88811c95e428 (sb_writers#14){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x160
 #1: ffff888112f24d38 (&sb->s_type->i_mutex_key#22){++++}-{4:4}, at: bch2_direct_write+0x192/0x2ce0
2 locks held by syz.6.292/8142:
 #0: ffff88811c95e428 (sb_writers#14){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x160
 #1: ffff888112f24d38 (&sb->s_type->i_mutex_key#22){++++}-{4:4}, at: bch2_direct_write+0x192/0x2ce0
3 locks held by syz.6.292/8143:
 #0: ffff88811c95e428 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888112f24d38 (&sb->s_type->i_mutex_key#22){++++}-{4:4}, at: do_truncate+0x171/0x220
 #2: ffff88812d000a50 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0xeb/0x200
1 lock held by syz-executor/9639:
 #0: ffff88811237a0e0 (&type->s_umount_key#80){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
2 locks held by syz.3.677/10863:
 #0: ffff88811c95e0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
 #1: ffff88811c9587d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10
2 locks held by syz.3.677/10864:
 #0: ffff88811c95e0e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
 #1: ffff88811c9587d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10
1 lock held by syz.2.849/11805:
 #0: ffffffff8e13f9b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730

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

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+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: 11384 Comm: syz-executor 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:unwind_next_frame+0x5/0x2390
Code: e1 07 80 c1 03 38 c1 7c 92 48 89 df e8 24 5b b0 00 eb 88 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 <41> 57 41 56 41 55 41 54 53 48 81 ec 98 00 00 00 49 89 fe 48 bd 00
RSP: 0018:ffffc90007d3f5f8 EFLAGS: 00000202
RAX: 0000000000000001 RBX: ffffc90007d3f6c0 RCX: af2b69c60d686500
RDX: dffffc0000000000 RSI: ffffffff8184623c RDI: ffffc90007d3f608
RBP: ffffc90007d3f690 R08: ffffc90007d3f6d0 R09: 0000000000000006
R10: ffffc90007d3f658 R11: ffffffff81ac3aa0 R12: ffff888109200000
R13: 1ffff92000fa7eec R14: ffffffff81ac3aa0 R15: ffffc90007d3f608
FS:  000055555f170500(0000) GS:ffff8880b8618000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555c25fc0e10 CR3: 000000010db18000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __reset_page_owner+0x71/0x1f0
 __free_frozen_pages+0xbc4/0xd30
 vfree+0x25a/0x400
 kcov_close+0x28/0x50
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 do_exit+0x6b5/0x2300
 do_group_exit+0x21c/0x2d0
 get_signal+0x1286/0x1340
 arch_do_signal_or_restart+0x9a/0x750
 exit_to_user_mode_loop+0x75/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9fa238ff17
Code: Unable to access opcode bytes at 0x7f9fa238feed.
RSP: 002b:00007ffcbe36eab8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f9fa2411c05 RCX: 00007f9fa238ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffcbe36eb70
RBP: 00007ffcbe36eb70 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffcbe36fc60
R13: 00007f9fa2411c05 R14: 000000000004edf1 R15: 00007ffcbe370d30
 </TASK>
