jouleclaw-attest-vendor: read TDX and SNP fields at their published offsets #389
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/attest-vendor-offsets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while verifying sweep 2026-10-19 item #5 (attestation). It is not part of the sweep's list.
jouleclaw-attest-vendorread the wrong bytes for most of the fields it emits. Its test fixtures were built from the same constants, so nothing could catch it.Unchanged: SNP report_data at 0x050 and host_data at 0x0C0 were already right.
Every offset is the one
sandbox-tee's verifier uses, and agrees with the published layouts. The parser now also refuses, rather than reading them at TD offsets:tee_typeis not TDX (0x81);Tests. The fixtures are rewritten from literal published offsets, independent of the parser's constants. Every field gets its own marker, with decoys at the offsets that were read before.
Also fixed in the same functions: clippy's
vec_init_then_push, and a module-doc list item clippy flagged. The doc no longer claims atcb_svnfield it never emitted.Reach. No crate in the tree depends on this one, so the defect was latent.
Verification (build host)
-D warningsand rustdoc-D warningsare clean.🤖 Generated with Claude Code