INFO: task kworker/u4:1:11 blocked for more than 143 seconds. Not tainted 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:1 state:D stack:25248 pid:11 ppid:2 flags:0x00004000 Workqueue: btrfs-endio-write btrfs_work_helper Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 schedule+0xe7/0x1b0 kernel/sched/core.c:6771 wait_on_state fs/btrfs/extent-io-tree.c:719 [inline] wait_extent_bit+0x578/0x670 fs/btrfs/extent-io-tree.c:763 lock_extent+0x104/0x190 fs/btrfs/extent-io-tree.c:1755 btrfs_finish_one_ordered+0xa6d/0x20b0 fs/btrfs/inode.c:3080 btrfs_work_helper+0x20b/0xba0 fs/btrfs/async-thread.c:314 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 INFO: task syz-executor.2:6558 blocked for more than 144 seconds. Not tainted 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:25712 pid:6558 ppid:5092 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 schedule+0xe7/0x1b0 kernel/sched/core.c:6771 btrfs_start_ordered_extent+0x406/0x6c0 fs/btrfs/ordered-data.c:803 btrfs_page_mkwrite+0x6ce/0x11e0 fs/btrfs/inode.c:8161 do_page_mkwrite+0x17a/0x380 mm/memory.c:2931 wp_page_shared mm/memory.c:3291 [inline] do_wp_page+0xc66/0x3420 mm/memory.c:3376 handle_pte_fault mm/memory.c:4994 [inline] __handle_mm_fault+0x1d1b/0x3e10 mm/memory.c:5119 handle_mm_fault+0x478/0xa00 mm/memory.c:5284 do_user_addr_fault+0x3d1/0x1000 arch/x86/mm/fault.c:1413 handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x15/0x70 arch/x86/lib/copy_user_64.S:44 Code: 8b 1c 24 4c 8b 64 24 08 48 83 c4 10 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 83 f9 40 73 40 83 f9 08 73 21 85 c9 74 0f 8a 06 <88> 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 66 66 2e 0f 1f 84 00 00 RSP: 0018:ffffc9000c33fb38 EFLAGS: 00050246 RAX: 0000000000000009 RBX: 0000000000000008 RCX: 0000000000000008 RDX: fffff52001867f73 RSI: ffffc9000c33fb90 RDI: 00000000200001c0 RBP: 00000000200001c0 R08: 0000000000000000 R09: fffff52001867f72 R10: ffffc9000c33fb97 R11: 0000000000000000 R12: ffffc9000c33fb90 R13: 00000000200001c8 R14: 0000000000000000 R15: ffff888067a0e800 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user lib/usercopy.c:41 [inline] _copy_to_user+0xa8/0xb0 lib/usercopy.c:34 copy_to_user include/linux/uaccess.h:191 [inline] btrfs_ioctl_start_sync+0xe3/0x1c0 fs/btrfs/ioctl.c:3141 btrfs_ioctl+0x1f6/0x5cf0 fs/btrfs/ioctl.c:4633 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd1a227cae9 RSP: 002b:00007fd1a2fce0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd1a239bf80 RCX: 00007fd1a227cae9 RDX: 00000000200001c0 RSI: 0000000080089418 RDI: 0000000000000005 RBP: 00007fd1a22c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd1a239bf80 R15: 00007fffaa9e27e8 INFO: task syz-executor.2:6595 blocked for more than 145 seconds. Not tainted 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:26688 pid:6595 ppid:5092 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 schedule+0xe7/0x1b0 kernel/sched/core.c:6771 wait_on_state fs/btrfs/extent-io-tree.c:719 [inline] wait_extent_bit+0x578/0x670 fs/btrfs/extent-io-tree.c:763 lock_extent+0x104/0x190 fs/btrfs/extent-io-tree.c:1755 btrfs_page_mkwrite+0x653/0x11e0 fs/btrfs/inode.c:8143 do_page_mkwrite+0x17a/0x380 mm/memory.c:2931 wp_page_shared mm/memory.c:3291 [inline] do_wp_page+0xc66/0x3420 mm/memory.c:3376 handle_pte_fault mm/memory.c:4994 [inline] __handle_mm_fault+0x1d1b/0x3e10 mm/memory.c:5119 handle_mm_fault+0x478/0xa00 mm/memory.c:5284 do_user_addr_fault+0x3d1/0x1000 arch/x86/mm/fault.c:1413 handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58 Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb RSP: 0018:ffffc9000c4ff720 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000000000038 RCX: 0000000000000038 RDX: fffff5200189fefb RSI: ffffc9000c4ff7a0 RDI: 0000000020000120 RBP: 0000000020000120 R08: 0000000000000000 R09: fffff5200189fefa R10: ffffc9000c4ff7d7 R11: 0000000000000000 R12: ffffc9000c4ff7a0 R13: 0000000020000158 R14: 0000000000000000 R15: 0000000000000000 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user lib/usercopy.c:41 [inline] _copy_to_user+0xa8/0xb0 lib/usercopy.c:34 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x232/0x380 fs/ioctl.c:145 emit_fiemap_extent+0x195/0x380 fs/btrfs/extent_io.c:2472 fiemap_process_hole+0x52d/0x620 fs/btrfs/extent_io.c:2730 extent_fiemap+0x12be/0x19f0 fs/btrfs/extent_io.c:2945 btrfs_fiemap+0xe4/0x160 fs/btrfs/inode.c:7815 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x339/0x1920 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x112/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd1a227cae9 RSP: 002b:00007fd1a2fad0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd1a239c050 RCX: 00007fd1a227cae9 RDX: 0000000020000100 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007fd1a22c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd1a239c050 R15: 00007fffaa9e27e8 Showing all locks held in the system: 3 locks held by kworker/u4:1/11: #0: ffff8880162e0938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605 #1: ffffc9000031fd80 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606 #2: ffff88801a73a498 (btrfs_ordered_extent){++++}-{0:0}, at: btrfs_finish_one_ordered+0x673/0x20b0 fs/btrfs/inode.c:3040 1 lock held by khungtaskd/28: #0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613 2 locks held by kworker/u4:10/3604: 2 locks held by getty/4792: #0: ffff88814bb460a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900020582f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc5/0x1480 drivers/tty/n_tty.c:2206 2 locks held by syz-executor.2/6558: #0: ffff88807a1ca2a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #0: ffff88807a1ca2a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5311 [inline] #0: ffff88807a1ca2a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x35/0x760 mm/memory.c:5371 #1: ffff888021b9e508 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x17a/0x380 mm/memory.c:2931 4 locks held by syz-executor.2/6595: #0: ffff888067a0e950 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888067a0e950 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: btrfs_inode_lock+0xf9/0x100 fs/btrfs/inode.c:369 #1: ffff88807a1ca2a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff88807a1ca2a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5311 [inline] #1: ffff88807a1ca2a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x35/0x760 mm/memory.c:5371 #2: ffff888021b9e508 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x17a/0x380 mm/memory.c:2931 #3: ffff888067a0e7d8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x6e4/0x11e0 fs/btrfs/inode.c:8132 1 lock held by syz-executor.1/7063: 1 lock held by syz-executor.5/7067: 1 lock held by syz-executor.3/7071: 2 locks held by syz-executor.4/7073: #0: ffff8880b993c758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558 #1: ffff8880b9928888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:999 2 locks held by syz-executor.2/7079: 2 locks held by syz-executor.0/7082: 1 lock held by syz-executor.3/7083: #0: ffff8880b993c758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558 1 lock held by syz-executor.4/7089: 2 locks held by syz-executor.5/7088: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 7084 Comm: syz-executor.3 Not tainted 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0033:0x7f5d454286f8 Code: 85 ed 74 33 66 0f 1f 44 00 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 47 0f b6 0c 08 45 84 c9 74 08 45 88 0c 00 49 8b 47 10 <48> 83 c0 01 49 89 47 10 83 e9 01 73 d3 41 81 fe 00 01 00 00 0f 85 RSP: 002b:00007f5d46184520 EFLAGS: 00000246 RAX: 00000000006a4f29 RBX: 00007f5d461845c0 RCX: 0000000000000050 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007f5d46184660 RBP: 0000000000000102 R08: 00007f5d3c3ff000 R09: 0000000000000000 R10: 0000000000000000 R11: 00007f5d461845d0 R12: 0000000000000001 R13: 00007f5d454ea4a0 R14: 0000000000000000 R15: 00007f5d46184660 FS: 00007f5d461856c0 GS: 0000000000000000