INFO: task segctord:13607 blocked for more than 143 seconds. Not tainted 6.3.0-syzkaller-00436-g173ea743bf7a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:27416 pid:13607 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:2508 [inline] nilfs_segctor_thread+0x52f/0x1140 fs/nilfs2/segment.c:2592 kthread+0x2b2/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: ffffffff8cf256b0 (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: ffffffff8cf25a70 (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: ffffffff8cf254e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4728: #0: ffff88802caac098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015c02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.4/5013: #0: ffffffff8cf2abb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #0: ffffffff8cf2abb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992 3 locks held by kworker/0:9/5479: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90005aa7d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 #2: ffffffff8cf2abb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #2: ffffffff8cf2abb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992 3 locks held by kworker/u4:17/11941: #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 #1: ffff88807ee2a4b0 (&mm->cid_lock#2){....}-{2:2}, at: mm_cid_get kernel/sched/sched.h:3280 [inline] #1: ffff88807ee2a4b0 (&mm->cid_lock#2){....}-{2:2}, at: switch_mm_cid kernel/sched/sched.h:3302 [inline] #1: ffff88807ee2a4b0 (&mm->cid_lock#2){....}-{2:2}, at: prepare_task_switch kernel/sched/core.c:5117 [inline] #1: ffff88807ee2a4b0 (&mm->cid_lock#2){....}-{2:2}, at: context_switch kernel/sched/core.c:5258 [inline] #1: ffff88807ee2a4b0 (&mm->cid_lock#2){....}-{2:2}, at: __schedule+0x12e4/0x4630 kernel/sched/core.c:6625 #2: ffff88801e82b8d8 (&lo->lo_work_lock){..-.}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:375 [inline] #2: ffff88801e82b8d8 (&lo->lo_work_lock){..-.}-{2:2}, at: loop_process_work+0x1d71/0x2220 drivers/block/loop.c:1926 5 locks held by syz-executor.1/13600: 1 lock held by segctord/13607: #0: ffff888031ff02a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x25c/0x4f0 fs/nilfs2/segment.c:357 2 locks held by kworker/1:20/19643: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90017e27d20 ((work_completion)(&rew->rew_work) ){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 3 locks held by syz-executor.1/19928: 3 locks held by syz-executor.5/19978: 3 locks held by syz-executor.3/19982: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-syzkaller-00436-g173ea743bf7a #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+0x2b2/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: 11942 Comm: kworker/u4:18 Not tainted 6.3.0-syzkaller-00436-g173ea743bf7a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet RIP: 0010:__lock_acquire+0x0/0x2000 kernel/locking/lockdep.c:4930 Code: 76 00 4c 89 f2 e9 26 ff ff ff 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 7c 94 48 8b 3c 24 e8 59 35 76 00 eb 89 0f 1f 80 00 00 00 00 <55> 41 57 41 56 41 55 41 54 53 48 81 ec 88 00 00 00 44 89 cb 45 89 RSP: 0018:ffffc90004d978b0 EFLAGS: 00000006 RAX: 0000000000000000 RBX: ffffc90004d97940 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8cf254e0 RBP: ffffc90004d97a40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920009b2f24 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f651ddbbfc0 CR3: 0000000029a67000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5691 rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:327 rcu_read_lock include/linux/rcupdate.h:773 [inline] batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:754 [inline] batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:825 [inline] batadv_iv_ogm_schedule+0x429/0x1010 net/batman-adv/bat_iv_ogm.c:868 batadv_iv_send_outstanding_bat_ogm_packet+0x6fe/0x810 net/batman-adv/bat_iv_ogm.c:1712 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x2b2/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308