INFO: task syz.4.441:5944 blocked for more than 145 seconds. Not tainted 6.1.103-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.441 state:D stack:0 pid:5944 ppid:4294 flags:0x00000001 Call trace: __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553 context_switch kernel/sched/core.c:5241 [inline] __schedule+0xef4/0x1d44 kernel/sched/core.c:6558 schedule+0xc4/0x170 kernel/sched/core.c:6634 io_schedule+0x8c/0x188 kernel/sched/core.c:8786 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1296 __folio_lock+0x2c/0x3c mm/filemap.c:1659 lock_page include/linux/pagemap.h:995 [inline] btrfs_page_mkwrite+0x594/0xcac fs/btrfs/inode.c:8592 do_page_mkwrite+0x144/0x37c mm/memory.c:2992 wp_page_shared+0x148/0x550 mm/memory.c:3341 do_wp_page+0xcbc/0xf44 mm/memory.c:3491 handle_pte_fault mm/memory.c:5031 [inline] __handle_mm_fault mm/memory.c:5155 [inline] handle_mm_fault+0x1a20/0x3ef0 mm/memory.c:5276 __do_page_fault arch/arm64/mm/fault.c:499 [inline] do_page_fault+0x330/0x890 arch/arm64/mm/fault.c:583 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:803 el0_da+0x70/0x184 arch/arm64/kernel/entry-common.c:515 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 INFO: task syz.4.441:5946 blocked for more than 145 seconds. Not tainted 6.1.103-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.441 state:D stack:0 pid:5946 ppid:4294 flags:0x00000009 Call trace: __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553 context_switch kernel/sched/core.c:5241 [inline] __schedule+0xef4/0x1d44 kernel/sched/core.c:6558 schedule+0xc4/0x170 kernel/sched/core.c:6634 wait_on_state fs/btrfs/extent-io-tree.c:709 [inline] wait_extent_bit+0x3e8/0x530 fs/btrfs/extent-io-tree.c:742 lock_extent+0x160/0x1fc fs/btrfs/extent-io-tree.c:1657 btrfs_page_mkwrite+0x614/0xcac fs/btrfs/inode.c:8602 do_page_mkwrite+0x144/0x37c mm/memory.c:2992 wp_page_shared+0x148/0x550 mm/memory.c:3341 do_wp_page+0xcbc/0xf44 mm/memory.c:3491 handle_pte_fault mm/memory.c:5031 [inline] __handle_mm_fault mm/memory.c:5155 [inline] handle_mm_fault+0x1a20/0x3ef0 mm/memory.c:5276 __do_page_fault arch/arm64/mm/fault.c:499 [inline] do_page_fault+0x330/0x890 arch/arm64/mm/fault.c:583 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:803 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:367 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:427 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:580 __arch_copy_to_user+0x88/0x234 arch/arm64/lib/copy_template.S:90 emit_last_fiemap_cache fs/btrfs/extent_io.c:3595 [inline] extent_fiemap+0x1718/0x1b1c fs/btrfs/extent_io.c:4126 btrfs_fiemap+0x154/0x1c0 fs/btrfs/inode.c:8274 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x194c/0x26f8 fs/ioctl.c:810 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Showing all locks held in the system: 2 locks held by kworker/u4:1/11: #0: ffff0001b4336158 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline] #0: ffff0001b4336158 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1355 [inline] #0: ffff0001b4336158 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1645 [inline] #0: ffff0001b4336158 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2c4/0x1d44 kernel/sched/core.c:6474 #1: ffff0001b4322b88 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3c0/0x618 kernel/sched/psi.c:1001 1 lock held by rcu_tasks_kthre/12: #0: ffff800015b95030 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516 1 lock held by rcu_tasks_trace/13: #0: ffff800015b95830 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516 1 lock held by khungtaskd/28: #0: ffff800015b94e60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349 2 locks held by getty/4053: #0: ffff0000d5ff2098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80001be902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2198 2 locks held by kworker/1:14/5497: #0: ffff0000c0021938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 kernel/workqueue.c:2265 #1: ffff80001deb7c20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 kernel/workqueue.c:2267 3 locks held by syz.4.441/5944: #0: ffff0000c96e6148 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #0: ffff0000c96e6148 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5304 [inline] #0: ffff0000c96e6148 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x38/0x2e8 mm/memory.c:5366 #1: ffff0000dbf9e558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x144/0x37c mm/memory.c:2992 #2: ffff0000f2c564a8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4bc/0xcac fs/btrfs/inode.c:8591 4 locks held by syz.4.441/5946: #0: ffff0000f2c56620 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff0000f2c56620 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: btrfs_inode_lock+0x68/0xe0 fs/btrfs/inode.c:147 #1: ffff0000c96e6148 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #1: ffff0000c96e6148 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5304 [inline] #1: ffff0000c96e6148 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x38/0x2e8 mm/memory.c:5366 #2: ffff0000dbf9e558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x144/0x37c mm/memory.c:2992 #3: ffff0000f2c564a8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4bc/0xcac fs/btrfs/inode.c:8591 5 locks held by kworker/u4:19/7713: #0: ffff0000c0845138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 kernel/workqueue.c:2265 #1: ffff80001e257c20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 kernel/workqueue.c:2267 #2: ffff800017fd7a10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf4/0x994 net/core/net_namespace.c:566 #3: ffff800017fe3848 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74 #4: ffff800015b9a438 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #4: ffff800015b9a438 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3e0/0x77c kernel/rcu/tree_exp.h:962 1 lock held by syz-executor/8403: #0: ffff0000f552a0e0 (&type->s_umount_key#49){+.+.}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362 2 locks held by syz.1.1203/9039: =============================================