INFO: task segctord:7686 blocked for more than 163 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:7686 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: 2 locks held by kworker/u4:1/11: 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 1 lock held by khungtaskd/27: #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 kworker/u4:3/46: 2 locks held by getty/3393: #0: ffff8880290ea098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198 1 lock held by syz-executor/3646: #0: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #0: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 kernel/rcu/tree_exp.h:962 2 locks held by kworker/1:7/3685: #0: ffff888012872138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000426fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 1 lock held by udevd/3721: #0: ffff8880b993a9d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:537 1 lock held by syz-executor/4744: #0: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #0: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x360/0x930 kernel/rcu/tree_exp.h:962 2 locks held by syz.0.1311/7664: 1 lock held by segctord/7686: #0: ffff8880227202a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 1 lock held by syz.4.2901/12184: #0: ffff88804a99a0e0 (&type->s_umount_key#55/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 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: 7664 Comm: syz.0.1311 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:blkg_tryget_closest block/blk-cgroup.c:1877 [inline] RIP: 0010:bio_associate_blkg_from_css+0x2a5/0xca0 block/blk-cgroup.c:1911 Code: b4 bc fd bd 10 05 00 00 49 03 2e 48 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 ef e8 0b b4 bc fd <48> 8b 45 00 48 89 44 24 58 48 8d 98 90 00 00 00 48 89 d8 48 c1 e8 RSP: 0018:ffffc9000a2174f0 EFLAGS: 00000246 RAX: 1ffff11029192782 RBX: 0000000000000001 RCX: dffffc0000000000 RDX: ffffc90016211000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff888148c93c10 R08: ffffffff842568f4 R09: fffffbfff20e7645 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88814b221000 R14: ffff888070b80a08 R15: ffff888070b80a48 FS: 00007fc5479916c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ff64e3c000 CR3: 000000005ab15000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:0x7fc546b79e79 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:00007fc547991038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc546d15f80 RCX: 00007fc546b79e79 RDX: 0000000020000680 RSI: 00000000c0185879 RDI: 0000000000000004 RBP: 00007fc546be7916 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc546d15f80 R15: 00007ffeca018e88