INFO: task kworker/u4:1:11 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:1 state:D stack:0 pid:11 ppid:2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-7:3) Call trace: __switch_to+0x2f4/0x568 arch/arm64/kernel/process.c:555 context_switch kernel/sched/core.c:5244 [inline] __schedule+0xddc/0x1b18 kernel/sched/core.c:6561 schedule+0xc4/0x170 kernel/sched/core.c:6637 xlog_grant_head_wait+0x3b4/0xa9c fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x1b4/0x320 fs/xfs/xfs_log.c:-1 xfs_log_reserve+0x344/0xbb8 fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x1f0/0x5d4 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x42c/0x924 fs/xfs/xfs_trans.c:283 xfs_bmapi_convert_one_delalloc fs/xfs/libxfs/xfs_bmap.c:4571 [inline] xfs_bmapi_convert_delalloc+0x26c/0x1234 fs/xfs/libxfs/xfs_bmap.c:4698 xfs_map_blocks+0x78c/0x127c fs/xfs/xfs_aops.c:352 iomap_writepage_map fs/iomap/buffered-io.c:1619 [inline] iomap_do_writepage+0x7b0/0x21f8 fs/iomap/buffered-io.c:1782 write_cache_pages+0x73c/0xdd4 mm/page-writeback.c:2382 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1799 xfs_vm_writepages+0x130/0x194 fs/xfs/xfs_aops.c:477 do_writepages+0x2c0/0x4fc mm/page-writeback.c:2491 __writeback_single_inode+0x164/0x157c fs/fs-writeback.c:1622 writeback_sb_inodes+0x824/0x1404 fs/fs-writeback.c:1913 __writeback_inodes_wb+0x110/0x394 fs/fs-writeback.c:1984 wb_writeback+0x414/0xfb0 fs/fs-writeback.c:2089 wb_check_background_flush fs/fs-writeback.c:2155 [inline] wb_do_writeback fs/fs-writeback.c:2243 [inline] wb_workfn+0xac0/0xd98 fs/fs-writeback.c:2270 process_one_work+0x7f4/0x13a8 kernel/workqueue.c:2292 worker_thread+0x8c8/0xfbc kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 INFO: task syz.3.34:4587 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.34 state:D stack:0 pid:4587 ppid:4333 flags:0x0000000d Call trace: __switch_to+0x2f4/0x568 arch/arm64/kernel/process.c:555 context_switch kernel/sched/core.c:5244 [inline] __schedule+0xddc/0x1b18 kernel/sched/core.c:6561 schedule+0xc4/0x170 kernel/sched/core.c:6637 xlog_grant_head_wait+0x3b4/0xa9c fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x1b4/0x320 fs/xfs/xfs_log.c:-1 xfs_log_reserve+0x344/0xbb8 fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x1f0/0x5d4 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x42c/0x924 fs/xfs/xfs_trans.c:283 xfs_free_eofblocks+0x1b8/0x380 fs/xfs/xfs_bmap_util.c:751 xfs_release+0x1bc/0x35c fs/xfs/xfs_inode.c:1484 xfs_file_release+0x20/0x30 fs/xfs/xfs_file.c:1245 __fput+0x1bc/0x7c0 fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1ec/0x270 kernel/task_work.c:203 get_signal+0x1120/0x1310 kernel/signal.c:2648 do_signal arch/arm64/kernel/signal.c:1081 [inline] do_notify_resume+0x34c/0x2b28 arch/arm64/kernel/signal.c:1134 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x98/0x138 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 INFO: task syz.3.34:4650 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.34 state:D stack:0 pid:4650 ppid:4333 flags:0x00000001 Call trace: __switch_to+0x2f4/0x568 arch/arm64/kernel/process.c:555 context_switch kernel/sched/core.c:5244 [inline] __schedule+0xddc/0x1b18 kernel/sched/core.c:6561 schedule+0xc4/0x170 kernel/sched/core.c:6637 xlog_grant_head_wait+0x3b4/0xa9c fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x1b4/0x320 fs/xfs/xfs_log.c:-1 xfs_log_reserve+0x344/0xbb8 fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x1f0/0x5d4 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x42c/0x924 fs/xfs/xfs_trans.c:283 xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 xfs_attr_set+0x818/0x11f0 fs/xfs/libxfs/xfs_attr.c:1024 xfs_attr_change fs/xfs/xfs_xattr.c:106 [inline] xfs_xattr_set+0xe8/0x1c4 fs/xfs/xfs_xattr.c:151 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 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: 4 locks held by kworker/u4:1/11: #0: ffff0000c0c48938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x6b4/0x13a8 kernel/workqueue.c:2265 #1: ffff80001c887c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6f8/0x13a8 kernel/workqueue.c:2267 #2: ffff0000faaa00e0 (&type->s_umount_key#52){++++}-{3:3}, at: trylock_super+0x24/0xf4 fs/super.c:415 #3: ffff0000faaa0650 (sb_internal#2){.+.+}-{0:0}, at: xfs_bmapi_convert_one_delalloc fs/xfs/libxfs/xfs_bmap.c:4571 [inline] #3: ffff0000faaa0650 (sb_internal#2){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x26c/0x1234 fs/xfs/libxfs/xfs_bmap.c:4698 1 lock held by rcu_tasks_kthre/12: #0: ffff800015297870 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517 1 lock held by rcu_tasks_trace/13: #0: ffff800015298090 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517 1 lock held by khungtaskd/28: #0: ffff800015296f00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349 2 locks held by getty/4078: #0: ffff0000d6692098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80002068e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2ec/0xf9c drivers/tty/n_tty.c:2198 2 locks held by kworker/0:5/4504: #0: ffff0000f3b76538 ((wq_completion)xfs-sync/loop3){+.+.}-{0:0}, at: process_one_work+0x6b4/0x13a8 kernel/workqueue.c:2265 #1: ffff800021787c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6f8/0x13a8 kernel/workqueue.c:2267 2 locks held by syz.3.34/4587: #0: ffff0000f51eb978 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: xfs_ilock_nowait+0x13c/0x5a8 fs/xfs/xfs_inode.c:238 #1: ffff0000faaa0650 (sb_internal#2){.+.+}-{0:0}, at: xfs_free_eofblocks+0x1b8/0x380 fs/xfs/xfs_bmap_util.c:751 3 locks held by syz.3.34/4650: #0: ffff0000faaa0460 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000f51eb1b8 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000f51eb1b8 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000faaa0650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 4 locks held by kworker/u4:9/6247: #0: ffff0000c0845138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x6b4/0x13a8 kernel/workqueue.c:2265 #1: ffff8000218f7c20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6f8/0x13a8 kernel/workqueue.c:2267 #2: ffff800017724a50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x12c/0xa74 net/core/net_namespace.c:594 #3: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74 7 locks held by syz-executor/11437: #0: ffff0000d8e44460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23c/0x7c4 fs/read_write.c:580 #1: ffff0000ce2f0088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c0/0x4c0 fs/kernfs/file.c:343 #2: ffff0000d15922c0 (kn->active#50){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline] #2: ffff0000d15922c0 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x200/0x4c0 fs/kernfs/file.c:344 #3: ffff800016ad7a28 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xd4/0x31c drivers/net/netdevsim/bus.c:209 #4: ffff0000f37bb0e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:840 [inline] #4: ffff0000f37bb0e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1080 [inline] #4: ffff0000f37bb0e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x6d0 drivers/base/dd.c:1283 #5: ffff0000f37bc2f8 (&devlink->lock_key){+.+.}-{3:3}, at: devl_lock+0x24/0x34 net/devlink/leftover.c:275 #6: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74 2 locks held by syz.4.2791/11569: #0: ffff0000f5033210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #0: ffff0000f5033210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:653 [inline] #0: ffff0000f5033210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x7c/0x1f8 net/socket.c:1400 #1: ffff80001529cbb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #1: ffff80001529cbb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a8/0x6f0 kernel/rcu/tree_exp.h:962 3 locks held by syz.0.2794/11585: 1 lock held by syz.5.2797/11591: #0: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74 1 lock held by syz.5.2797/11598: #0: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74 1 lock held by syz.5.2797/11601: #0: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6ec/0xce4 net/core/rtnetlink.c:6150 1 lock held by syz.5.2797/11604: #0: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6ec/0xce4 net/core/rtnetlink.c:6150 1 lock held by syz.1.2798/11593: #0: ffff800017731108 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74 =============================================