INFO: task segctord:15783 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-next-20230419-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:29480 pid:15783 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5334 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6659 schedule+0xde/0x1a0 kernel/sched/core.c:6735 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6794 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574 nilfs_transaction_lock+0x266/0x410 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2508 [inline] nilfs_segctor_thread+0x3bc/0xf30 fs/nilfs2/segment.c:2592 kthread+0x33e/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task segctord:16088 blocked for more than 144 seconds. Not tainted 6.3.0-rc7-next-20230419-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:29480 pid:16088 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5334 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6659 schedule+0xde/0x1a0 kernel/sched/core.c:6735 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6794 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574 nilfs_transaction_lock+0x266/0x410 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2508 [inline] nilfs_segctor_thread+0x3bc/0xf30 fs/nilfs2/segment.c:2592 kthread+0x33e/0x440 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: ffffffff8c797230 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c796f30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8c797e40 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6545 2 locks held by kworker/u4:5/2826: #0: ffff8880b993c598 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558 #1: ffff88801246c170 (&mm->cid_lock#2){....}-{2:2}, at: mm_cid_get kernel/sched/sched.h:3284 [inline] #1: ffff88801246c170 (&mm->cid_lock#2){....}-{2:2}, at: switch_mm_cid kernel/sched/sched.h:3306 [inline] #1: ffff88801246c170 (&mm->cid_lock#2){....}-{2:2}, at: prepare_task_switch kernel/sched/core.c:5143 [inline] #1: ffff88801246c170 (&mm->cid_lock#2){....}-{2:2}, at: context_switch kernel/sched/core.c:5285 [inline] #1: ffff88801246c170 (&mm->cid_lock#2){....}-{2:2}, at: __schedule+0x2936/0x5650 kernel/sched/core.c:6659 2 locks held by getty/4757: #0: ffff8880282a4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 6 locks held by syz-executor.2/15776: 1 lock held by segctord/15783: #0: ffff8880312da2a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x266/0x410 fs/nilfs2/segment.c:357 6 locks held by syz-executor.0/16078: 1 lock held by segctord/16088: #0: ffff88807e63b2a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x266/0x410 fs/nilfs2/segment.c:357 2 locks held by kworker/0:1/16187: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc90006e47db0 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 2 locks held by syz-executor.5/19044: 2 locks held by syz-executor.5/19062: 2 locks held by syz-executor.3/19077: #0: ffff8880328e8210 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline] #0: ffff8880328e8210 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x290 net/socket.c:652 #1: ffffffff8c7a32b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8c7a32b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x64a/0x770 kernel/rcu/tree_exp.h:992 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc7-next-20230419-syzkaller #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+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x33e/0x440 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: 5545 Comm: kworker/u4:14 Not tainted 6.3.0-rc7-next-20230419-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:__lock_acquire+0xc3d/0x5df0 kernel/locking/lockdep.c:5062 Code: 80 3c 02 00 0f 85 e6 47 00 00 48 83 7b 40 00 0f 84 f7 0f 00 00 0f b7 44 24 10 8b 4c 24 60 8b 5c 24 40 c1 e0 0d 66 0b 44 24 08 <98> 2b 44 24 58 33 44 24 50 89 c2 29 c1 01 d8 c1 c2 06 31 ca 41 89 RSP: 0018:ffffc90005f4f9c8 EFLAGS: 00000002 RAX: 000000000000401f RBX: 00000000c1a5e6d6 RCX: 000000000818c18a RDX: 1ffffffff22a1cfc RSI: 0000000000000008 RDI: ffffffff9150e7e0 RBP: 0000000000000004 R08: 0000000000000000 R09: ffffffff9150cc47 R10: fffffbfff22a1988 R11: 0000000000000000 R12: ffff88801f1ec508 R13: ffff88801f1eba80 R14: 0000000000000000 R15: b98d254c0818c18a FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd22f307000 CR3: 000000002b6b8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire.part.0+0x11c/0x370 kernel/locking/lockdep.c:5691 rcu_lock_acquire include/linux/rcupdate.h:327 [inline] rcu_read_lock include/linux/rcupdate.h:773 [inline] batadv_nc_process_nc_paths.part.0+0xec/0x3f0 net/batman-adv/network-coding.c:687 batadv_nc_process_nc_paths net/batman-adv/network-coding.c:679 [inline] batadv_nc_worker+0xd20/0xfe0 net/batman-adv/network-coding.c:735 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x33e/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308