WIP: Validate original ELF TLS templates and preserve loader policy #2

Closed
erikinkinen wants to merge 10 commits from feature/posix-compat into main
Owner

Summary and rationale

Inspect original PT_TLS templates with checked file and memory geometry while preserving the native static loader policy. Keep the duplicate same-repository PR CI guard as part of the coordinated branch scope.

Tracking and scope

The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue.

Architecture, authority and failure behavior

PT_TLS validation borrows the same immutable file prefix, checks flags, alignment/residue and complete file/memory extents, and initializes only explicit caller-owned bytes after full preflight. Empty prefixes access no file offset, and BSS remains per-thread storage. The parser performs no I/O or capability operations.

The original TLS template/image contract separates descriptive module/pointer values from actual native memory and execution authority. Native static load policy still refuses TLS; template inspection does not admit complete executable TLS, libc consumers or guest production.

CI event metadata skips duplicate same-repository PR jobs while preserving fork PR, push and manual eligibility. A skipped job is not test-pass evidence. Source publication, runtime consumers and full phase acceptance retain their separate requirements.

Validation evidence

Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance.

Review checklist

  • Original change preserves dependency selections and runtime authority.
  • Signed commit uses a tagged title and an explanatory body.
  • Inline comments explain the guard; code files remain below 1,000 lines.
  • Shared template and testing manual document the same CI rule.
  • Shared governance and issue/PR template files remain unchanged.
  • Related issues and phase metadata track the implemented workflow scope.
  • No secrets, private reports or unsupported validation claims are published.

This review remains WIP until its declared scope and dependent requirements are complete.

## Summary and rationale Inspect original PT_TLS templates with checked file and memory geometry while preserving the native static loader policy. Keep the duplicate same-repository PR CI guard as part of the coordinated branch scope. ## Tracking and scope - [meta #2](https://git.erikinkinen.fi/erix/meta/issues/2) - [lib-elf #1](https://git.erikinkinen.fi/erix/lib-elf/issues/1) - [integration #65](https://git.erikinkinen.fi/erix/integration/issues/65) The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue. ## Architecture, authority and failure behavior PT_TLS validation borrows the same immutable file prefix, checks flags, alignment/residue and complete file/memory extents, and initializes only explicit caller-owned bytes after full preflight. Empty prefixes access no file offset, and BSS remains per-thread storage. The parser performs no I/O or capability operations. The [original TLS template/image contract](https://git.erikinkinen.fi/erix/lib-dynlink/src/branch/feature/posix-compat/docs/thread-tls.md) separates descriptive module/pointer values from actual native memory and execution authority. Native static load policy still refuses TLS; template inspection does not admit complete executable TLS, libc consumers or guest production. CI event metadata skips duplicate same-repository PR jobs while preserving fork PR, push and manual eligibility. A skipped job is not test-pass evidence. Source publication, runtime consumers and full phase acceptance retain their separate requirements. ## Validation evidence Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance. ## Review checklist - [x] Original change preserves dependency selections and runtime authority. - [x] Signed commit uses a tagged title and an explanatory body. - [x] Inline comments explain the guard; code files remain below 1,000 lines. - [x] Shared template and testing manual document the same CI rule. - [x] Shared governance and issue/PR template files remain unchanged. - [x] Related issues and phase metadata track the implemented workflow scope. - [x] No secrets, private reports or unsupported validation claims are published. This review remains WIP until its declared scope and dependent requirements are complete.
ci: Skip duplicate same-repository pull request jobs
All checks were successful
CI / markdown (push) Successful in 8s
CI / test (push) Successful in 26s
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
c0b77f6e01
Skip pull-request jobs when the head and base repository names match,
since push CI already covers these branches. Retain fork pull-request,
push and manual execution and existing release publication conditions.
Apply the guard before any job steps, including Markdown validation.

Test execution and CI observation are deferred at the user's request;
no execution result is claimed for this workflow-only change.
feat: Validate original ELF TLS templates
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 6s
CI / test (push) Successful in 19s
79beb26a50
Borrow the initialized PT_TLS prefix from the same immutable ELF file and
validate unique template flags, alignment residue and complete checked extents.
Initialize only explicit caller blocks after full preflight, preserving zero
suffix, refusal and spare bytes without native mapping or process authority.
Keep static native TLS rejection until complete runtime producers exist;
author independent malformed, zero-prefix, overflow and refusal controls.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
erikinkinen changed title from WIP: Skip duplicate same-repository pull request jobs to WIP: Validate original ELF TLS templates and preserve loader policy 2026-10-11 22:30:54 +02:00
ci: Adopt the signed original Git dependency helper
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / test (push) Successful in 19s
4df1fbf8cf
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
ci: Adopt the signed original Git dependency helper
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / test (push) Successful in 26s
d121657ff8
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
ci: Select the reviewed native process custody helper
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Failing after 12s
53885997e9
Select the coherent Integration source for dependency preparation and
native process ownership. This keeps helper inputs aligned with the
published runtime producer and refuses unsupported descriptor queries
before starting a child.
docs: Remove the superseded testing deferral
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Failing after 10s
CI / markdown (push) Successful in 7s
872eec3cb2
Remove the outdated execution-waiver instruction from the roadmap so it reflects the active development workflow. Retain the component contract and open conformance, lifecycle and guest requirements.
ci: Adopt the repaired native signal owner
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / test (push) Successful in 33s
15a59a7c54
Select the coherent Integration helper that admits observed default or
ignored reserved signals while preserving complete native action identity.
Keep the existing workflow commands and limits for Integration #118.
ci: Carry checked Cargo inputs through component jobs
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Failing after 30s
CI / markdown (push) Has started running
46a59cd73e
Prepare Cargo inputs with the selected Integration helper and carry its
workspace, environment and target directory through the existing CI steps.
Keep shared dependency and review policies aligned.

Refs: erix/integration#142
ci: Select the repaired Cargo gateway
Some checks are pending
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 31s
CI / test (push) Has started running
433a2aecc5
Use the shared gateway that selects installed Rust tools when a component
has no toolchain file. Keep tool selection, feature-branch resolution and
original source checks together in the pinned helper snapshot.

Refs: erix/integration#147
ci: Use the shared acquisition fix for packed Git transfers
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 19s
f92bcaae89
Use the shared acquisition fix for packed Git transfers. The pinned helper
keeps unexpected object-store metadata outside the acquired source context.

Refs: erix/integration#150
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:44 +01:00
Author
Owner

Replaced by #4. These feature branches preserve the original source in separate changes. Closing this combined PR without merging it; the original branch is retained.

Replaced by [#4](https://git.erikinkinen.fi/erix/lib-elf/pulls/4). These feature branches preserve the original source in separate changes. Closing this combined PR without merging it; the original branch is retained.
erikinkinen closed this pull request 2026-10-30 15:25:25 +01:00
All checks were successful
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 19s
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No description provided.