EXT4-fs warning (device loop0): ext4_empty_dir:2996: inode #12: lblock 0: comm syz-executor: error -12 reading directory block EXT4-fs warning (device loop0): ext4_dirblock_csum_set:410: inode #2: comm syz-executor: No space for directory leaf checksum. Please run e2fsck -D. ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2984! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 1392 Comm: syz-executor Not tainted 5.4.276-syzkaller-00020-g4275fce9fe94 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline] RIP: 0010:ext4_free_blocks+0x2290/0x2310 fs/ext4/mballoc.c:4861 Code: 08 48 89 df e8 21 fc c8 ff 49 83 7e 18 00 74 2a e8 f5 16 99 ff 49 83 c6 18 e9 6b ff ff ff e8 e7 16 99 ff 0f 0b e8 e0 16 99 ff <0f> 0b e8 d9 16 99 ff 0f 0b e8 d2 16 99 ff 0f 0b e8 cb 16 99 ff eb RSP: 0018:ffff8881deaaf580 EFLAGS: 00010293 RAX: ffffffff81cb2220 RBX: 0000000000000001 RCX: ffff8881e1830fc0 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000001 RBP: ffff8881deaaf7b0 R08: ffffffff81cb05d9 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000070d R13: dffffc0000000000 R14: ffff8881eb892000 R15: 0000000000000019 FS: 0000555556759500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4b08dbafa8 CR3: 00000001dec52000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_remove_blocks fs/ext4/extents.c:2726 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2879 [inline] ext4_ext_remove_space+0x2758/0x4ba0 fs/ext4/extents.c:3124 ext4_truncate+0xb23/0x1290 fs/ext4/inode.c:4641 ext4_evict_inode+0x126a/0x1ac0 fs/ext4/inode.c:308 evict+0x29b/0x6a0 fs/inode.c:575 d_delete_notify include/linux/fsnotify.h:224 [inline] vfs_rmdir+0x24b/0x3c0 fs/namei.c:4040 do_rmdir+0x2c1/0x580 fs/namei.c:4088 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7febea4a5217 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 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:00007ffca1f11638 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007febea4a5217 RDX: 0000000000000200 RSI: 00007ffca1f127e0 RDI: 00000000ffffff9c RBP: 00007febea51364a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000207 R12: 00007ffca1f127e0 R13: 00007febea51364a R14: 0000000000010ad3 R15: 00007ffca1f149c0 Modules linked in: ---[ end trace a382b6bfee649928 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline] RIP: 0010:ext4_free_blocks+0x2290/0x2310 fs/ext4/mballoc.c:4861 Code: 08 48 89 df e8 21 fc c8 ff 49 83 7e 18 00 74 2a e8 f5 16 99 ff 49 83 c6 18 e9 6b ff ff ff e8 e7 16 99 ff 0f 0b e8 e0 16 99 ff <0f> 0b e8 d9 16 99 ff 0f 0b e8 d2 16 99 ff 0f 0b e8 cb 16 99 ff eb RSP: 0018:ffff8881deaaf580 EFLAGS: 00010293 RAX: ffffffff81cb2220 RBX: 0000000000000001 RCX: ffff8881e1830fc0 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000001 RBP: ffff8881deaaf7b0 R08: ffffffff81cb05d9 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000070d R13: dffffc0000000000 R14: ffff8881eb892000 R15: 0000000000000019 FS: 0000555556759500(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1c369c5ab8 CR3: 00000001dec52000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400