INFO: task kworker/u4:6:5137 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller-00136-g6a66fdd29ea1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:6 state:D stack:20920 pid:5137 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:5) Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 io_schedule+0x8c/0x100 kernel/sched/core.c:8887 folio_wait_bit_common+0x86c/0x12b0 mm/filemap.c:1301 folio_lock include/linux/pagemap.h:952 [inline] write_cache_pages+0x570/0x12c0 mm/page-writeback.c:2440 iomap_writepages+0x68/0x240 fs/iomap/buffered-io.c:1820 xfs_vm_writepages+0x139/0x1a0 fs/xfs/xfs_aops.c:513 do_writepages+0x3a6/0x670 mm/page-writeback.c:2551 __writeback_single_inode+0x155/0xfb0 fs/fs-writeback.c:1603 writeback_sb_inodes+0x8ef/0x11d0 fs/fs-writeback.c:1894 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:1965 wb_writeback+0x46c/0xc70 fs/fs-writeback.c:2070 wb_check_background_flush fs/fs-writeback.c:2136 [inline] wb_do_writeback fs/fs-writeback.c:2224 [inline] wb_workfn+0xc6f/0xff0 fs/fs-writeback.c:2251 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.5:5544 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller-00136-g6a66fdd29ea1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:23888 pid:5544 ppid:5111 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 xlog_grant_head_wait+0x387/0x910 fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x299/0x480 xfs_log_reserve+0x3c4/0xb10 fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x239/0x6a0 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x423/0x810 fs/xfs/xfs_trans.c:283 xfs_bmapi_convert_delalloc+0x267/0x1310 fs/xfs/libxfs/xfs_bmap.c:4487 xfs_convert_blocks fs/xfs/xfs_aops.c:266 [inline] xfs_map_blocks+0x780/0x1090 fs/xfs/xfs_aops.c:389 iomap_writepage_map fs/iomap/buffered-io.c:1641 [inline] iomap_do_writepage+0x941/0x2ee0 fs/iomap/buffered-io.c:1803 write_cache_pages+0x89e/0x12c0 mm/page-writeback.c:2473 iomap_writepages+0x68/0x240 fs/iomap/buffered-io.c:1820 xfs_vm_writepages+0x139/0x1a0 fs/xfs/xfs_aops.c:513 do_writepages+0x3a6/0x670 mm/page-writeback.c:2551 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] file_write_and_wait_range+0x20f/0x300 mm/filemap.c:781 xfs_file_fsync+0x1c6/0xa50 fs/xfs/xfs_file.c:151 generic_write_sync include/linux/fs.h:2452 [inline] xfs_file_buffered_write+0xa0e/0xb50 fs/xfs/xfs_file.c:764 do_iter_write+0x6ea/0xc50 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_pwritev+0x21a/0x360 fs/read_write.c:1031 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fea5068c169 RSP: 002b:00007fea5143e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fea507abf80 RCX: 00007fea5068c169 RDX: 0000000000000007 RSI: 0000000020000700 RDI: 0000000000000006 RBP: 00007fea506e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000101 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd7887aa3f R14: 00007fea5143e300 R15: 0000000000022000 Showing all locks held in the system: 3 locks held by kworker/u4:1/11: #0: ffff888016615938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90000107d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 #2: ffff8880189080e0 (&type->s_umount_key#58){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25570 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf25d70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf253a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4743: #0: ffff88814a51c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:6/5137: #0: ffff888016615938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc9000423fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 #2: ffff88801d5900e0 (&type->s_umount_key#58){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 2 locks held by syz-executor.5/5544: #0: ffff88801d590460 (sb_writers#17){.+.+}-{0:0}, at: vfs_writev fs/read_write.c:933 [inline] #0: ffff88801d590460 (sb_writers#17){.+.+}-{0:0}, at: do_pwritev+0x1fe/0x360 fs/read_write.c:1031 #1: ffff88801d590650 (sb_internal#3){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x267/0x1310 fs/xfs/libxfs/xfs_bmap.c:4487 2 locks held by syz-executor.2/5734: #0: ffff888018908460 (sb_writers#17){.+.+}-{0:0}, at: vfs_writev fs/read_write.c:933 [inline] #0: ffff888018908460 (sb_writers#17){.+.+}-{0:0}, at: do_pwritev+0x1fe/0x360 fs/read_write.c:1031 #1: ffff888018908650 (sb_internal#3){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x267/0x1310 fs/xfs/libxfs/xfs_bmap.c:4487 3 locks held by kworker/u4:8/5775: #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 #1: ffff8880b9828788 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:976 #2: ffffffff91cece68 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:984 [inline] #2: ffffffff91cece68 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0xd6/0x650 lib/debugobjects.c:1027 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc7-syzkaller-00136-g6a66fdd29ea1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 1077 Comm: kworker/u4:5 Not tainted 6.3.0-rc7-syzkaller-00136-g6a66fdd29ea1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: phy12 ieee80211_iface_work RIP: 0010:check_preemption_disabled+0x19/0x110 lib/smp_processor_id.c:14 Code: fe 37 8b eb 0c 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 41 56 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 <65> 8b 1d bc 1c 65 75 65 8b 05 b1 1c 65 75 a9 ff ff ff 7f 74 22 65 RSP: 0018:ffffc9000533f5c0 EFLAGS: 00000086 RAX: 38a179ded304c700 RBX: 0000000000000000 RCX: ffff888020641d40 RDX: 0000000000000000 RSI: ffffffff8aea8a80 RDI: ffffffff8b37ff00 RBP: 00000000ffffffff R08: dffffc0000000000 R09: ffffc9000533f820 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff888020641d40 R14: 00000000ffffffff R15: ffffffff8cf25400 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560c3ccde348 CR3: 0000000021891000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:462 [inline] lock_is_held_type+0x7a/0x190 kernel/locking/lockdep.c:5711 lock_is_held include/linux/lockdep.h:283 [inline] __might_resched+0xa5/0x780 kernel/sched/core.c:10023 __mutex_lock_common+0xda/0x2530 kernel/locking/mutex.c:580 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 sdata_lock net/mac80211/ieee80211_i.h:1115 [inline] ieee80211_ibss_rx_queued_mgmt+0x113/0x2cf0 net/mac80211/ibss.c:1627 ieee80211_iface_process_skb net/mac80211/iface.c:1583 [inline] ieee80211_iface_work+0x7bd/0xd00 net/mac80211/iface.c:1637 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308