INFO: task segctord:7372 blocked for more than 143 seconds.
Not tainted 6.2.0-rc3-syzkaller-00376-g7c6984405241 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:segctord state:D stack:24824 pid:7372 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5293 [inline]
__schedule+0x995/0xe20 kernel/sched/core.c:6606
schedule+0xcb/0x190 kernel/sched/core.c:6682
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: ffffffff8d326fd0 (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: ffffffff8d3277d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
3 locks held by kworker/1:0/22:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc900001c7d00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
#2: ffffffff8d32c478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
#2: ffffffff8d32c478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946
2 locks held by kworker/1:1/27:
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc90000a3fd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
1 lock held by khungtaskd/28:
#0: ffffffff8d326e00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/u4:3/51:
2 locks held by getty/4745:
#0: ffff88802c0eb098 (&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 syz-fuzzer/5065:
#0: ffff8880b993a1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:537
#1: ffff8880b9927748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x611/0x9a0 kernel/sched/psi.c:976
2 locks held by syz-executor.3/5117:
#0: ffff8880783700e0 (&type->s_umount_key#48){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362
#1: ffffffff8d32c478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
#1: ffffffff8d32c478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946
1 lock held by syz-executor.2/5120:
#0: ffff88807bf800e0 (&type->s_umount_key#48){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362
2 locks held by kworker/0:11/5315:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc90004977d00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
6 locks held by syz-executor.5/7368:
1 lock held by segctord/7372:
#0: ffff888075ccd2a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357
4 locks held by syz-executor.4/7495:
1 lock held by segctord/7496:
#0: ffff88807df632a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc3-syzkaller-00376-g7c6984405241 #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: 7495 Comm: syz-executor.4 Not tainted 6.2.0-rc3-syzkaller-00376-g7c6984405241 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:check_preemption_disabled+0xb/0x110 lib/smp_processor_id.c:13
Code: e8 ea 18 cf f9 e9 64 ff ff ff cc cc cc cc cc 48 c7 c7 80 c0 4b 8b 48 c7 c6 c0 c0 4b 8b eb 00 41 57 41 56 41 54 53 48 83 ec 10 <65> 48 8b 04 25 28 00 00 00 48 89 44 24 08 65 8b 1d bc 60 52 75 65
RSP: 0018:ffffc900112d76e8 EFLAGS: 00000286
RAX: ffffffff81b9a3a5 RBX: 1ffff9200225ae01 RCX: 0000000000040000
RDX: ffffc90015000000 RSI: ffffffff8b4bc0c0 RDI: ffffffff8b4bc080
RBP: ffffc900112d7848 R08: ffffffff81b9e670 R09: fffff94000123447
R10: fffff94000123447 R11: 1ffffd4000123446 R12: 0000000000000007
R13: dffffc0000000000 R14: ffffea000091a200 R15: 0000000000000000
FS: 00007fa86cf6d700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc4b6131000 CR3: 000000007bb37000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:121 [inline]
rcu_is_watching+0x11/0xb0 kernel/rcu/tree.c:713
rcu_read_unlock include/linux/rcupdate.h:793 [inline]
mapping_get_entry mm/filemap.c:1872 [inline]
__filemap_get_folio+0x382/0x1250 mm/filemap.c:1916
pagecache_get_page+0x28/0x250 mm/folio-compat.c:98
find_or_create_page include/linux/pagemap.h:612 [inline]
grab_cache_page include/linux/pagemap.h:742 [inline]
nilfs_grab_buffer+0xab/0x550 fs/nilfs2/page.c:57
nilfs_mdt_create_block fs/nilfs2/mdt.c:80 [inline]
nilfs_mdt_get_block+0x19c/0x820 fs/nilfs2/mdt.c:255
nilfs_palloc_get_block+0x142/0x240 fs/nilfs2/alloc.c:216
nilfs_palloc_get_bitmap_block fs/nilfs2/alloc.c:284 [inline]
nilfs_palloc_prepare_free_entry+0x36b/0x5a0 fs/nilfs2/alloc.c:691
nilfs_ifile_delete_inode+0xb3/0x3e0 fs/nilfs2/ifile.c:106
nilfs_evict_inode+0x1da/0x3d0 fs/nilfs2/inode.c:937
evict+0x2a4/0x620 fs/inode.c:664
d_delete_notify include/linux/fsnotify.h:261 [inline]
vfs_rmdir+0x37e/0x4b0 fs/namei.c:4134
do_rmdir+0x37f/0x5f0 fs/namei.c:4182
__do_sys_rmdir fs/namei.c:4201 [inline]
__se_sys_rmdir fs/namei.c:4199 [inline]
__x64_sys_rmdir+0x45/0x50 fs/namei.c:4199
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:0x7fa86c28c0c9
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:00007fa86cf6d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007fa86c3ac050 RCX: 00007fa86c28c0c9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 00007fa86c2e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd6a48317f R14: 00007fa86cf6d300 R15: 0000000000022000