INFO: task segctord:5763 blocked for more than 143 seconds. Not tainted 6.1.106-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:28248 pid:5763 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189 nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2556 [inline] nilfs_segctor_thread+0x547/0x11a0 fs/nilfs2/segment.c:2641 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d32b190 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d32b990 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516 2 locks held by kworker/1:0/22: #0: ffff888012872138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc900001c7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 1 lock held by khungtaskd/28: #0: ffffffff8d32afc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8d32afc0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8d32afc0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6494 2 locks held by getty/3388: #0: ffff888028bf7098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198 2 locks held by syz-executor/3638: #0: ffff8880657840e0 (&type->s_umount_key#52){++++}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:362 #1: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #1: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 kernel/rcu/tree_exp.h:962 2 locks held by syz-executor/3647: #0: ffff88804ce420e0 (&type->s_umount_key#52){++++}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:362 #1: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #1: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x360/0x930 kernel/rcu/tree_exp.h:962 5 locks held by kworker/u4:5/3690: 2 locks held by kworker/0:15/4758: #0: ffff888012870938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90004817d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 2 locks held by syz.2.732/5760: 1 lock held by segctord/5763: #0: ffff8880599e12a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 2 locks held by syz.4.1401/7648: 2 locks held by syz.2.2383/10066: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xf88/0xfd0 kernel/hung_task.c:377 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 7648 Comm: syz.4.1401 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:rcu_rnp_online_cpus kernel/rcu/tree.c:226 [inline] RIP: 0010:rcu_rdp_cpu_online kernel/rcu/tree.c:236 [inline] RIP: 0010:rcu_lockdep_current_cpu_online+0xbb/0x120 kernel/rcu/tree.c:776 Code: 18 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 b8 c4 6e 00 48 8b 1b 48 83 c3 70 48 89 d8 48 c1 e8 03 42 80 3c 30 00 <74> 08 48 89 df e8 9b c4 6e 00 4c 23 3b 75 1a 48 c7 c7 40 07 33 8d RSP: 0018:ffffc9000b3b74c0 EFLAGS: 00000246 RAX: 1ffffffff1a65fd6 RBX: ffffffff8d32feb0 RCX: 0000000080000000 RDX: ffffc900039d1000 RSI: ffffffff8b5d62a0 RDI: ffff8880b993b8a0 RBP: ffff888012c97310 R08: ffffffff84256b0c R09: fffffbfff20e7645 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8880752da000 R14: dffffc0000000000 R15: 0000000000000002 FS: 00007f4f51b146c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f586b0ea338 CR3: 0000000058e3a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_held+0x1a/0x40 kernel/rcu/update.c:309 blkg_lookup block/blk-cgroup.h:241 [inline] blkg_lookup_create block/blk-cgroup.c:372 [inline] blkg_tryget_closest block/blk-cgroup.c:1877 [inline] bio_associate_blkg_from_css+0x2fe/0xca0 block/blk-cgroup.c:1911 bio_associate_blkg+0x129/0x1c0 block/blk-cgroup.c:1939 bio_init block/bio.c:260 [inline] bio_alloc_bioset+0x70f/0x11b0 block/bio.c:547 bio_alloc include/linux/bio.h:426 [inline] blk_next_bio+0x35/0x150 block/bio.c:346 __blkdev_issue_discard+0x377/0x570 block/blk-lib.c:67 blkdev_issue_discard+0xf0/0x1c0 block/blk-lib.c:105 nilfs_sufile_trim_fs+0x109e/0x1360 fs/nilfs2/sufile.c:1179 nilfs_ioctl_trim_fs fs/nilfs2/ioctl.c:1071 [inline] nilfs_ioctl+0x1188/0x24a0 fs/nilfs2/ioctl.c:1312 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f4f50d79e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4f51b14038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4f50f15f80 RCX: 00007f4f50d79e79 RDX: 0000000020000680 RSI: 00000000c0185879 RDI: 0000000000000004 RBP: 00007f4f50de7916 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4f50f15f80 R15: 00007ffe2455e8c8