INFO: task kworker/u4:12:25481 blocked for more than 143 seconds. Not tainted 6.2.0-rc6-syzkaller-00258-gdb27c22251e7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:12 state:D stack:20064 pid:25481 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-323) Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 io_schedule+0x8c/0x100 folio_wait_bit_common+0x7fe/0x1210 extent_writepages+0x8c4/0x1790 do_writepages+0x3a6/0x660 __writeback_single_inode+0x1a9/0x1550 writeback_sb_inodes+0x965/0x13b0 __writeback_inodes_wb+0x11b/0x260 wb_writeback+0x4ef/0x1040 wb_workfn+0xd72/0x1110 process_one_work+0x96c/0x13e0 worker_thread+0xa63/0x1210 kthread+0x270/0x300 ret_from_fork+0x1f/0x30 INFO: task syz-executor.2:4628 blocked for more than 143 seconds. Not tainted 6.2.0-rc6-syzkaller-00258-gdb27c22251e7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:25528 pid:4628 ppid:5099 flags:0x00004004 Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 io_schedule+0x8c/0x100 folio_wait_bit_common+0x7fe/0x1210 extent_writepages+0x8c4/0x1790 do_writepages+0x3a6/0x660 filemap_fdatawrite_wbc+0x125/0x180 filemap_flush+0x14c/0x1d0 btrfs_release_file+0x117/0x130 __fput+0x3b7/0x890 task_work_run+0x24a/0x300 exit_to_user_mode_loop+0xd1/0xf0 exit_to_user_mode_prepare+0xb1/0x140 syscall_exit_to_user_mode+0x54/0x2d0 do_syscall_64+0x4d/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc8e303df7b RSP: 002b:00007ffc0ca623f0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fc8e303df7b RDX: 0000001b31f20000 RSI: 0000001b31f23dd8 RDI: 0000000000000004 RBP: 00007fc8e31ad980 R08: 0000000000000000 R09: 00000000f2530024 R10: 00007ffc0cad9080 R11: 0000000000000293 R12: 0000000000152099 R13: 00007ffc0ca624f0 R14: 00007ffc0ca62510 R15: 0000000000000032 INFO: task syz-executor.2:4629 blocked for more than 144 seconds. Not tainted 6.2.0-rc6-syzkaller-00258-gdb27c22251e7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23656 pid:4629 ppid:5099 flags:0x00004004 Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 wait_extent_bit+0x50c/0x6a0 lock_extent+0x1bb/0x270 find_lock_delalloc_range+0x4c9/0x9a0 writepage_delalloc+0x1f1/0x590 __extent_writepage+0x952/0x1840 extent_writepages+0xbc6/0x1790 do_writepages+0x3a6/0x660 filemap_fdatawrite_wbc+0x125/0x180 filemap_fdatawrite_range+0x17b/0x200 start_ordered_ops+0xdb/0x210 btrfs_sync_file+0x450/0x1220 btrfs_do_write_iter+0xccc/0x1270 vfs_write+0x7dd/0xc50 ksys_write+0x17c/0x2a0 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc8e308c0c9 RSP: 002b:00007fc8e1bfe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8e31abf80 RCX: 00007fc8e308c0c9 RDX: 0000000000000128 RSI: 0000000020004400 RDI: 0000000000000006 RBP: 00007fc8e30e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc0ca6238f R14: 00007fc8e1bfe300 R15: 0000000000022000 INFO: task syz-executor.2:4699 blocked for more than 144 seconds. Not tainted 6.2.0-rc6-syzkaller-00258-gdb27c22251e7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:25016 pid:4699 ppid:5099 flags:0x00004004 Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 io_schedule+0x8c/0x100 folio_wait_bit_common+0x7fe/0x1210 btrfs_page_mkwrite+0x41e/0xc90 do_page_mkwrite+0x1a1/0x600 do_wp_page+0x506/0x3270 handle_mm_fault+0x2388/0x51c0 exc_page_fault+0x66a/0x880 asm_exc_page_fault+0x26/0x30 RIP: 0010:copy_user_short_string+0xd/0x40 Code: 74 0a 89 d1 f3 a4 89 c8 0f 01 ca c3 89 d0 0f 01 ca c3 01 ca eb e7 0f 1f 80 00 00 00 00 89 d1 83 e2 07 c1 e9 03 74 12 4c 8b 06 <4c> 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 89 d1 8a RSP: 0018:ffffc90003a8f3b0 EFLAGS: 00050202 RAX: ffffffff8435f301 RBX: 00007fffffffefc8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffffc90003a8f460 RDI: 0000000020000120 RBP: ffffc90003a8f510 R08: 0000000000000000 R09: fffff52000751e93 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038 R13: ffffc90003a8f460 R14: 0000000020000120 R15: ffffc90003a8f460 _copy_to_user+0xed/0x130 fiemap_fill_next_extent+0x235/0x410 fiemap_process_hole+0x5d6/0xb40 extent_fiemap+0xe42/0x2100 btrfs_fiemap+0x178/0x1e0 do_vfs_ioctl+0x194f/0x2a40 __se_sys_ioctl+0x81/0x160 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc8e308c0c9 RSP: 002b:00007fc8da7dd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc8e31ac050 RCX: 00007fc8e308c0c9 RDX: 0000000020000100 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007fc8e30e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc0ca6238f R14: 00007fc8da7dd300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf26e10 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xce0 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf27610 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xce0 1 lock held by khungtaskd/28: #0: ffffffff8cf26c40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4760: #0: ffff88814b718098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1630 3 locks held by kworker/u4:10/12842: 3 locks held by kworker/u4:12/25481: #0: ffff8881451cc938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7eb/0x13e0 #1: ffffc90004797d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x835/0x13e0 #2: ffff88802afe40e0 (&type->s_umount_key#52){++++}-{3:3}, at: trylock_super+0x1f/0xf0 2 locks held by syz-executor.2/4629: #0: ffff88801d9f19e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 #1: ffff88802afe4460 (sb_writers#16){.+.+}-{0:0}, at: vfs_write+0x27f/0xc50 3 locks held by syz-executor.2/4699: #0: ffff88802a438a18 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x18d/0x880 #1: ffff88802afe4558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a1/0x600 #2: ffff888072ef2ae8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x416/0xc90 2 locks held by syz-executor.5/4944: #0: ffff88802afe40e0 (&type->s_umount_key#52){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 #1: ffff88801f2027d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x26c/0xa60 2 locks held by syz-executor.5/5270: #0: ffff88802afe40e0 (&type->s_umount_key#52){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 #1: ffff88801f2027d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x26c/0xa60 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc6-syzkaller-00258-gdb27c22251e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: dump_stack_lvl+0x1b5/0x2a0 nmi_cpu_backtrace+0x47b/0x500 nmi_trigger_cpumask_backtrace+0x1d3/0x430 watchdog+0xf70/0xfb0 kthread+0x270/0x300 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5158 Comm: kworker/0:3 Not tainted 6.2.0-rc6-syzkaller-00258-gdb27c22251e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Workqueue: events_power_efficient gc_worker RIP: 0010:lock_acquire+0x202/0x600 Code: 9d 98 7e 45 31 c9 f7 c3 00 02 00 00 41 0f 94 c1 48 8b 7c 24 28 44 89 f6 8b 54 24 24 8b 4c 24 20 45 89 f8 6a 00 6a 00 ff 75 10 74 24 50 e8 35 05 00 00 48 83 c4 20 48 c7 c7 a0 98 ea 8a e8 f5 RSP: 0018:ffffc900042af968 EFLAGS: 00000006 RAX: 0000000000000000 RBX: 0000000000000246 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8cf26c40 RBP: ffffc900042afae0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000855f38 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561e60f193c8 CR3: 000000000cc8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire+0x2e/0x40 gc_worker+0x28c/0x1440 process_one_work+0x96c/0x13e0 worker_thread+0xa63/0x1210 kthread+0x270/0x300 ret_from_fork+0x1f/0x30