INFO: task kworker/u4:5:467 blocked for more than 143 seconds. Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:5 state:D stack:0 pid:467 ppid:2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-btrfs-4) Call trace: __switch_to+0x314/0x560 arch/arm64/kernel/process.c:556 context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1364/0x23b4 kernel/sched/core.c:6695 schedule+0xc4/0x170 kernel/sched/core.c:6771 io_schedule+0x8c/0x12c kernel/sched/core.c:9026 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1301 __folio_lock+0x2c/0x3c mm/filemap.c:1629 folio_lock include/linux/pagemap.h:1042 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2078 [inline] extent_writepages+0xa00/0x1f3c fs/btrfs/extent_io.c:2226 btrfs_writepages+0x28/0x38 fs/btrfs/inode.c:7821 do_writepages+0x2e8/0x570 mm/page-writeback.c:2553 __writeback_single_inode+0x148/0x146c fs/fs-writeback.c:1608 writeback_sb_inodes+0x718/0x1010 fs/fs-writeback.c:1899 __writeback_inodes_wb+0xec/0x234 fs/fs-writeback.c:1970 wb_writeback+0x408/0xfc0 fs/fs-writeback.c:2077 wb_check_background_flush fs/fs-writeback.c:2147 [inline] wb_do_writeback fs/fs-writeback.c:2235 [inline] wb_workfn+0xc00/0xf9c fs/fs-writeback.c:2262 process_one_work+0x694/0x1204 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2784 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 INFO: task syz-executor.0:6993 blocked for more than 143 seconds. Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:0 pid:6993 ppid:6130 flags:0x0000000d Call trace: __switch_to+0x314/0x560 arch/arm64/kernel/process.c:556 context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1364/0x23b4 kernel/sched/core.c:6695 schedule+0xc4/0x170 kernel/sched/core.c:6771 wait_on_state fs/btrfs/extent-io-tree.c:719 [inline] wait_extent_bit+0x4cc/0x620 fs/btrfs/extent-io-tree.c:763 lock_extent+0x18c/0x230 fs/btrfs/extent-io-tree.c:1755 btrfs_page_mkwrite+0x62c/0xcbc fs/btrfs/inode.c:8143 do_page_mkwrite+0x140/0x2dc mm/memory.c:2931 wp_page_shared mm/memory.c:3291 [inline] do_wp_page+0xb6c/0x2f4c mm/memory.c:3376 handle_pte_fault mm/memory.c:4994 [inline] __handle_mm_fault mm/memory.c:5119 [inline] handle_mm_fault+0x11b0/0x49fc mm/memory.c:5284 __do_page_fault arch/arm64/mm/fault.c:513 [inline] do_page_fault+0x4e8/0xa54 arch/arm64/mm/fault.c:626 do_translation_fault+0x94/0xc8 arch/arm64/mm/fault.c:710 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:846 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:398 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:458 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:590 __arch_copy_to_user+0x88/0x234 arch/arm64/lib/copy_template.S:90 emit_last_fiemap_cache fs/btrfs/extent_io.c:2506 [inline] extent_fiemap+0x16bc/0x1a44 fs/btrfs/extent_io.c:3033 btrfs_fiemap+0x154/0x1c0 fs/btrfs/inode.c:7815 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x1958/0x2704 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:857 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Showing all locks held in the system: 1 lock held by ksoftirqd/0/16: #0: ffff0001b418bd58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:558 [inline] #0: ffff0001b418bd58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1372 [inline] #0: ffff0001b418bd58 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1681 [inline] #0: ffff0001b418bd58 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2d8/0x23b4 kernel/sched/core.c:6612 1 lock held by khungtaskd/29: #0: ffff80008e513840 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:302 2 locks held by kworker/u4:4/264: 3 locks held by kworker/u4:5/467: #0: ffff0000c1c0e138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2603 #1: ffff800097967c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2605 #2: ffff00012e07e0e0 (&type->s_umount_key#60){++++}-{3:3}, at: super_trylock_shared+0x28/0xe4 fs/super.c:607 2 locks held by getty/5842: #0: ffff0000d27510a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff800094e502f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2206 2 locks held by kworker/0:3/6178: #0: ffff0000c0022938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2603 #1: ffff8000971f7c20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2605 3 locks held by kworker/0:4/6194: #0: ffff0000c0020d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2603 #1: ffff800097417c20 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2605 #2: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:78 4 locks held by syz-executor.0/6993: #0: ffff0000dd1b9830 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff0000dd1b9830 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: btrfs_inode_lock+0x68/0xe0 fs/btrfs/inode.c:369 #1: ffff0000c5663990 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_lock_killable+0x28/0x8c include/linux/mmap_lock.h:155 #2: ffff00012e07e508 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x140/0x2dc mm/memory.c:2931 #3: ffff0000dd1b96b8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4d4/0xcbc fs/btrfs/inode.c:8132 1 lock held by syz-executor.3/10957: #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:78 2 locks held by syz-executor.4/10940: #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:78 [inline] #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x704/0xdc0 net/core/rtnetlink.c:6439 #1: ffff80008e519178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffff80008e519178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3ac/0x728 kernel/rcu/tree_exp.h:992 1 lock held by syz-executor.4/10943: #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:78 [inline] #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x704/0xdc0 net/core/rtnetlink.c:6439 1 lock held by syz-executor.2/10951: #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: __netlink_dump_start+0x104/0x6fc net/netlink/af_netlink.c:2335 1 lock held by syz-executor.2/10952: #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: __netlink_dump_start+0x104/0x6fc net/netlink/af_netlink.c:2335 1 lock held by syz-executor.1/10958: #0: ffff800090d37728 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:78 =============================================