Skip to content

fix: enforce Linux x86_64 platform boundary#246

Merged
swananan merged 1 commit into
mainfrom
fix/enforce-x86-64-platform
Jul 12, 2026
Merged

fix: enforce Linux x86_64 platform boundary#246
swananan merged 1 commit into
mainfrom
fix/enforce-x86-64-platform

Conversation

@swananan

Copy link
Copy Markdown
Owner

Summary

  • fail runtime builds outside Linux x86_64
  • reject unsupported installer hosts, architectures, and release assets
  • reject non-x86_64 ELF targets before DWARF interpretation or attach
  • align SCOPE-1 documentation and regression evidence with enforcement

Review notes

The platform-specific register, ABI, TLS, and unwind paths are x86_64-only.
Release artifacts alone did not prevent unsupported source builds or targets.
This change makes those boundaries fail closed at build, install, and runtime.

During review, the installer was also updated to reject x86_64 non-Linux
hosts, matching the documented Linux x86_64 support envelope.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test -p ghostscope-process -p ghostscope-dwarf --lib
  • cargo test -p ghostscope --all-features
  • unsupported AArch64 target e2e
  • full host-to-host e2e (runner job 7b2637cbc9a1)
  • installer syntax and Linux/architecture rejection checks

The first full e2e run hit a late-start/sysmon timing failure in an existing
test. Its focused rerun passed, followed by a complete successful full run.
Container-topology e2e was intentionally skipped because this change does not
affect container or PID-namespace behavior.

Reject unsupported build targets, installer hosts, and target ELF
objects before architecture-specific tracing logic can run.

Keep the SCOPE-1 contract aligned with compile-time, install-time,
runtime, and regression-test enforcement.
@swananan
swananan merged commit ad54a24 into main Jul 12, 2026
10 checks passed
@swananan
swananan deleted the fix/enforce-x86-64-platform branch July 12, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant