[BUG] Attribute value quota charges are lost or counted under the wrong owner #11

Closed
opened 2026-09-29 14:55:47 +02:00 by erikinkinen · 0 comments
Owner

Summary

Original ext file growth and truncation recompute charged sectors from the data map and can discard immutable attribute-value charges. Quota scans also count physical value inodes as ordinary identity-bearing files, rather than accounting modern shared values per referencing owner. A later write or ownership change can therefore produce inconsistent persistent usage.

Reproduction

Use admitted ext media with a modern EA-inode attribute value and a regular file. Grow and then truncate the file through its original retained provider handle; compare its charged sectors and quota usage before and after. Also compare ownership changes while two descriptors share the same value. Source inspection establishes these paths; no runtime reproduction, image or host test has been executed.

Expected and actual behavior

Expected: preserve cluster-rounded modern value charges alongside data/mapping/external-table storage. Charge every modern descriptor's owner for its full value and inode quota, without independently charging the shared physical inode. Retain the legacy owner-bound value's original quota identities. Distinguish attribute charges from symlink data allocation during read and cleanup.

Actual: the data-map accounting helper omits value charges, the legacy truncation branch can also omit external-table storage, inline metadata writers set sectors to zero, and the quota scanner counts each physical inode once. The resulting usage depends on storage sharing and later data-map operations. Inline conversion also retained its old payload in scratch that quota traversal reused before payload publication; the correction persists those original bytes before that reuse, within the same transaction. No native authority escape is claimed.

Environment and identity

  • Component revision: E2fsd 407efa3ea1.
  • Integration selection: 328c153f6420049d75a57230d78c27703ce4bead.
  • Image/runtime/toolchain: not executed for this finding.
  • Route: already admitted original mounted ext inode and retained file operations.
  • Last known working revision: unknown.

Evidence and prior checks

Persistent ACL metadata checkpoint — 29 September 2026: e2fsd ac258003, docs 2d3de8f0, integration cd4f7625.

The original ext metadata operation now preflights all selected fields and complete access ACLs, changes only owner/group-or-mask/other permissions, and preserves named/default entries and full-width owner IDs. Shared tables and immutable values use copy-on-write with exact reference lifetimes. Local alias pressure uses actual table geometry, the other attribute store or value-inode storage. Root metadata follows the original native scope; the full nonzero table reference domain has no separate 1024-owner ceiling. The incompatible Hurd/EA count-word layout refuses during mount parsing.

Mode/ACL coherence and attribute accounting are implemented. Modern charges follow every descriptor's owner; legacy values retain original independent quota identities. Growth, truncation and inline conversion conserve charges, fast symlinks distinguish attributes from data, and retained inline payload is persisted before quota scanning reuses its scratch. Every edit retains the original transaction, checksums and permission epoch. Uncertain persistent completion remains fail-stop without replay. No capability, endpoint or private inode-selector ABI is added.

Twenty-four new controls are authored and unrun, covering actual media/provider metadata, sharing, full IDs, root, both storage-movement directions, large immutable ACLs, count/space exhaustion, quota identity/cluster charges, real quota-file inline conversion, growth/truncation, fast symlinks, journal rollback and uncertain writes. Rustfmt was applied. Changed Rust source remains below one thousand lines (maximum 922), with inline rustdoc and missing_docs retained. A read-only inventory covers 76 repositories and 3355 tracked source files; none reaches one thousand lines. Duplicate raw quota decoding was removed and directory allocation I/O was moved into its existing module.

The provider permission pass continues with operation-specific conditional native effects and native scenario authoring. Native filesystem mediation, both complete EriX guest-build generations and the external Rust/LLVM guest rebuild remain unfinished. The checklist now exposes the completed provider media portion separately; recalculation is 16.23% weighted, 4.81% whole-item, 20/460 parents and 437/897 sub-items. The weighted percentage still rounds to 16.23%; it has been recalculated. Reviews: provider, manual, Integration.

Source review covers media/quota.rs, mutation/extents.rs, file_io.rs, truncate.rs, inline_ops.rs, and symlink data selection. The correction belongs to the same persistent permission pass as ACL-aware mode changes. New accounting, identity-transfer and data-map controls are authored without execution under the user testing waiver.

Tracking

Continue within ext permission coherence and the mode/ACL correction. Reviews: provider, manual, Integration, and phase completion.

## Summary Original ext file growth and truncation recompute charged sectors from the data map and can discard immutable attribute-value charges. Quota scans also count physical value inodes as ordinary identity-bearing files, rather than accounting modern shared values per referencing owner. A later write or ownership change can therefore produce inconsistent persistent usage. ## Reproduction Use admitted ext media with a modern EA-inode attribute value and a regular file. Grow and then truncate the file through its original retained provider handle; compare its charged sectors and quota usage before and after. Also compare ownership changes while two descriptors share the same value. Source inspection establishes these paths; no runtime reproduction, image or host test has been executed. ## Expected and actual behavior Expected: preserve cluster-rounded modern value charges alongside data/mapping/external-table storage. Charge every modern descriptor's owner for its full value and inode quota, without independently charging the shared physical inode. Retain the legacy owner-bound value's original quota identities. Distinguish attribute charges from symlink data allocation during read and cleanup. Actual: the data-map accounting helper omits value charges, the legacy truncation branch can also omit external-table storage, inline metadata writers set sectors to zero, and the quota scanner counts each physical inode once. The resulting usage depends on storage sharing and later data-map operations. Inline conversion also retained its old payload in scratch that quota traversal reused before payload publication; the correction persists those original bytes before that reuse, within the same transaction. No native authority escape is claimed. ## Environment and identity - Component revision: E2fsd 407efa3ea1580a74806d6040e8cd05f2f81d932a. - Integration selection: 328c153f6420049d75a57230d78c27703ce4bead. - Image/runtime/toolchain: not executed for this finding. - Route: already admitted original mounted ext inode and retained file operations. - Last known working revision: unknown. ## Evidence and prior checks Persistent ACL metadata checkpoint — 29 September 2026: [e2fsd `ac258003`](https://git.erikinkinen.fi/erix/e2fsd/commit/ac2580033ecc3176faea703be41d0c947c0abd1f), [docs `2d3de8f0`](https://git.erikinkinen.fi/erix/docs/commit/2d3de8f040764eb6e236e4c1f88f71c9d693df12), [integration `cd4f7625`](https://git.erikinkinen.fi/erix/integration/commit/cd4f762543502a9d785331a2c001f26e0b1ce92a). The original ext metadata operation now preflights all selected fields and complete access ACLs, changes only owner/group-or-mask/other permissions, and preserves named/default entries and full-width owner IDs. Shared tables and immutable values use copy-on-write with exact reference lifetimes. Local alias pressure uses actual table geometry, the other attribute store or value-inode storage. Root metadata follows the original native scope; the full nonzero table reference domain has no separate 1024-owner ceiling. The incompatible Hurd/EA count-word layout refuses during mount parsing. [Mode/ACL coherence](https://git.erikinkinen.fi/erix/e2fsd/issues/10) and [attribute accounting](https://git.erikinkinen.fi/erix/e2fsd/issues/11) are implemented. Modern charges follow every descriptor's owner; legacy values retain original independent quota identities. Growth, truncation and inline conversion conserve charges, fast symlinks distinguish attributes from data, and retained inline payload is persisted before quota scanning reuses its scratch. Every edit retains the original transaction, checksums and permission epoch. Uncertain persistent completion remains fail-stop without replay. No capability, endpoint or private inode-selector ABI is added. Twenty-four new controls are authored and unrun, covering actual media/provider metadata, sharing, full IDs, root, both storage-movement directions, large immutable ACLs, count/space exhaustion, quota identity/cluster charges, real quota-file inline conversion, growth/truncation, fast symlinks, journal rollback and uncertain writes. Rustfmt was applied. Changed Rust source remains below one thousand lines (maximum 922), with inline rustdoc and missing_docs retained. A read-only inventory covers 76 repositories and 3355 tracked source files; none reaches one thousand lines. Duplicate raw quota decoding was removed and directory allocation I/O was moved into its existing module. The [provider permission pass](https://git.erikinkinen.fi/erix/e2fsd/issues/8) continues with operation-specific conditional native effects and native scenario authoring. [Native filesystem mediation](https://git.erikinkinen.fi/erix/posixd/issues/10), both complete EriX guest-build generations and the external Rust/LLVM guest rebuild remain unfinished. The checklist now exposes the completed provider media portion separately; recalculation is **16.23% weighted**, **4.81% whole-item**, **20/460 parents** and **437/897 sub-items**. The weighted percentage still rounds to 16.23%; it has been recalculated. Reviews: [provider](https://git.erikinkinen.fi/erix/e2fsd/pulls/3), [manual](https://git.erikinkinen.fi/erix/docs/pulls/4), [Integration](https://git.erikinkinen.fi/erix/integration/pulls/12). Source review covers media/quota.rs, mutation/extents.rs, file_io.rs, truncate.rs, inline_ops.rs, and symlink data selection. The correction belongs to the same persistent permission pass as ACL-aware mode changes. New accounting, identity-transfer and data-map controls are authored without execution under the user testing waiver. ## Tracking Continue within [ext permission coherence](https://git.erikinkinen.fi/erix/e2fsd/issues/8) and the [mode/ACL correction](https://git.erikinkinen.fi/erix/e2fsd/issues/10). Reviews: [provider](https://git.erikinkinen.fi/erix/e2fsd/pulls/3), [manual](https://git.erikinkinen.fi/erix/docs/pulls/4), [Integration](https://git.erikinkinen.fi/erix/integration/pulls/12), and [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65).
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:33:46 +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#11
No description provided.