Skip to content

Baobit audit#822

Merged
bunnie merged 5 commits intomainfrom
baobit-audit
Feb 16, 2026
Merged

Baobit audit#822
bunnie merged 5 commits intomainfrom
baobit-audit

Conversation

@bunnie
Copy link
Copy Markdown
Member

@bunnie bunnie commented Feb 16, 2026

Contains the code needed to shuffle the baobit toolchain injection until the final signing operation.

the baobit commit will be injected at final file packaging time
in order to prevent the recursive introspection issue, the
code image is built from a reproducible toolchain from
a given commit on xous-core. However, in order for us to
record *which* toolchain was used, it's impossible to do
this without modifying the commit hash of the toolchain -
thus making it impossible to know what toolchain was actually
used to build the reproducible code.

The fix to this is to out-of-band, at the final signature time,
patch over a field in the signature header expressly laid out
to accommodate the hash.
the sealed data records are laid out with some extra space
at the end for future expansion.

The first such expansion added is a toolchain hash, which allows
us to note which toolchain is required to reproduce the current
image.

The change is backward compatible so the version field of
the record is *not* incremented.
- include the toolchain hash for reproduction iff it is
specified
- for the code hash, report *only* the code region, none of
the signature headers. This should match exactly what is
reported by the *_presign.img artifacts.
@bunnie bunnie merged commit 5397e1b into main Feb 16, 2026
17 checks passed
@bunnie bunnie deleted the baobit-audit branch February 16, 2026 12:14
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