EXT4-fs warning (device loop1): ext4_empty_dir:2996: inode #12: lblock 0: comm syz-executor: 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: 1465 Comm: syz-executor Tainted: G W 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:ffff8881d1167580 EFLAGS: 00010293 RAX: ffffffff81cb2220 RBX: 0000000000000001 RCX: ffff8881db009f80 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000001 RBP: ffff8881d11677b0 R08: ffffffff81cb05d9 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000070d R13: dffffc0000000000 R14: ffff8881e8502000 R15: 0000000000000019 FS: 00005555566d2500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001eca37000 CR4: 00000000003426b0 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:0x7f80b6616217 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:00007ffdfd6d0f58 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f80b6616217 RDX: 0000000000000200 RSI: 00007ffdfd6d2100 RDI: 00000000ffffff9c RBP: 00007f80b668464a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000207 R12: 00007ffdfd6d2100 R13: 00007f80b668464a R14: 00000000000276ba R15: 00007ffdfd6d42e0 Modules linked in: ---[ end trace 673e9802a1efaf36 ]--- 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:ffff8881d1167580 EFLAGS: 00010293 RAX: ffffffff81cb2220 RBX: 0000000000000001 RCX: ffff8881db009f80 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000001 RBP: ffff8881d11677b0 R08: ffffffff81cb05d9 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000070d R13: dffffc0000000000 R14: ffff8881e8502000 R15: 0000000000000019 FS: 00005555566d2500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d6bef5178 CR3: 00000001eca37000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400