INFO: task kworker/u4:8:1080 blocked for more than 143 seconds. Not tainted 6.6.0-rc6-next-20231018-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:8 state:D stack:21824 pid:1080 tgid:1080 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:2) Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0xee4/0x5a10 kernel/sched/core.c:6680 __schedule_loop kernel/sched/core.c:6757 [inline] schedule+0xe7/0x270 kernel/sched/core.c:6772 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6829 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x969/0x1340 kernel/locking/mutex.c:747 fat_write_inode fs/fat/inode.c:918 [inline] fat_write_inode+0xfc/0x180 fs/fat/inode.c:911 write_inode fs/fs-writeback.c:1456 [inline] __writeback_single_inode+0xa84/0xe60 fs/fs-writeback.c:1673 writeback_sb_inodes+0x5a2/0x1090 fs/fs-writeback.c:1899 __writeback_inodes_wb+0xff/0x2d0 fs/fs-writeback.c:1970 wb_writeback+0x7fe/0xaa0 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+0x86a/0xfd0 fs/fs-writeback.c:2262 process_one_work+0x8a2/0x15e0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613 4 locks held by kworker/u4:2/42: #0: ffff88801469dd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605 #1: ffffc90000b2fd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606 #2: ffff8880222740e0 (&type->s_umount_key#60){++++}-{3:3}, at: super_trylock_shared+0x1e/0xf0 fs/super.c:610 #3: ffff88801ebcc1d0 (&sbi->s_lock){+.+.}-{3:3}, at: fat_write_inode fs/fat/inode.c:918 [inline] #3: ffff88801ebcc1d0 (&sbi->s_lock){+.+.}-{3:3}, at: fat_write_inode+0xfc/0x180 fs/fat/inode.c:911 4 locks held by kworker/u4:8/1080: #0: ffff88801469dd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605 #1: ffffc900052b7d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606 #2: ffff88804ce440e0 (&type->s_umount_key#60){++++}-{3:3}, at: super_trylock_shared+0x1e/0xf0 fs/super.c:610 #3: ffff88807d0701d0 (&sbi->s_lock){+.+.}-{3:3}, at: fat_write_inode fs/fat/inode.c:918 [inline] #3: ffff88807d0701d0 (&sbi->s_lock){+.+.}-{3:3}, at: fat_write_inode+0xfc/0x180 fs/fat/inode.c:911 2 locks held by getty/4808: #0: ffff8880266370a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201 3 locks held by syz-executor.2/6641: 4 locks held by syz-executor.3/6691: 2 locks held by syz-executor.5/7371: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc6-next-20231018-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 6691 Comm: syz-executor.3 Not tainted 6.6.0-rc6-next-20231018-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:match_held_lock+0x1/0xa0 kernel/locking/lockdep.c:5199 Code: 04 85 c0 75 df 48 c7 c6 00 bc 8c 8a 48 c7 c7 80 bb 8c 8a e8 c1 c8 04 f7 0f 0b eb c8 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 53 <48> 39 77 10 48 89 fb 74 61 66 83 7f 22 1f 76 56 48 8b 46 08 48 89 RSP: 0018:ffffc900062875c8 EFLAGS: 00000002 RAX: 0000000000000000 RBX: ffff88801f586400 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffff888148c5b698 RDI: ffff88801f586400 RBP: ffff888148c5b698 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff1976fb9 R12: ffff88801f585940 R13: ffff88801f586400 R14: 00000000ffffffff R15: 0000000000000000 FS: 00007f2a6f91d6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c001a77000 CR3: 00000000208ff000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_is_held kernel/locking/lockdep.c:5494 [inline] lock_is_held_type+0xad/0x140 kernel/locking/lockdep.c:5824 lock_is_held include/linux/lockdep.h:288 [inline] xa_entry include/linux/xarray.h:1216 [inline] xas_descend+0x2b6/0x4e0 lib/xarray.c:206 xas_load+0xe0/0x140 lib/xarray.c:244 filemap_get_entry+0x10f/0x460 mm/filemap.c:1806 __filemap_get_folio+0x56/0xa90 mm/filemap.c:1851 grow_dev_folio fs/buffer.c:1043 [inline] grow_buffers fs/buffer.c:1111 [inline] __getblk_slow+0x1b1/0x6b0 fs/buffer.c:1138 bdev_getblk+0xad/0xc0 fs/buffer.c:1434 __getblk include/linux/buffer_head.h:358 [inline] sb_getblk include/linux/buffer_head.h:364 [inline] fat_mirror_bhs+0x244/0x5d0 fs/fat/fatent.c:388 fat_alloc_clusters+0xcb2/0xf70 fs/fat/fatent.c:543 fat_alloc_new_dir+0x107/0xc90 fs/fat/dir.c:1144 vfat_mkdir+0x151/0x350 fs/fat/namei_vfat.c:859 vfs_mkdir+0x577/0x820 fs/namei.c:4105 do_mkdirat+0x2fd/0x3a0 fs/namei.c:4128 __do_sys_mkdirat fs/namei.c:4143 [inline] __se_sys_mkdirat fs/namei.c:4141 [inline] __x64_sys_mkdirat+0x115/0x170 fs/namei.c:4141 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f2a6ec7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2a6f91d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f2a6ed9bf80 RCX: 00007f2a6ec7cae9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007f2a6ecc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f2a6ed9bf80 R15: 00007ffe041fb288