INFO: task segctord:22066 blocked for more than 143 seconds.
Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:segctord state:D stack:29632 pid:22066 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0xb8a/0x5450 kernel/sched/core.c:6555
schedule+0xde/0x1b0 kernel/sched/core.c:6631
rwsem_down_write_slowpath+0x600/0x12e0 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+0x1e8/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+0x3bc/0xf30 fs/nilfs2/segment.c:2570
kthread+0x2e8/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/11:
#0: ffffffff8c78df70 (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/12:
#0: ffffffff8c78dc70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/27:
#0: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494
2 locks held by getty/4735:
#0: ffff88802b7dc098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc900020282f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177
2 locks held by kworker/u4:2/5197:
2 locks held by kworker/u4:12/18333:
#0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
#0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
#0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
#0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
#1: ffffc90003d4fda8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
3 locks held by syz-executor.3/22068:
3 locks held by syz-executor.1/22065:
1 lock held by segctord/22066:
#0: ffff888076fe92a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x266/0x410 fs/nilfs2/segment.c:357
2 locks held by syz-executor.5/22815:
#0: ffff8880796d80e0 (&type->s_umount_key#66){++++}-{3:3}, at: iterate_supers+0xdf/0x2a0 fs/super.c:722
#1: ffff888146a927d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline]
#1: ffff888146a927d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x190/0x9e0 fs/fs-writeback.c:2723
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #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+0xd1/0x138 lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x333/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+0xc75/0xfc0 kernel/hung_task.c:377
kthread+0x2e8/0x3a0 kernel/kthread.c:376
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: 22065 Comm: syz-executor.1 Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:arch_irqs_disabled_flags arch/x86/include/asm/irqflags.h:125 [inline]
RIP: 0010:lock_acquire kernel/locking/lockdep.c:5669 [inline]
RIP: 0010:lock_acquire+0x1b8/0x630 kernel/locking/lockdep.c:5633
Code: 85 d2 0f 85 cc 00 00 00 9c 8f 44 24 08 fa 48 c7 c7 40 40 4c 8a e8 a8 6d a2 08 41 89 e8 44 89 e1 44 89 ea 65 ff 05 a0 6f 9f 7e <48> 81 64 24 08 00 02 00 00 44 89 fe 6a 00 4c 89 f7 6a 00 ff b4 24
RSP: 0018:ffffc90003dbe6c8 EFLAGS: 00000002
RAX: 0000000000000000 RBX: 1ffff920007b7cdc RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000001 R09: ffffffff8e721817
R10: fffffbfff1ce4302 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880b98372a0 R15: 0000000000000000
FS: 00007fe0b3fe5700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c013bdf000 CR3: 000000002289e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
local_lock_acquire include/linux/local_lock_internal.h:29 [inline]
mod_objcg_state+0x98/0xa50 mm/memcontrol.c:3167
memcg_slab_free_hook mm/slab.h:580 [inline]
memcg_slab_free_hook mm/slab.h:556 [inline]
__cache_free mm/slab.c:3377 [inline]
__do_kmem_cache_free mm/slab.c:3580 [inline]
kmem_cache_free mm/slab.c:3605 [inline]
kmem_cache_free+0x394/0x4c0 mm/slab.c:3598
free_buffer_head+0x4e/0xf0 fs/buffer.c:2915
try_to_free_buffers+0x1bc/0x2c0 fs/buffer.c:2856
filemap_release_folio+0x160/0x1b0 mm/filemap.c:3968
shrink_folio_list+0x1ea9/0x3a60 mm/vmscan.c:2000
shrink_inactive_list mm/vmscan.c:2526 [inline]
shrink_list mm/vmscan.c:2767 [inline]
shrink_lruvec+0xd0e/0x27a0 mm/vmscan.c:5951
shrink_node_memcgs mm/vmscan.c:6138 [inline]
shrink_node+0x8f2/0x1f40 mm/vmscan.c:6169
shrink_zones mm/vmscan.c:6407 [inline]
do_try_to_free_pages+0x3b4/0x17a0 mm/vmscan.c:6469
try_to_free_mem_cgroup_pages+0x3ae/0xa80 mm/vmscan.c:6786
reclaim_high.constprop.0+0x185/0x230 mm/memcontrol.c:2394
mem_cgroup_handle_over_high+0x190/0x520 mm/memcontrol.c:2580
try_charge_memcg+0xe0f/0x12f0 mm/memcontrol.c:2819
try_charge mm/memcontrol.c:2830 [inline]
charge_memcg+0x90/0x3b0 mm/memcontrol.c:6947
__mem_cgroup_charge+0x2b/0x90 mm/memcontrol.c:6968
mem_cgroup_charge include/linux/memcontrol.h:671 [inline]
__filemap_add_folio+0x615/0xf80 mm/filemap.c:853
filemap_add_folio+0xaf/0x1e0 mm/filemap.c:935
__filemap_get_folio+0x389/0xd80 mm/filemap.c:1977
pagecache_get_page+0x2e/0x280 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+0xc9/0x690 fs/nilfs2/page.c:57
nilfs_mdt_submit_block+0xa4/0xb40 fs/nilfs2/mdt.c:121
nilfs_mdt_read_block+0x92/0x3c0 fs/nilfs2/mdt.c:176
nilfs_mdt_get_block+0xe7/0xe00 fs/nilfs2/mdt.c:251
nilfs_sufile_get_segment_usage_block fs/nilfs2/sufile.c:92 [inline]
nilfs_sufile_truncate_range fs/nilfs2/sufile.c:679 [inline]
nilfs_sufile_resize+0x767/0x1280 fs/nilfs2/sufile.c:777
nilfs_resize_fs+0x1e7/0xeb0 fs/nilfs2/super.c:422
nilfs_ioctl_resize fs/nilfs2/ioctl.c:1033 [inline]
nilfs_ioctl+0x10ad/0x16f0 fs/nilfs2/ioctl.c:1301
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl fs/ioctl.c:856 [inline]
__x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe0b328c0c9
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:00007fe0b3fe5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe0b33abf80 RCX: 00007fe0b328c0c9
RDX: 0000000020000680 RSI: 0000000040086e8b RDI: 0000000000000005
RBP: 00007fe0b32e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffc1ef5d7f R14: 00007fe0b3fe5300 R15: 0000000000022000