INFO: task segctord:25533 blocked for more than 143 seconds. Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:28696 pid:25533 ppid:2 flags:0x00004000 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 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2488 [inline] nilfs_segctor_thread+0x52f/0x1140 fs/nilfs2/segment.c:2572 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25530 (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: ffffffff8cf25d30 (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: ffffffff8cf25360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by udevd/4427: 2 locks held by getty/4741: #0: ffff88814a7ed098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by kworker/1:32/14408: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90016b07d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 3 locks held by kworker/u4:0/23517: 5 locks held by kworker/u4:4/23519: 5 locks held by syz-executor.2/25255: 5 locks held by syz-executor.4/25440: 5 locks held by syz-executor.0/25526: 1 lock held by segctord/25533: #0: ffff888033d8e2a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 2 locks held by syz-executor.2/27540: 2 locks held by syz-executor.3/27561: #0: ffff88808b6700e0 (&type->s_umount_key#48/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228 #1: ffffffff8cf2a838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8cf2a838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:989 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #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: 27570 Comm: syz-executor.1 Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:rdtsc_ordered arch/x86/include/asm/msr.h:215 [inline] RIP: 0010:__pvclock_clocksource_read arch/x86/kernel/pvclock.c:77 [inline] RIP: 0010:pvclock_clocksource_read_nowd+0x4a/0xf0 arch/x86/kernel/pvclock.c:120 Code: 89 e1 48 d3 e3 4c 89 2c 24 48 89 d8 48 f7 24 24 48 0f ac d0 20 49 8b 4e 10 41 0f b6 56 1d 41 8b 36 39 ee 89 f5 74 5d 0f 01 f9 <66> 90 48 89 d3 48 c1 e3 20 48 09 c3 49 2b 5e 08 83 e5 fe 45 8b 6e RSP: 0018:ffffc9000b03f070 EFLAGS: 00000282 RAX: 000000007e6a4616 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000275 RSI: 0000000000000000 RDI: ffffffff8fcde000 RBP: 000000000000000c R08: ffffffff81eb3ef5 R09: fffffbfff205b639 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0002060340 R13: dffffc0000000000 R14: ffffffff8fcde000 R15: ffff88813fffc310 FS: 00007fe07e8c6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe0751fe000 CR3: 0000000093f74000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvm_clock_read+0x14/0x30 arch/x86/kernel/kvmclock.c:79 kvm_sched_clock_read+0x9/0x20 arch/x86/kernel/kvmclock.c:91 local_clock+0xe/0xf0 kernel/sched/clock.c:301 __set_page_owner_handle mm/page_owner.c:166 [inline] __set_page_owner+0x50/0x380 mm/page_owner.c:197 prep_new_page mm/page_alloc.c:2553 [inline] get_page_from_freelist+0x3246/0x33c0 mm/page_alloc.c:4326 __alloc_pages+0x255/0x670 mm/page_alloc.c:5592 __folio_alloc+0x13/0x30 mm/page_alloc.c:5624 vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2244 shmem_alloc_folio mm/shmem.c:1574 [inline] shmem_alloc_and_acct_folio+0x596/0xd40 mm/shmem.c:1598 shmem_get_folio_gfp+0x14bd/0x36b0 mm/shmem.c:1937 shmem_get_folio mm/shmem.c:2068 [inline] shmem_write_begin+0x172/0x4f0 mm/shmem.c:2561 generic_perform_write+0x300/0x5e0 mm/filemap.c:3926 __generic_file_write_iter+0x17a/0x400 mm/filemap.c:4054 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4086 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7b2/0xbb0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 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:0x7fe07da3deef Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 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 cc fd ff ff 48 RSP: 002b:00007fe07e8c5f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe07da3deef RDX: 0000000001000000 RSI: 00007fe0741ff000 RDI: 0000000000000003 RBP: 00007fe0741ff000 R08: 0000000000000000 R09: 0000000000005597 R10: 0000000001000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fe07e8c5fdc R14: 00007fe07e8c5fe0 R15: 0000000020005682