------------[ cut here ]------------ WARNING: CPU: 1 PID: 3641 at fs/nilfs2/sufile.c:531 nilfs_sufile_set_segment_usage+0x518/0x6a0 fs/nilfs2/sufile.c:531 Modules linked in: CPU: 1 PID: 3641 Comm: syz-executor.1 Not tainted 6.1.0-rc4-syzkaller-00356-g8f2975c2bb4c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:nilfs_sufile_set_segment_usage+0x518/0x6a0 fs/nilfs2/sufile.c:531 Code: a4 53 fe 48 8b 6c 24 48 48 85 ed 0f 85 5b ff ff ff e9 63 ff ff ff e8 a7 a4 53 fe e8 9c 6f d7 fd e9 db fe ff ff e8 98 a4 53 fe <0f> 0b e9 0d fe ff ff e8 ec fa 9f fe e9 c6 fb ff ff e8 e2 fa 9f fe RSP: 0018:ffffc9000412f8c0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888082244168 RCX: 0000000000000000 RDX: ffff88801becba80 RSI: ffffffff832907e8 RDI: 0000000000000005 RBP: ffff88803e95f050 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000000 R13: 1ffff92000825f1d R14: ffff8880822445f0 R15: 0000000063700494 FS: 000055555720a400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe07d3cc68 CR3: 0000000039d34000 CR4: 0000000000350ee0 Call Trace: nilfs_segctor_update_segusage fs/nilfs2/segment.c:1447 [inline] nilfs_segctor_do_construct+0x1f78/0x6af0 fs/nilfs2/segment.c:2071 nilfs_segctor_construct+0x8e3/0xb30 fs/nilfs2/segment.c:2379 nilfs_segctor_write_out fs/nilfs2/segment.c:2701 [inline] nilfs_segctor_destroy fs/nilfs2/segment.c:2734 [inline] nilfs_detach_log_writer+0x3bb/0x9f0 fs/nilfs2/segment.c:2814 nilfs_put_super+0x3f/0x1a0 fs/nilfs2/super.c:468 generic_shutdown_super+0x154/0x410 fs/super.c:492 kill_block_super+0x97/0xf0 fs/super.c:1428 deactivate_locked_super+0x94/0x160 fs/super.c:332 deactivate_super+0xad/0xd0 fs/super.c:363 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1186 task_work_run+0x16b/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:296 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2c0028caa7 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 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:00007ffe07d3d3a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f2c0028caa7 RDX: 00007ffe07d3d47b RSI: 000000000000000a RDI: 00007ffe07d3d470 RBP: 00007ffe07d3d470 R08: 00000000ffffffff R09: 00007ffe07d3d240 R10: 000055555720b8b3 R11: 0000000000000246 R12: 00007f2c002e5826 R13: 00007ffe07d3e530 R14: 000055555720b810 R15: 00007ffe07d3e570