EXT4-fs warning (device loop4): htree_dirblock_to_tree:1048: inode #12: lblock 0: comm syz-executor.4: error -12 reading directory block EXT4-fs warning (device loop4): ext4_empty_dir:2996: inode #12: lblock 0: comm syz-executor.4: error -12 reading directory block ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2984! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 371 Comm: syz-executor.4 Not tainted 5.4.274-syzkaller-00014-g70fafe094510 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 31 fc c8 ff 49 83 7e 18 00 74 2a e8 35 17 99 ff 49 83 c6 18 e9 6b ff ff ff e8 27 17 99 ff 0f 0b e8 20 17 99 ff <0f> 0b e8 19 17 99 ff 0f 0b e8 12 17 99 ff 0f 0b e8 0b 17 99 ff eb RSP: 0018:ffff8881d7e3f580 EFLAGS: 00010293 RAX: ffffffff81cb2500 RBX: 0000000000000001 RCX: ffff8881d9ca1f80 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000001 RBP: ffff8881d7e3f7b0 R08: ffffffff81cb08b9 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000070d R13: dffffc0000000000 R14: ffff8881ef097000 R15: 0000000000000019 FS: 00005555570f8480(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32835000 CR3: 00000001d7d7f000 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:0x7f2bcf87f6c7 Code: 73 01 c3 48 c7 c1 b0 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 b0 ff ff ff f7 d8 64 89 01 48