loop2: detected capacity change from 0 to 2048 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 15851 at fs/nilfs2/dat.c:193 nilfs_dat_commit_end+0x55c/0x6e0 fs/nilfs2/dat.c:193 Modules linked in: CPU: 0 PID: 15851 Comm: syz-executor.2 Not tainted 6.1.0-next-20221216-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:nilfs_dat_commit_end+0x55c/0x6e0 fs/nilfs2/dat.c:193 Code: 02 00 0f 85 92 01 00 00 49 8b 7c 24 28 48 c7 c2 20 8c 8e 8a 48 c7 c6 40 8e 8e 8a e8 24 ae 9f 06 e9 6b ff ff ff e8 b4 6f 56 fe <0f> 0b 4d 89 ef e9 77 fc ff ff e8 a5 6f 56 fe e8 a0 9e d5 fd e9 dc RSP: 0018:ffffc900167e7438 EFLAGS: 00010216 RAX: 00000000000072cb RBX: ffff888021c98a20 RCX: ffffc9000ccfe000 RDX: 0000000000040000 RSI: ffffffff832ae2bc RDI: 0000000000000006 RBP: ffff88801c49b518 R08: 0000000000000006 R09: 0000000200000002 R10: 0000000000000003 R11: 0000000000000000 R12: ffff8880732f54a0 R13: 0000000000000003 R14: ffff88801c49b530 R15: 0000000200000002 FS: 00007f2888f5c700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc014cbe000 CR3: 000000002b1c1000 CR4: 00000000003526f0 Call Trace: nilfs_bmap_commit_end_ptr fs/nilfs2/bmap.h:219 [inline] nilfs_btree_commit_delete fs/nilfs2/btree.c:1562 [inline] nilfs_btree_delete+0x8aa/0x1100 fs/nilfs2/btree.c:1593 nilfs_bmap_do_delete+0x225/0x2e0 fs/nilfs2/bmap.c:176 nilfs_bmap_do_truncate fs/nilfs2/bmap.c:264 [inline] nilfs_bmap_truncate+0x10d/0x300 fs/nilfs2/bmap.c:297 nilfs_truncate_bmap+0x14a/0x360 fs/nilfs2/inode.c:846 nilfs_truncate+0x264/0x510 fs/nilfs2/inode.c:876 nilfs_setattr+0x257/0x2b0 fs/nilfs2/inode.c:972 notify_change+0xca7/0x1420 fs/attr.c:482 do_truncate+0x143/0x200 fs/open.c:65 handle_truncate fs/namei.c:3216 [inline] do_open fs/namei.c:3561 [inline] path_openat+0x2157/0x2a50 fs/namei.c:3714 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_creat fs/open.c:1402 [inline] __se_sys_creat fs/open.c:1396 [inline] __x64_sys_creat+0xcd/0x120 fs/open.c:1396 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:0x7f288828c0d9 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:00007f2888f5c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f28883abf80 RCX: 00007f288828c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240 RBP: 00007f28882e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffffc2431f R14: 00007f2888f5c300 R15: 0000000000022000