INFO: task syz-executor.3:8644 blocked for more than 143 seconds. Not tainted 6.1.81-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:0 pid:8644 ppid:4276 flags:0x0000000d Call trace: __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553 context_switch kernel/sched/core.c:5245 [inline] __schedule+0xee4/0x1c98 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:3600 [inline] extent_fiemap+0x1718/0x1b1c fs/btrfs/extent_io.c:4131 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:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 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: 1 lock held by rcu_tasks_kthre/12: #0: ffff800015a04e70 (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: ffff800015a05670 (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: ffff800015a04ca0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:318 2 locks held by getty/3987: #0: ffff0000d5ffd098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80001bcb02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2188 4 locks held by syz-executor.3/8644: #0: ffff0000e2751920 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff0000e2751920 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: btrfs_inode_lock+0x68/0xe0 fs/btrfs/inode.c:147 #1: ffff0000cab96d48 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #1: ffff0000cab96d48 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5304 [inline] #1: ffff0000cab96d48 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x38/0x2e8 mm/memory.c:5366 #2: ffff00011e772558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x144/0x37c mm/memory.c:2992 #3: ffff0000e27517a8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4bc/0xcac fs/btrfs/inode.c:8591 1 lock held by syz-executor.0/11342: #0: ffff0000ccb80c78 (&hiddev->existancelock){+.+.}-{3:3}, at: hiddev_ioctl+0x160/0x259c drivers/hid/usbhid/hiddev.c:610 =============================================