INFO: task segctord:5824 blocked for more than 143 seconds. Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:27384 pid:5824 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 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:2508 [inline] nilfs_segctor_thread+0x52f/0x1140 fs/nilfs2/segment.c:2592 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task segctord:5930 blocked for more than 144 seconds. Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:28696 pid:5930 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 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:2508 [inline] nilfs_segctor_thread+0x52f/0x1140 fs/nilfs2/segment.c:2592 kthread+0x2b8/0x350 kernel/kthread.c:379 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/13: #0: ffffffff8cf277b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8cf27b70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8cf275e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:2/33: #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffff8880b99287c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:996 2 locks held by kworker/u4:4/56: #0: ffff8880b983c1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffffc90001577d20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by getty/4742: #0: ffff888028ddf098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176 4 locks held by syz-executor.5/5813: 1 lock held by segctord/5824: #0: ffff88802b1bd2a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 5 locks held by syz-executor.3/5927: 1 lock held by segctord/5930: #0: ffff88803159f2a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 2 locks held by syz-executor.0/12113: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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+0x2b8/0x350 kernel/kthread.c:379 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: 5927 Comm: syz-executor.3 Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:arch_clear_bit_unlock_is_negative_byte arch/x86/include/asm/bitops.h:105 [inline] RIP: 0010:clear_bit_unlock_is_negative_byte include/asm-generic/bitops/instrumented-lock.h:78 [inline] RIP: 0010:folio_unlock+0xfa/0x2f0 mm/filemap.c:1530 Code: 0b d0 ff 4c 89 f7 be 08 00 00 00 e8 a0 d8 27 00 31 db f0 41 80 26 fe 40 0f 98 c5 0f 98 c3 bf 02 00 00 00 89 de e8 16 0e d0 ff <31> ff 89 de e8 0d 0e d0 ff 40 84 ed 74 19 e8 73 0b d0 ff 4c 89 f7 RSP: 0018:ffffc90015807848 EFLAGS: 00000297 RAX: 0000000000000002 RBX: 0000000000000000 RCX: ffffffff81bba450 RDX: ffff88802b38d940 RSI: 0000000000000000 RDI: 0000000000000002 RBP: 0000000000000000 R08: ffffffff81bba46a R09: fffff9400015acb1 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0000ad6588 R13: 1ffffd400015acb1 R14: ffffea0000ad6580 R15: dffffc0000000000 FS: 00007fe967dd8700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f79fbd831b8 CR3: 0000000024c02000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_mdt_create_block fs/nilfs2/mdt.c:100 [inline] nilfs_mdt_get_block+0x73e/0xa50 fs/nilfs2/mdt.c:255 nilfs_palloc_get_block+0x142/0x240 fs/nilfs2/alloc.c:216 nilfs_palloc_get_entry_block+0x8e/0xa0 fs/nilfs2/alloc.c:318 nilfs_ifile_create_inode+0xf5/0x2d0 fs/nilfs2/ifile.c:66 nilfs_new_inode+0x257/0xa30 fs/nilfs2/inode.c:347 nilfs_mkdir+0x10d/0x340 fs/nilfs2/namei.c:218 vfs_mkdir+0x29d/0x450 fs/namei.c:4115 do_mkdirat+0x264/0x520 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 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:0x7fe96708c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe967dd8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fe9671abf80 RCX: 00007fe96708c169 RDX: 0000000000000008 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007fe9670e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd3b1e3fdf R14: 00007fe967dd8300 R15: 0000000000022000