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: 375 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:ffff8881d65d7580 EFLAGS: 00010293 RAX: ffffffff81cb2500 RBX: 0000000000000001 RCX: ffff8881e0d5cec0 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000001 RBP: ffff8881d65d77b0 R08: ffffffff81cb08b9 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000070d R13: dffffc0000000000 R14: ffff8881db6b0000 R15: 0000000000000019 FS: 0000555555d44480(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d62b000 CR3: 00000001d652f000 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:0x7f14456106c7 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 RSP: 002b:00007ffd46aced78 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f14456106c7 RDX: 0000000000000200 RSI: 00007ffd46acff20 RDI: 00000000ffffff9c RBP: 00007f144565c336 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000207 R12: 00007ffd46acff20 R13: 00007f144565c336 R14: 000000000001cf75 R15: 0000000000000008 Modules linked in: ---[ end trace 5c5d795d31da942e ]--- 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:ffff8881d65d7580 EFLAGS: 00010293 RAX: ffffffff81cb2500 RBX: 0000000000000001 RCX: ffff8881e0d5cec0 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000001 RBP: ffff8881d65d77b0 R08: ffffffff81cb08b9 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000070d R13: dffffc0000000000 R14: ffff8881db6b0000 R15: 0000000000000019 FS: 0000555555d44480(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555d5d898 CR3: 00000001d652f000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400