INFO: task segctord:13460 blocked for more than 143 seconds. Not tainted 6.2.0-rc3-syzkaller-00008-g1fe4fd6f5cad #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:24824 pid:13460 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write+0x231/0x270 kernel/locking/rwsem.c:1563 nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2486 [inline] nilfs_segctor_thread+0x593/0x11c0 fs/nilfs2/segment.c:2570 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task segctord:13580 blocked for more than 144 seconds. Not tainted 6.2.0-rc3-syzkaller-00008-g1fe4fd6f5cad #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:24824 pid:13580 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write+0x231/0x270 kernel/locking/rwsem.c:1563 nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2486 [inline] nilfs_segctor_thread+0x593/0x11c0 fs/nilfs2/segment.c:2570 kthread+0x266/0x300 kernel/kthread.c:376 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/12: #0: ffffffff8d326f50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d327750 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d326d80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:6/1118: 2 locks held by getty/4745: #0: ffff88802c41b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 2 locks held by kworker/u4:14/10971: #0: ffff888012879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc9000b397d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 3 locks held by kworker/0:29/1616: 6 locks held by syz-executor.5/13457: 1 lock held by segctord/13460: #0: ffff88802b0092a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357 5 locks held by syz-executor.1/13577: 1 lock held by segctord/13580: #0: ffff888075c092a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357 2 locks held by kworker/u4:1/24332: #0: ffff888012879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffff8880b9827748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x611/0x9a0 kernel/sched/psi.c:976 2 locks held by kworker/u4:2/24333: #0: ffff888012879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc9001597fd00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 2 locks held by kworker/1:5/25567: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc9000a8c7d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 1 lock held by syz-executor.3/27033: #0: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #0: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc3-syzkaller-00008-g1fe4fd6f5cad #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ba/0x420 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+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 27033 Comm: syz-executor.3 Not tainted 6.2.0-rc3-syzkaller-00008-g1fe4fd6f5cad #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:strnlen+0x37/0x80 lib/string.c:430 Code: 49 89 fc 48 85 f6 74 57 49 89 f7 4d 8d 2c 36 48 bd 00 00 00 00 00 fc ff df 4c 89 f3 4d 89 f4 0f 1f 40 00 48 89 d8 48 c1 e8 03 <0f> b6 04 28 84 c0 75 17 41 80 3c 24 00 74 26 49 ff cf 49 ff c4 48 RSP: 0018:ffffc90006b3ef10 EFLAGS: 00000a07 RAX: 1ffff1100d09dbfa RBX: ffff8880684edfd4 RCX: 1ffffffff203ca08 RDX: 1ffffffff203ca08 RSI: 0000000000000010 RDI: ffff8880684edfc8 RBP: dffffc0000000000 R08: ffffffff901e5040 R09: ffffffff901e5048 R10: ffffffff901e5058 R11: ffffffff901e5050 R12: ffff8880684edfd4 R13: ffff8880684edfd8 R14: ffff8880684edfc8 R15: 0000000000000004 FS: 00007f72049f5700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7204992718 CR3: 000000007c885000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: _Z7strnlenPKcU17pass_object_size1m include/linux/fortify-string.h:199 [inline] _Z7strscpyPcU17pass_object_size1PKcU17pass_object_size1m include/linux/fortify-string.h:344 [inline] __set_page_owner_handle+0x1e6/0x3d0 mm/page_owner.c:175 __set_page_owner+0x43/0x60 mm/page_owner.c:195 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 push_anon lib/iov_iter.c:239 [inline] append_pipe+0x2b9/0x760 lib/iov_iter.c:296 pipe_zero+0xf2/0x200 lib/iov_iter.c:783 iov_iter_zero+0x2fb/0xff0 lib/iov_iter.c:799 iomap_dio_hole_iter fs/iomap/direct-io.c:389 [inline] iomap_dio_iter fs/iomap/direct-io.c:437 [inline] __iomap_dio_rw+0x149a/0x20c0 fs/iomap/direct-io.c:601 iomap_dio_rw+0x42/0xa0 fs/iomap/direct-io.c:689 btrfs_dio_read+0x9c/0xe0 fs/btrfs/inode.c:8168 btrfs_direct_read fs/btrfs/file.c:3765 [inline] btrfs_file_read_iter+0x399/0x6a0 fs/btrfs/file.c:3804 call_read_iter include/linux/fs.h:2183 [inline] generic_file_splice_read+0x1ff/0x5d0 fs/splice.c:309 do_splice_to fs/splice.c:793 [inline] splice_direct_to_actor+0x41b/0xc00 fs/splice.c:865 do_splice_direct+0x279/0x3d0 fs/splice.c:974 do_sendfile+0x5fb/0xf80 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x14f/0x1b0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7203c8c0c9 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:00007f72049f5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7203dabf80 RCX: 00007f7203c8c0c9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007f7203ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff36e9af5f R14: 00007f72049f5300 R15: 0000000000022000