INFO: task kworker/u4:16:6968 blocked for more than 143 seconds. Not tainted 6.3.0-rc6-syzkaller-g1f5b16c51aef #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:16 state:D stack:0 pid:6968 ppid:2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-7:4) Call trace: __switch_to+0x320/0x754 arch/arm64/kernel/process.c:556 context_switch kernel/sched/core.c:5307 [inline] __schedule+0x103c/0x1e2c kernel/sched/core.c:6625 schedule+0xc4/0x170 kernel/sched/core.c:6701 io_schedule+0x8c/0x120 kernel/sched/core.c:8887 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1301 __folio_lock+0x2c/0x3c mm/filemap.c:1664 folio_lock include/linux/pagemap.h:952 [inline] write_cache_pages+0x41c/0xce4 mm/page-writeback.c:2440 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1820 xfs_vm_writepages+0x134/0x198 fs/xfs/xfs_aops.c:513 do_writepages+0x2e8/0x570 mm/page-writeback.c:2551 __writeback_single_inode+0x148/0x1478 fs/fs-writeback.c:1600 writeback_sb_inodes+0x720/0xff8 fs/fs-writeback.c:1891 __writeback_inodes_wb+0xec/0x234 fs/fs-writeback.c:1962 wb_writeback+0x410/0xfc8 fs/fs-writeback.c:2067 wb_check_background_flush fs/fs-writeback.c:2133 [inline] wb_do_writeback fs/fs-writeback.c:2221 [inline] wb_workfn+0xc00/0xf9c fs/fs-writeback.c:2248 process_one_work+0x788/0x12d4 kernel/workqueue.c:2390 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2537 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 INFO: task syz-executor.4:4598 blocked for more than 143 seconds. Not tainted 6.3.0-rc6-syzkaller-g1f5b16c51aef #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:0 pid:4598 ppid:6031 flags:0x00000001 Call trace: __switch_to+0x320/0x754 arch/arm64/kernel/process.c:556 context_switch kernel/sched/core.c:5307 [inline] __schedule+0x103c/0x1e2c kernel/sched/core.c:6625 schedule+0xc4/0x170 kernel/sched/core.c:6701 xlog_grant_head_wait+0x390/0xa84 fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x218/0x3d8 xfs_log_reserve+0x388/0xbcc fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x1f4/0x5e0 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x428/0x920 fs/xfs/xfs_trans.c:283 xfs_trans_alloc_inode+0x114/0x404 fs/xfs/xfs_trans.c:1191 xfs_attr_set+0x8e8/0x13d0 fs/xfs/libxfs/xfs_attr.c:1024 xfs_attr_change fs/xfs/xfs_xattr.c:106 [inline] xfs_xattr_set+0x1a8/0x30c fs/xfs/xfs_xattr.c:151 __vfs_setxattr+0x3d8/0x400 fs/xattr.c:203 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:237 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:298 vfs_setxattr+0x1a8/0x344 fs/xattr.c:324 do_setxattr fs/xattr.c:609 [inline] setxattr+0x208/0x29c fs/xattr.c:632 path_setxattr+0x17c/0x258 fs/xattr.c:651 __do_sys_setxattr fs/xattr.c:667 [inline] __se_sys_setxattr fs/xattr.c:663 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:663 __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/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 INFO: task syz-executor.4:4631 blocked for more than 143 seconds. Not tainted 6.3.0-rc6-syzkaller-g1f5b16c51aef #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:0 pid:4631 ppid:6031 flags:0x00000001 Call trace: __switch_to+0x320/0x754 arch/arm64/kernel/process.c:556 context_switch kernel/sched/core.c:5307 [inline] __schedule+0x103c/0x1e2c kernel/sched/core.c:6625 schedule+0xc4/0x170 kernel/sched/core.c:6701 xlog_grant_head_wait+0x390/0xa84 fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x218/0x3d8 xfs_log_reserve+0x388/0xbcc fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x1f4/0x5e0 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x428/0x920 fs/xfs/xfs_trans.c:283 xfs_trans_alloc_icreate+0xc8/0x290 fs/xfs/xfs_trans.c:1246 xfs_create+0x514/0xed8 fs/xfs/xfs_inode.c:1002 xfs_generic_create+0x3c8/0xb10 fs/xfs/xfs_iops.c:199 xfs_vn_create+0x44/0x58 fs/xfs/xfs_iops.c:275 lookup_open fs/namei.c:3416 [inline] open_last_lookups fs/namei.c:3484 [inline] path_openat+0xf80/0x27f8 fs/namei.c:3712 do_filp_open+0x1bc/0x3cc fs/namei.c:3742 do_sys_openat2+0x128/0x3d8 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1375 __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/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 INFO: task syz-executor.4:4632 blocked for more than 143 seconds. Not tainted 6.3.0-rc6-syzkaller-g1f5b16c51aef #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:0 pid:4632 ppid:6031 flags:0x00000001 Call trace: __switch_to+0x320/0x754 arch/arm64/kernel/process.c:556 context_switch kernel/sched/core.c:5307 [inline] __schedule+0x103c/0x1e2c kernel/sched/core.c:6625 schedule+0xc4/0x170 kernel/sched/core.c:6701 xlog_grant_head_wait+0x390/0xa84 fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x218/0x3d8 xfs_log_reserve+0x388/0xbcc fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x1f4/0x5e0 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x428/0x920 fs/xfs/xfs_trans.c:283 xfs_bmapi_convert_delalloc+0x21c/0x10e8 fs/xfs/libxfs/xfs_bmap.c:4487 xfs_convert_blocks fs/xfs/xfs_aops.c:266 [inline] xfs_map_blocks+0x5fc/0xf30 fs/xfs/xfs_aops.c:389 iomap_writepage_map fs/iomap/buffered-io.c:1641 [inline] iomap_do_writepage+0x774/0x2468 fs/iomap/buffered-io.c:1803 write_cache_pages+0x66c/0xce4 mm/page-writeback.c:2473 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1820 xfs_vm_writepages+0x134/0x198 fs/xfs/xfs_aops.c:513 do_writepages+0x2e8/0x570 mm/page-writeback.c:2551 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] file_write_and_wait_range+0x1bc/0x2ac mm/filemap.c:781 xfs_file_fsync+0x1a4/0x97c fs/xfs/xfs_file.c:151 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2452 [inline] xfs_file_buffered_write+0x9c8/0xb38 fs/xfs/xfs_file.c:764 xfs_file_write_iter+0x2b4/0x604 fs/xfs/xfs_file.c:802 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x914 fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __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/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffff800015e4f0d0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffff800015e4f8d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffff800015e4ef00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:326 2 locks held by getty/5668: #0: ffff0000d3a12098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80001aad02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1210 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.5/6043: #0: ffff000150c460e0 (&type->s_umount_key#57){++++}-{3:3}, at: deactivate_super+0xd8/0x100 fs/super.c:361 2 locks held by kworker/u4:15/6967: #0: ffff0001b42c4818 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:539 [inline] #0: ffff0001b42c4818 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1366 [inline] #0: ffff0001b42c4818 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1653 [inline] #0: ffff0001b42c4818 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2bc/0x1e2c kernel/sched/core.c:6542 #1: ffff80001fa47c20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x12d4 kernel/workqueue.c:2365 3 locks held by kworker/u4:16/6968: #0: ffff0000c0e45938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x664/0x12d4 kernel/workqueue.c:2363 #1: ffff80001f9f7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x12d4 kernel/workqueue.c:2365 #2: ffff000130c740e0 (&type->s_umount_key#57){++++}-{3:3}, at: trylock_super+0x28/0xf8 fs/super.c:414 2 locks held by kworker/1:0/28196: #0: ffff0000d919ed38 ((wq_completion)xfs-sync/loop4){+.+.}-{0:0}, at: process_one_work+0x664/0x12d4 kernel/workqueue.c:2363 #1: ffff80002d077c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x12d4 kernel/workqueue.c:2365 3 locks held by syz-executor.4/4598: #0: ffff000130c74460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:394 #1: ffff000134ae1a78 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff000134ae1a78 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: vfs_setxattr+0x17c/0x344 fs/xattr.c:323 #2: ffff000130c74650 (sb_internal#3){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0x114/0x404 fs/xfs/xfs_trans.c:1191 3 locks held by syz-executor.4/4631: #0: ffff000130c74460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:394 #1: ffff000134a8c8f8 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff000134a8c8f8 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff000134a8c8f8 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: path_openat+0x5f0/0x27f8 fs/namei.c:3712 #2: ffff000130c74650 (sb_internal#3){.+.+}-{0:0}, at: xfs_trans_alloc_icreate+0xc8/0x290 fs/xfs/xfs_trans.c:1246 3 locks held by syz-executor.4/4632: #0: ffff0000d21894e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xd8/0x104 fs/file.c:1047 #1: ffff000130c74460 (sb_writers#16){.+.+}-{0:0}, at: vfs_write+0x244/0x914 fs/read_write.c:580 #2: ffff000130c74650 (sb_internal#3){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x21c/0x10e8 fs/xfs/libxfs/xfs_bmap.c:4487 2 locks held by syz-executor.0/7019: 2 locks held by syz-executor.4/7030: 2 locks held by syz-executor.1/7034: =============================================