From 3ff309a6d2841ebb3f0991fb88838f34e10cdeb5 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 16:24:21 +0100 Subject: [PATCH] Record native toolchain and AArch64 package transactions --- BOOTSTRAP.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index ae45305..00b0baf 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -25,7 +25,7 @@ The retry produced `gcc-14.2.0-1-x86_64.pkg.tar.zst`, SHA-256 `136aeee3c040fcf35 The private build umask left some packaged compiler directories at mode 0700. Release 2 sets the packaged directories to 0755 and reuses the same configured GCC objects. The worker verified file metadata in all 46 compiler and C++ header directories and checked the target ELF load segments in `gcc-14.2.0-2-x86_64.pkg.tar.zst`, SHA-256 `aeba57d6dd36afd723cbaab6db3b2b1310c99c2f4c4a61cda77fe98dbb0f877a`. See `gnu/gcc-work/gcc-release-r3/gcc-r2.sha256` and the associated build attempt. -A fresh signed installation of that GCC revision, `build-base`, BusyBox init and the system accounts audited 23 packages, 3,792 owned paths and 104 target ELFs. See `gnu/gcc-final-verification-02/sdk/audit.log`, SHA-256 `f5478f0e2ec18da9c624508a6f537c99490982f9b07cecb5e8a838525d5525bd`. Running the compiler fixtures remains a separate acceptance check. The worker retained the configured objects with a verified archive and restoration path in `foundation/gcc-x86-checkpoint-archive-02`, receipt SHA-256 `e17f870c167cba4d3bc33df189a2168356567d9936d6360c9d8de45dbceaefed`. +A fresh signed installation of that GCC revision, `build-base`, BusyBox init and the system accounts audited 23 packages, 3,792 owned paths and 104 target ELFs. The installed toolchain compiled the six fixtures under PRoot. The first run failed when Make tried to start `./arithmetic`. The preserved executables all passed when run through the signed root's musl loader, including C++, OpenMP, 128-bit atomics, Graphite, LTO and GNU transactional memory. See `gnu/gcc-final-verification-02`, receipt SHA-256 `54cfc9537738786622b1d550243ea5308b342393d0bb65ffcc66be477a13f9aa`. The Vinix kernel guest check remains pending. The worker retained the configured objects with a verified archive and restoration path in `foundation/gcc-x86-checkpoint-archive-02`, receipt SHA-256 `e17f870c167cba4d3bc33df189a2168356567d9936d6360c9d8de45dbceaefed`. Installing `build-base` by name from a signed x86_64 repository brought in 17 packages. The installed-root audit checked 3,196 owned files and links and 95 target ELFs. ALPM gives the metapackage a zero-byte file list. The auditor checked its archive manifest for package metadata and also rejected an empty file list substituted for the installed musl record. See `foundation/installed-root-meta-02`, receipt SHA-256 `0632e6ff628e031080655367caa4aa01df213d328e32c1bae77a82bd766330f2`. @@ -98,7 +98,11 @@ The published x86_64 Vinix kernel booted that 22-package root. Both `gpgv` and t The x86_64 vpac recipe uses V at `597b0f6`, targets musl explicitly, and embeds the Vile resources. Its configuration check temporarily removes both input Scheme files and queries an installed signed musl record. The recipe uses the locked `nobody` account from `vinix-accounts` and keeps package and database signature checks enabled. The build peaked at 2,281,107,456 bytes with zero cgroup OOM events. The resulting `vpac-1.0.0-1-x86_64.pkg.tar.zst` has SHA-256 `f6aa20508a8bc62b5da8b5134657f8d12b1ff5c1609a87e2d7eae02759ea7786`. The worker recorded the pinned source trees in `foundation/vpac-vcs-pins-01`, receipt SHA-256 `2124cc24c72459f7274eb4a74c0d1fa4ec30896a35183e31e6786e9060666014`. -Release 2 handles the Vinix kernel's `ENOSYS` response to the Landlock ABI query. Downloads retain the locked account, no-new-privs and seccomp, and the transaction still verifies the signed package. The x86_64 install scenario refused a same-length modification of the signed netbase archive, installed the authentic archive, and verified its owner, signature and repository lookup. The upgrade scenario installed CA bundle release 3 over release 2 and verified the new record, signature, symlink, contents and owner. See `foundation/vpac-install-scenario-01` and `foundation/vpac-upgrade-scenario-01`, receipt SHA-256 `8aadaa39401e58548c4df2d50cc7147277df26d51a92920d23bf3cf7cdace8f5` and `2d19dacbd7df9dad4dc9e328e3473585c955b8356dafbc9ba58f1ae77feaff1a`. The combined x86_64 replay reported a completed upgrade and timed out before the fixture passed. The AArch64 target-vpac trials remain pending. +Release 2 handles the Vinix kernel's `ENOSYS` response to the Landlock ABI query. Downloads retain the locked account, no-new-privs and seccomp, and the transaction still verifies the signed package. The x86_64 install scenario refused a same-length modification of the signed netbase archive, installed the authentic archive, and verified its owner, signature and repository lookup. The upgrade scenario installed CA bundle release 3 over release 2 and verified the new record, signature, symlink, contents and owner. See `foundation/vpac-install-scenario-01` and `foundation/vpac-upgrade-scenario-01`, receipt SHA-256 `8aadaa39401e58548c4df2d50cc7147277df26d51a92920d23bf3cf7cdace8f5` and `2d19dacbd7df9dad4dc9e328e3473585c955b8356dafbc9ba58f1ae77feaff1a`. The combined x86_64 replay reported a completed upgrade and timed out before the fixture passed. + +`vpac-1.0.0-2-aarch64.pkg.tar.zst` has SHA-256 `8a4080716ebed22c948e0cb54c0dfaf08decfe0fa26eca85e8f7b388883da3d5`. The published AArch64 Vinix kernel booted a 40-package signed root, refused a modified netbase archive, installed the authentic package, and verified its signature, owner and lookup results. See `arm/abi16/guest-vpac-03`, receipt SHA-256 `7edee67a20ef2ec6993f9a5148a634cc1a667d93464cb2dac076760f18f40169`. The public `pkg` upgrade fixture has its own acceptance check. + +The AArch64 public `pkg` fixture passed package update, search, install and removal using the signed netbase archive. The first boot timed out after installing the package. The worker booted the same ext2 fixture with a longer timeout and verified the matching disk identity and transcript. See `foundation/vinix-pkg-guest-arm16-01`, receipt SHA-256 `1fca972af159621a7955ff978a32e63df0f4a7950908b64af9c2ebc80fbd4c6a`. For later builds, `tools/build-queue.py` uses the source order and a verified bootstrap feed. Place the input archives and a `NAME.sha256` receipt for each in `$work/artifacts`. Configure the host compiler and signing tools as for a single native build, then select the ports to build. The worker uses this command form. @@ -127,12 +131,14 @@ Git 2.47 uses `thread_local` as a struct tag. The AArch64 bootstrap compiler rej The AArch64 build produced `git-2.47.3-1-aarch64.pkg.tar.zst`, SHA-256 `d918a161c913c413d651d789a04c2049946f420f3c25f8e4e7c61bf2c171b8a4`. The published kernel booted the 32-package signed network root and passed the same network fixture as x86_64. The installed-root audit checked 6,441 owned paths and 110 target ELFs. See `arm/abi16/guest-network-01`, receipt SHA-256 `2bc6b8bdc8a4cd932e367b4b9f4b1299219700f39aee4c679acb37d13c8d0570`. -The AArch64 signature guest booted 22 signed packages with GnuPG 2.4.9-1. GnuPG and the GPGME verifier accepted the repository index signed by the pinned test key and rejected a modified copy. See `tests/userland/signatures.sh` and `arm/abi16/signature-engine-01`, receipt SHA-256 `4825e4c065e96ed4cfec4e2f34fc3b157b61e22aa40f57c7db138331b1fe51a4`. Guest transactions with the packaged AArch64 vpac are a separate check. +The AArch64 signature guest booted 22 signed packages with GnuPG 2.4.9-1. GnuPG and the GPGME verifier accepted the repository index signed by the pinned test key and rejected a modified copy. See `tests/userland/signatures.sh` and `arm/abi16/signature-engine-01`, receipt SHA-256 `4825e4c065e96ed4cfec4e2f34fc3b157b61e22aa40f57c7db138331b1fe51a4`. The worker compressed three retired vpac upgrade test disks and the first x86_64 `build-base` verification SDK. It checked the decompressed disk hashes and compared the SDK archive against its original tree before recycling those paths. `foundation/archived-toolchain-input-space-01/restore.tsv` records the disk paths, original hashes, modes and modification times. Restore the SDK with `tar --zstd -xf` from the worker's project directory using the archive named in `restore-tree.tsv`. The receipt SHA-256 is `877da7c3aaca368dc8c2cf4936553de6d0e31d2bb9dd9d32994a5b85ae8f5847`. The worker also preserved completed root trees in `foundation/archived-release-roots-02` and the original signed `build-base` client in `foundation/archived-build-base-fixture-01`. The worker compared each archive with the tree before recycling it. Use `restore.tsv` and `tar --zstd -xf` to restore the original paths. The receipt SHA-256 values are `a75480c3dec539c056df1e1600b935804f88f7a1029663f3463c437f14be29fb` and `4c98fffa1f6486ad4c13eabfaf9a1a6ed0a26caf93819e5f66be5fbbc9192818`. +`foundation/archived-gcc-deltas-01` and `foundation/archived-vpac-disk-deltas-01` preserve older compressed archives as Zstandard deltas against closely matching archives on the same worker. Each TSV records the original pathname and hash, the reference and its hash, and the original mode and modification time. Recreate the original compressed archive with `zstd -d -M1024MB --patch-from="$reference" "$delta" -o "$original"`, verify its SHA-256, and restore its recorded metadata before running the original evidence checker. The receipt SHA-256 values are `c1890c05479bfa0ab51d5ffdb9a9de421b2d0835923cbfc3d7a51a070ab960cf` and `274775396dd874acb4a82d12058680d267eff837c1318ab3f82079e84ceab1f2`. + An eight-package x86_64 guest tested the BusyBox wget applet and its separately packaged TLS helper. It rejected an unknown certificate, retrieved the expected bytes after installing the local CA, and rejected the same certificate for a different hostname. The guest fixture is `tests/userland/wget.sh`. The worker keeps the install, audit and serial hashes in `foundation/wget-guest-x86_64-01/receipts.sha256`, SHA-256 `5872d1467ee2594b9305bed5fa1ceb084c8c3fde4ebccb0539db25d02b3849f9`. For package roots too large for a test initramfs, use `python3 tests/disk-root.py "$arch" "$root" "$fixture" "$iso" "$boot" "$output"` on the worker. The root must supply BusyBox init, and the fixture prints `VPAC FIXTURE GUEST PASS` after its checks. The helper creates a fresh ext2 image file from a private copy and runs QEMU in snapshot mode. The x86_64 release kernel read the matching disk identity and relocated all 109 dynamic executable paths from a 106-package root with 512 MiB of guest RAM. The test retains its ext2 and serial hashes under `foundation/disk-exec-x86-02/test`, receipt SHA-256 `6f600855744d04fa71d916f545e746ed36ba2686a56937c2b4c3cb02e3ec6a58`. -- 2.56.1