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=102, nr_sectors = 2 limit=0 NILFS (loop0): I/O error reading b-tree node block (ino=3, blocknr=51) ------------[ cut here ]------------ kernel BUG at fs/nilfs2/dir.c:544! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5110 Comm: syz.0.0 Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #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:544 Code: e8 dc d9 88 fe eb b9 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 10 ff ff ff 4c 89 ff e8 92 d9 88 fe e9 03 ff ff ff e8 08 26 1f 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: 0000:ffffc90002e0fb18 EFLAGS: 00010287 RAX: ffffffff8375c018 RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000b561000 RSI: 0000000000001508 RDI: 0000000000001509 RBP: 00000000fffffffb R08: ffffffff8375bede R09: 1ffff110025c5c3a R10: dffffc0000000000 R11: ffffed10025c5c3b R12: ffffea00012e30c0 R13: ffff88804b8c3050 R14: 0000000000000038 R15: ffff88804b8c3038 FS: 00007fed6dec76c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557c9f12c1d8 CR3: 000000001fd5e000 CR4: 0000000000352ef0 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:4469 do_unlinkat+0x4ae/0x830 fs/namei.c:4533 __do_sys_unlink fs/namei.c:4581 [inline] __se_sys_unlink fs/namei.c:4579 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4579 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:0x7fed6d17dff9 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:00007fed6dec7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fed6d335f80 RCX: 00007fed6d17dff9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000580 RBP: 00007fed6d1f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fed6d335f80 R15: 00007fff6107cfe8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:nilfs_delete_entry+0x359/0x360 fs/nilfs2/dir.c:544 Code: e8 dc d9 88 fe eb b9 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 10 ff ff ff 4c 89 ff e8 92 d9 88 fe e9 03 ff ff ff e8 08 26 1f 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: 0000:ffffc90002e0fb18 EFLAGS: 00010287 RAX: ffffffff8375c018 RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000b561000 RSI: 0000000000001508 RDI: 0000000000001509 RBP: 00000000fffffffb R08: ffffffff8375bede R09: 1ffff110025c5c3a R10: dffffc0000000000 R11: ffffed10025c5c3b R12: ffffea00012e30c0 R13: ffff88804b8c3050 R14: 0000000000000038 R15: ffff88804b8c3038 FS: 00007fed6dec76c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557c9f24c9a8 CR3: 000000001fd5e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400