[BUG] Valid short EXT inodes are rejected by a full-width checksum comparison #22

Open
opened 2026-10-12 14:27:57 +02:00 by erikinkinen · 0 comments
Owner

Summary

The inode verifier rejects valid short inodes by comparing their stored 16-bit checksum with a full 32-bit accumulator.

Reproduction

At the original source, encode a 128-byte inode with metadata_csum, seed 0x12345678, inode 2, generation 1 and mode 040755; leave other fields zero. The accumulator is 0x66c76e06. Store its low word 0x6e06 at bytes 124–125.

Expected and actual behavior

Compare the checksum at its represented width. The high word is present only within initialized extra inode fields; preserve full-width checking when it exists and include other extra bytes as ordinary covered data.

Environment and identity

  • x86-64 host component controls; no guest image is claimed.
  • Original inode bytes and identity, with no additional authority.
  • No known working revision has been established.

Evidence and prior checks

The primary inode format defines checksum fields and initialized extra size. Independent CRC, corruption, wrong-identity and unchanged-refusal-buffer controls are required.

Tracking

Fixes and independent checksum coverage are included in #44.

## Summary The inode verifier rejects valid short inodes by comparing their stored 16-bit checksum with a full 32-bit accumulator. ## Reproduction At the [original source](https://git.erikinkinen.fi/erix/e2fsd/commit/626bcd7b9c63cfe3eca07036260cb1265164f8c0), encode a 128-byte inode with `metadata_csum`, seed `0x12345678`, inode 2, generation 1 and mode `040755`; leave other fields zero. The accumulator is `0x66c76e06`. Store its low word `0x6e06` at bytes 124–125. ## Expected and actual behavior Compare the checksum at its represented width. The high word is present only within initialized extra inode fields; preserve full-width checking when it exists and include other extra bytes as ordinary covered data. ## Environment and identity - x86-64 host component controls; no guest image is claimed. - Original inode bytes and identity, with no additional authority. - No known working revision has been established. ## Evidence and prior checks The primary [inode format](https://kernel.org/doc/html/latest/filesystems/ext4/inodes.html) defines checksum fields and initialized extra size. Independent CRC, corruption, wrong-identity and unchanged-refusal-buffer controls are required. ## Tracking Fixes and independent checksum coverage are included in #44.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:33:47 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/e2fsd#22
No description provided.