https://bugzilla.kernel.org/show_bug.cgi?id=200443 Bug ID: 200443 Summary: Operating non-crafted Ext4 image with inline_inodes option enabled causes "checksum invalid" error Product: File System Version: 2.5 Kernel Version: v4.18-rc3 or tytso/dev (9a4bd84) Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: ext4 Assignee: fs_ext4@xxxxxxxxxxxxxxxxxxxx Reporter: anatoly.trosinenko@xxxxxxxxx Regression: No Created attachment 277273 --> https://bugzilla.kernel.org/attachment.cgi?id=277273&action=edit Reproducer Operating non-crafted Ext4 image with inline_inodes option enabled causes "checksum invalid" error How to reproduce: 1) dd if=/dev/zero of=ext4 bs=1M count=8 mkfs.ext4 ext4 -O inline_data -I 1024 # mke2fs 1.44.1 (24-Mar-2018) 2) Compile either v4.18-rc3 or tytso/dev (9a4bd84) with the attached config 3) Compile ext4-bug.c (see attachment for full source) char buf[64]; int main() { int fd = creat("./xyz", 0x30); truncate("./xyz", 1133); for (int i = 0; i < sizeof(buf); ++i) buf[i] = i + 1; write(fd, buf, 48); return 0; } 4) mount /dev/sda /mnt -t ext4 cd /mnt ../ext4-bug cd / umount /mnt mount /dev/sda /mnt -t ext4 #mount /mnt -o remount # Remounting gives different error message rmdir /mnt/xyz What happens: [ 4.848416] EXT4-fs error (device sda): ext4_iget:4812: inode #12: comm init: checksum invalid rmdir: '/mnt/xyz': Bad message -- You are receiving this mail because: You are watching the assignee of the bug.