INFO: task kworker/0:4:5141 blocked for more than 143 seconds. Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:4 state:D stack:21144 pid:5141 tgid:5141 ppid:2 flags:0x00004000 Workqueue: xfs-sync/loop0 xfs_flush_inodes_worker Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 wb_wait_for_completion+0x166/0x290 fs/fs-writeback.c:216 sync_inodes_sb+0x293/0xb20 fs/fs-writeback.c:2792 xfs_flush_inodes_worker+0x61/0x80 fs/xfs/xfs_super.c:616 process_one_work kernel/workqueue.c:3218 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3299 worker_thread+0x86d/0xd70 kernel/workqueue.c:3380 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 INFO: task syz-executor.0:11015 blocked for more than 144 seconds. Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:21296 pid:11015 tgid:11015 ppid:5513 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_timeout+0xb0/0x310 kernel/time/timer.c:2558 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common kernel/sched/completion.c:127 [inline] wait_for_completion+0x355/0x620 kernel/sched/completion.c:148 __flush_work+0xaa9/0xd00 kernel/workqueue.c:4197 xfs_file_buffered_write+0x36b/0xad0 fs/xfs/xfs_file.c:808 __kernel_write_iter+0x40d/0x900 fs/read_write.c:523 dump_emit_page fs/coredump.c:890 [inline] dump_user_range+0x4e0/0x950 fs/coredump.c:951 elf_core_dump+0x3d65/0x4640 fs/binfmt_elf.c:2077 do_coredump+0x1bac/0x2b50 fs/coredump.c:764 get_signal+0x13fa/0x1740 kernel/signal.c:2896 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x79/0x270 kernel/entry/common.c:231 exc_page_fault+0x59e/0x900 arch/x86/mm/fault.c:1572 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x0 RSP: 002b:0000000020000318 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f0d48dac050 RCX: 00007f0d48c7de69 RDX: 00000000200025c0 RSI: 0000000020000310 RDI: 0000000000108000 RBP: 00007f0d48cca47a R08: 0000000020002640 R09: 0000000020002640 R10: 0000000020002600 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000006e R14: 00007f0d48dac050 R15: 00007ffc4d2d0478 INFO: task syz-executor.3:11027 blocked for more than 146 seconds. Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:24088 pid:11027 tgid:11025 ppid:9022 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895 rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306 bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:388 [inline] sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2790 iterate_supers+0xc6/0x190 fs/super.c:922 ksys_sync+0xbd/0x1c0 fs/sync.c:102 __do_sys_sync+0xe/0x20 fs/sync.c:113 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x7f9d5687de69 RSP: 002b:00007f9d576a40c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007f9d569abf80 RCX: 00007f9d5687de69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f9d568ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9d569abf80 R15: 00007ffef6a9c4e8 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e334ea0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e334ea0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e334ea0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 3 locks held by kworker/u8:6/146: 2 locks held by getty/4832: #0: ffff88802a8990a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 4 locks held by kworker/0:4/5141: #0: ffff8880297e3948 ((wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3193 [inline] #0: ffff8880297e3948 ((wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3299 #1: ffffc9000478fd00 ((work_completion)(&mp->m_flush_inodes_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3194 [inline] #1: ffffc9000478fd00 ((work_completion)(&mp->m_flush_inodes_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3299 #2: ffff8880254da0e0 (&type->s_umount_key#71){++++}-{3:3}, at: xfs_flush_inodes_worker+0x45/0x80 fs/xfs/xfs_super.c:615 #3: ffff88802068c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:388 [inline] #3: ffff88802068c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2790 2 locks held by kworker/u8:10/5296: #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3193 [inline] #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3299 #1: ffffc90004b7fd00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3194 [inline] #1: ffffc90004b7fd00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3299 4 locks held by kworker/u8:11/5316: #0: ffff88801b6c7148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3193 [inline] #0: ffff88801b6c7148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3299 #1: ffffc90004c0fd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3194 [inline] #1: ffffc90004c0fd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3299 #2: ffff8880254da610 (sb_internal#4){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x267/0x1330 fs/xfs/libxfs/xfs_bmap.c:4625 #3: ffff888060b9e5d8 (&xfs_nondir_ilock_class#3){++++}-{3:3}, at: xfs_bmapi_convert_delalloc+0x295/0x1330 fs/xfs/libxfs/xfs_bmap.c:4630 1 lock held by syz-executor.0/5513: 2 locks held by syz-executor.0/11015: #0: ffff8880254da420 (sb_writers#21){.+.+}-{0:0}, at: do_coredump+0x1b7a/0x2b50 fs/coredump.c:763 #1: ffff888060b9e7f8 (&sb->s_type->i_mutex_key#30){++++}-{3:3}, at: xfs_ilock+0x102/0x3d0 fs/xfs/xfs_inode.c:190 2 locks held by syz-executor.3/11027: #0: ffff8880254da0e0 (&type->s_umount_key#71){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880254da0e0 (&type->s_umount_key#71){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88802068c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:388 [inline] #1: ffff88802068c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2790 2 locks held by syz-executor.4/11674: #0: ffff8880254da0e0 (&type->s_umount_key#71){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880254da0e0 (&type->s_umount_key#71){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88802068c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:388 [inline] #1: ffff88802068c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2790 2 locks held by syz-executor.2/13284: 1 lock held by syz-executor.3/13516: #0: ffffffff8e33a278 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #0: ffffffff8e33a278 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x830 kernel/rcu/tree_exp.h:939 3 locks held by syz-executor.1/13515: 2 locks held by syz-executor.0/13521: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:380 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 13521 Comm: syz-executor.0 Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:arch_xor_unlock_is_negative_byte arch/x86/include/asm/bitops.h:101 [inline] RIP: 0010:xor_unlock_is_negative_byte include/asm-generic/bitops/instrumented-lock.h:80 [inline] RIP: 0010:folio_xor_flags_has_waiters include/linux/page-flags.h:762 [inline] RIP: 0010:folio_unlock+0xe0/0x2f0 mm/filemap.c:1508 Code: e6 01 31 ff e8 a1 36 ca ff 48 83 e5 01 0f 85 c4 00 00 00 0f 1f 44 00 00 e8 ad 31 ca ff 4c 89 f7 be 08 00 00 00 e8 30 43 2f 00 <31> db f0 41 80 36 01 40 0f 98 c5 0f 98 c3 bf 02 00 00 00 89 de e8 RSP: 0018:ffffc90004977a78 EFLAGS: 00000256 RAX: ffffffff81cb5c01 RBX: 1ffffd40002ceb88 RCX: ffffffff81cb5c10 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffea0001675c40 RBP: 0000000000000000 R08: ffffea0001675c47 R09: 1ffffd40002ceb88 R10: dffffc0000000000 R11: fffff940002ceb89 R12: ffffea0001675c48 R13: 1ffffd40002ceb89 R14: ffffea0001675c40 R15: dffffc0000000000 FS: 00007f0d487ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31822000 CR3: 000000002c830000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: shmem_write_end+0x24a/0x5e0 mm/shmem.c:2784 generic_perform_write+0x425/0x640 mm/filemap.c:4020 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2925 call_write_iter include/linux/fs.h:2106 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa72/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x7f0d48c7cbaf Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48 RSP: 002b:00007f0d487fee80 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f0d48c7cbaf RDX: 0000000001000000 RSI: 00007f0d3ea00000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000009600 R10: 0000000020012cc2 R11: 0000000000000293 R12: 0000000000000003 R13: 00007f0d487fef80 R14: 00007f0d487fef40 R15: 00007f0d3ea00000