loop0: detected capacity change from 0 to 4096 loop0: detected capacity change from 4096 to 0 syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=86, 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-00151-gd42f7708e27c #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 ac 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 62 0d 8b fe e9 03 ff ff ff e8 a8 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:ffffc90002e4faf8 EFLAGS: 00010283 RAX: ffffffff836fc808 RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000b7f9000 RSI: 000000000000b678 RDI: 000000000000b679 RBP: 00000000fffffffb R08: ffffffff836fc6ce R09: 1ffff1100861cc00 R10: dffffc0000000000 R11: ffffed100861cc01 R12: ffffea0001307540 R13: ffff88804c1d5050 R14: 0000000000000038 R15: ffff88804c1d5038 FS: 00007fab0bda56c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fab0b0f42a8 CR3: 000000003dd9e000 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:0x7fab0af7def9 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:00007fab0bda5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007fab0b135f80 RCX: 00007fab0af7def9 RDX: 0000000000000000 RSI: 0000000020000c40 RDI: ffffffffffffff9c RBP: 00007fab0aff0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fab0b135f80 R15: 00007ffe0e4989a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:nilfs_delete_entry+0x359/0x360 fs/nilfs2/dir.c:578 Code: e8 ac 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 62 0d 8b fe e9 03 ff ff ff e8 a8 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:ffffc90002e4faf8 EFLAGS: 00010283 RAX: ffffffff836fc808 RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000b7f9000 RSI: 000000000000b678 RDI: 000000000000b679 RBP: 00000000fffffffb R08: ffffffff836fc6ce R09: 1ffff1100861cc00 R10: dffffc0000000000 R11: ffffed100861cc01 R12: ffffea0001307540 R13: ffff88804c1d5050 R14: 0000000000000038 R15: ffff88804c1d5038 FS: 00007fab0bda56c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000100 CR3: 000000003dd9e000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400