INFO: task segctord:9673 blocked for more than 142 seconds.
Not tainted 6.1.0-rc3-next-20221104-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:segctord state:D stack:29536 pid:9673 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5211 [inline]
__schedule+0xb8a/0x5450 kernel/sched/core.c:6523
schedule+0xda/0x1b0 kernel/sched/core.c:6599
rwsem_down_write_slowpath+0x5fc/0x12d0 kernel/locking/rwsem.c:1190
__down_write_common kernel/locking/rwsem.c:1305 [inline]
__down_write_common kernel/locking/rwsem.c:1302 [inline]
__down_write kernel/locking/rwsem.c:1314 [inline]
down_write+0x1e4/0x220 kernel/locking/rwsem.c:1563
nilfs_transaction_lock+0x266/0x410 fs/nilfs2/segment.c:357
nilfs_segctor_thread_construct fs/nilfs2/segment.c:2486 [inline]
nilfs_segctor_thread+0x3b8/0xf30 fs/nilfs2/segment.c:2570
kthread+0x2e4/0x3a0 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: ffffffff8bf88270 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8bf87f70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
2 locks held by kworker/1:1/26:
#0: ffff888011872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff888011872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff888011872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
#0: ffff888011872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
#0: ffff888011872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
#0: ffff888011872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
#1: ffffc90000a1fda8 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
1 lock held by khungtaskd/28:
#0: ffffffff8bf88dc0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6494
2 locks held by getty/4909:
#0: ffff888029830098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177
1 lock held by syz-executor.4/5266:
#0: ffffffff8bf93ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
#0: ffffffff8bf93ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x24b/0x770 kernel/rcu/tree_exp.h:946
6 locks held by syz-executor.2/9671:
1 lock held by segctord/9673:
#0: ffff888039ca62a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x266/0x410 fs/nilfs2/segment.c:357
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc3-next-20221104-syzkaller #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+0xcd/0x134 lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x32f/0x3c0 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+0xc71/0xfc0 kernel/hung_task.c:377
kthread+0x2e4/0x3a0 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: 9671 Comm: syz-executor.2 Not tainted 6.1.0-rc3-next-20221104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:match_held_lock+0x1/0xc0 kernel/locking/lockdep.c:5113
Code: bb ff 48 c7 c7 e0 a3 ec 89 e8 d3 3b bb ff e8 d2 96 ff ff 31 c0 48 83 c4 08 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 53 <48> 89 fb 48 83 ec 08 48 39 77 10 74 6a 66 f7 47 22 f0 ff 74 5a 48
RSP: 0018:ffffc90014d2ea20 EFLAGS: 00000097
RAX: 0000000000000019 RBX: 0000000000000005 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8bf88d60 RDI: ffff888020fc62c0
RBP: ffffffff8bf88d60 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008e001 R12: ffff888020fc57c0
R13: ffff888020fc61f8 R14: 00000000ffffffff R15: ffff888020fc62c0
FS: 00007fb6a67fa700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc768582058 CR3: 000000006719f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__lock_is_held kernel/locking/lockdep.c:5409 [inline]
lock_is_held_type+0xa7/0x140 kernel/locking/lockdep.c:5711
lock_is_held include/linux/lockdep.h:283 [inline]
__might_resched+0x21/0x2c0 kernel/sched/core.c:9915
wait_on_buffer include/linux/buffer_head.h:383 [inline]
__nilfs_get_page_block fs/nilfs2/page.c:43 [inline]
nilfs_grab_buffer+0x2b3/0x600 fs/nilfs2/page.c:61
nilfs_btnode_submit_block+0xa3/0x870 fs/nilfs2/btnode.c:81
__nilfs_btree_get_block+0x10a/0x670 fs/nilfs2/btree.c:480
nilfs_btree_do_lookup+0x3eb/0x7d0 fs/nilfs2/btree.c:569
nilfs_btree_lookup+0x47/0x110 fs/nilfs2/btree.c:686
nilfs_bmap_lookup_at_level+0xcd/0x3e0 fs/nilfs2/bmap.c:69
nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline]
nilfs_mdt_submit_block+0x1a1/0xac0 fs/nilfs2/mdt.c:142
nilfs_mdt_read_block+0x92/0x3c0 fs/nilfs2/mdt.c:176
nilfs_mdt_get_block+0xe3/0xd80 fs/nilfs2/mdt.c:251
nilfs_palloc_get_block+0xc4/0x2b0 fs/nilfs2/alloc.c:216
nilfs_palloc_get_entry_block+0x167/0x1d0 fs/nilfs2/alloc.c:318
nilfs_dat_translate+0x7e/0x470 fs/nilfs2/dat.c:391
nilfs_bmap_lookup_at_level+0x237/0x3e0 fs/nilfs2/bmap.c:75
nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline]
nilfs_mdt_submit_block+0x1a1/0xac0 fs/nilfs2/mdt.c:142
nilfs_mdt_read_block+0x92/0x3c0 fs/nilfs2/mdt.c:176
nilfs_mdt_get_block+0xe3/0xd80 fs/nilfs2/mdt.c:251
nilfs_palloc_get_block+0xc4/0x2b0 fs/nilfs2/alloc.c:216
nilfs_palloc_get_entry_block+0x167/0x1d0 fs/nilfs2/alloc.c:318
nilfs_ifile_create_inode+0xec/0x260 fs/nilfs2/ifile.c:66
nilfs_new_inode+0x1ff/0x9b0 fs/nilfs2/inode.c:347
nilfs_create fs/nilfs2/namei.c:85 [inline]
nilfs_create+0xfe/0x300 fs/nilfs2/namei.c:75
lookup_open.isra.0+0xee7/0x1270 fs/namei.c:3413
open_last_lookups fs/namei.c:3481 [inline]
path_openat+0x975/0x2a50 fs/namei.c:3710
do_filp_open+0x1b6/0x400 fs/namei.c:3740
do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
do_sys_open fs/open.c:1326 [inline]
__do_sys_openat fs/open.c:1342 [inline]
__se_sys_openat fs/open.c:1337 [inline]
__x64_sys_openat+0x13f/0x1f0 fs/open.c:1337
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb6a5a8b5a9
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb6a67fa168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fb6a5babf80 RCX: 00007fb6a5a8b5a9
RDX: 000000000000275a RSI: 0000000020000080 RDI: ffffffffffffff9c
RBP: 00007fb6a5ae67b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc87379a7f R14: 00007fb6a67fa300 R15: 0000000000022000