loop0: detected capacity change from 0 to 2048 loop0: detected capacity change from 2048 to 0 syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=88, nr_sectors = 2 limit=0 NILFS (loop0): I/O error reading meta-data file (ino=3, block-offset=2) ------------[ cut here ]------------ kernel BUG at fs/nilfs2/dir.c:578! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5118 Comm: syz.0.0 Not tainted 6.11.0-rc7-syzkaller-00020-g8d8d276ba2fb #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:nilfs_delete_entry+0x359/0x360 fs/nilfs2/dir.c:578 Code: e8 8c 0d 8b fe eb b9 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 10 ff ff ff 4c 89 ff e8 42 0d 8b fe e9 03 ff ff ff e8 f8 c4 23 fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000179faf8 EFLAGS: 00010283 RAX: ffffffff836fc7b8 RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000b7f9000 RSI: 000000000000df7e RDI: 000000000000df7f RBP: 00000000fffffffb R08: ffffffff836fc67e R09: 1ffff110082358cb R10: dffffc0000000000 R11: ffffed10082358cc R12: ffffea0001264300 R13: ffff88804990c050 R14: 0000000000000038 R15: ffff88804990c038 FS: 00007fb0713636c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb071341f98 CR3: 000000003c914000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_do_unlink+0x205/0x430 fs/nilfs2/namei.c:282 nilfs_unlink+0xed/0x1d0 fs/nilfs2/namei.c:303 vfs_unlink+0x365/0x650 fs/namei.c:4422 do_unlinkat+0x4ae/0x830 fs/namei.c:4486 __do_sys_unlinkat fs/namei.c:4529 [inline] __se_sys_unlinkat fs/namei.c:4522 [inline] __x64_sys_unlinkat+0xcc/0xf0 fs/namei.c:4522 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb07057def9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb071363038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007fb070735f80 RCX: 00007fb07057def9 RDX: 0000000000000000 RSI: 0000000020000380 RDI: ffffffffffffff9c RBP: 00007fb0705f09f6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb070735f80 R15: 00007ffc6336c5b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:nilfs_delete_entry+0x359/0x360 fs/nilfs2/dir.c:578 Code: e8 8c 0d 8b fe eb b9 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 10 ff ff ff 4c 89 ff e8 42 0d 8b fe e9 03 ff ff ff e8 f8 c4 23 fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000179faf8 EFLAGS: 00010283 RAX: ffffffff836fc7b8 RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000b7f9000 RSI: 000000000000df7e RDI: 000000000000df7f RBP: 00000000fffffffb R08: ffffffff836fc67e R09: 1ffff110082358cb R10: dffffc0000000000 R11: ffffed10082358cc R12: ffffea0001264300 R13: ffff88804990c050 R14: 0000000000000038 R15: ffff88804990c038 FS: 00007fb0713636c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb064aff000 CR3: 000000003c914000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400