INFO: task kworker/u4:0:5172 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:0 state:D stack:22528 pid:5172 ppid:2 flags:0x00004000 Workqueue: btrfs-endio-write btrfs_work_helper Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 wait_extent_bit+0x50c/0x6a0 lock_extent+0x1bb/0x270 btrfs_finish_ordered_io+0x5de/0x1c50 btrfs_work_helper+0x43a/0xe90 process_one_work+0x96c/0x13e0 worker_thread+0xa63/0x1210 kthread+0x270/0x300 ret_from_fork+0x1f/0x30 INFO: task kworker/u4:1:5243 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:1 state:D stack:24000 pid:5243 ppid:2 flags:0x00004000 Workqueue: btrfs-endio-write btrfs_work_helper Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 wait_extent_bit+0x50c/0x6a0 lock_extent+0x1bb/0x270 btrfs_finish_ordered_io+0x5de/0x1c50 btrfs_work_helper+0x43a/0xe90 process_one_work+0x96c/0x13e0 worker_thread+0xa63/0x1210 kthread+0x270/0x300 ret_from_fork+0x1f/0x30 INFO: task syz-executor359:8085 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-executor359 state:D stack:23784 pid:8085 ppid:5118 flags:0x00004004 Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 btrfs_start_ordered_extent+0x4cd/0x760 btrfs_wait_ordered_range+0x152/0x260 btrfs_sync_file+0x5f8/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:0x7f7443d406c9 RSP: 002b:00007f7443ce3208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7443dc2788 RCX: 00007f7443d406c9 RDX: 0000000000000128 RSI: 0000000020004400 RDI: 0000000000000006 RBP: 00007f7443dc2780 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7443dc278c R13: 00007ffe553b460f R14: 00007f7443ce3300 R15: 0000000000022000 INFO: task syz-executor359:8103 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-executor359 state:D stack:24968 pid:8103 ppid:5118 flags:0x00004004 Call Trace: __schedule+0x13ca/0x43c0 schedule+0xc3/0x190 rwsem_down_read_slowpath+0x5ef/0x930 __down_read_common+0x54/0x290 btrfs_page_mkwrite+0x416/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:ffffc90005df7330 EFLAGS: 00050202 RAX: ffffffff8435f301 RBX: 00007fffffffefc8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffffc90005df73e0 RDI: 0000000020000120 RBP: ffffc90005df7488 R08: 0000000000000000 R09: fffff52000bbee83 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038 R13: ffffc90005df73e0 R14: 0000000020000120 R15: ffffc90005df73e0 _copy_to_user+0xed/0x130 fiemap_fill_next_extent+0x235/0x410 emit_fiemap_extent+0x242/0x3f0 fiemap_process_hole+0x32c/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:0x7f7443d406c9 RSP: 002b:00007f743c8c2208 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f7443dc2798 RCX: 00007f7443d406c9 RDX: 0000000020000100 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007f7443dc2790 R08: 00007f743c8c2700 R09: 0000000000000000 R10: 00007f743c8c2700 R11: 0000000000000246 R12: 00007f7443dc279c R13: 00007ffe553b460f R14: 00007f743c8c2300 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/4750: #0: ffff88802b963098 (&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:0/5172: #0: ffff888020ce5938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x7eb/0x13e0 #1: ffffc90003e9fd20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x835/0x13e0 #2: ffff88807b3de430 (btrfs_ordered_extent){++++}-{0:0}, at: btrfs_finish_ordered_io+0x33b/0x1c50 3 locks held by kworker/u4:1/5243: #0: ffff888020ce5938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x7eb/0x13e0 #1: ffffc90004877d20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x835/0x13e0 #2: ffff88807b3de430 (btrfs_ordered_extent){++++}-{0:0}, at: btrfs_finish_ordered_io+0x33b/0x1c50 4 locks held by syz-executor359/8085: #0: ffff88802150f9e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 #1: ffff888076a2a460 (sb_writers#10){.+.+}-{0:0}, at: vfs_write+0x27f/0xc50 #2: ffff888073643600 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 #3: ffff888073643488 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_inode_lock+0xc5/0xd0 3 locks held by syz-executor359/8103: #0: ffff8880754b4758 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x18d/0x880 #1: ffff888076a2a558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a1/0x600 #2: ffff888073643488 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x416/0xc90 ============================================= NMI backtrace for cpu 0 CPU: 0 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 75 Comm: kworker/u4:4 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_unbound toggle_allocation_gate RIP: 0010:lock_is_held_type+0x51/0x180 Code: b8 1e c1 03 00 0f 84 f0 00 00 00 65 8b 05 d7 99 6c 75 85 c0 0f 85 e1 00 00 00 65 4c 8b 2d 87 b9 6d 75 41 83 bd 34 0a 00 00 00 <0f> 85 cb 00 00 00 41 89 f6 49 89 ff 9c 8f 04 24 4c 8b 24 24 fa 48 RSP: 0018:ffffc90001577778 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff920002aeef8 RCX: 0000000080000001 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8cf26bc0 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffffbfff1cadb16 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90001577a40 R13: ffff8880189d3a80 R14: dffffc0000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056029596d000 CR3: 000000000cc8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock_sched_held+0x8b/0x110 lock_release+0x106/0xa70 __mutex_unlock_slowpath+0xe2/0x750 arch_jump_label_transform_queue+0x81/0xd0 __jump_label_update+0x177/0x3a0 static_key_disable_cpuslocked+0xce/0x1b0 static_key_disable+0x1a/0x20 toggle_allocation_gate+0x1a9/0x240 process_one_work+0x96c/0x13e0 worker_thread+0xa63/0x1210 kthread+0x270/0x300 ret_from_fork+0x1f/0x30