[PR #1] [MERGED] Verify loaded firmware hashes and strengthen host validation #76

Closed
opened 2026-10-31 06:56:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/1
Author: @alansley
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @JustAResearcher

Base: main ← Head: fix/verify-assets-and-strengthen-validation


📝 Commits (4)

  • 8855e7b Verify loaded firmware hashes and strengthen host validation
  • 8fabde3 Record stock RTX 4090 baseline and numerical validation
  • f5d96e9 Document matched RTX 4090 hardware validation and testing workflow
  • b502e2f Document RTX 4090 warm reboot benchmark repeat

📊 Changes

55 files changed (+1993 additions, -66 deletions)

View changed files

📝 .gitattributes (+3 -0)
📝 Makefile (+7 -2)
📝 QUICKSTART.md (+6 -0)
📝 README.md (+31 -11)
📝 diagnostics/bench/README.md (+19 -0)
➕ diagnostics/bench/bench_args.h (+23 -0)
➕ diagnostics/bench/gemm_inputs.h (+19 -0)
📝 diagnostics/bench/mma_bench.cu (+18 -7)
📝 diagnostics/bench/validate_gemm.cu (+33 -25)
➕ docs/evidence/rtx4090-pr1-matched/README.md (+133 -0)
➕ docs/evidence/rtx4090-pr1-matched/SHA256SUMS (+17 -0)
➕ docs/evidence/rtx4090-pr1-matched/comparison.json (+42 -0)
➕ docs/evidence/rtx4090-pr1-matched/metadata.json (+117 -0)
➕ docs/evidence/rtx4090-pr1-matched/post-benchmark-kernel-check.json (+7 -0)
➕ docs/evidence/rtx4090-pr1-matched/stock-gemm.jsonl (+6 -0)
➕ docs/evidence/rtx4090-pr1-matched/stock-mma.txt (+8 -0)
➕ docs/evidence/rtx4090-pr1-matched/stock-numerical.txt (+7 -0)
➕ docs/evidence/rtx4090-pr1-matched/stock-sm-rates.json (+17 -0)
➕ docs/evidence/rtx4090-pr1-matched/stock-telemetry.csv (+82 -0)
➕ docs/evidence/rtx4090-pr1-matched/stock-tensor-modes.json (+79 -0)

...and 35 more files

📄 Description

Changes

  • Verify the SHA-256 digest of all nine pinned firmware assets after loading and before claiming the card or starting firmware DMA; reject a mismatch and release the rejected image.
  • Strengthen host validation with varied seeded FP16/BF16 inputs, rectangular and non-tile-aligned cases, explicit full-transaction tests, and strict missing-input behavior.
  • Fix mma_bench repetition storage and reject invalid repetition arguments before CUDA initialization.
  • Document the module, firmware, and benchmark evidence and the reproducible test workflow. Firmware payload bytes are unchanged.

Validation

  • make test-full CACHE=build/pr-validation: 29 tests passed with SHA-pinned NVIDIA 610.43.03 source/assets.
  • All eight C components and full GA102/AD102 transaction cases passed AddressSanitizer/UBSan. LeakSanitizer was disabled because of sandbox process-tracing restrictions.
  • Kernel module build against Linux 6.18.57-2-lts passed.
  • Both changed CUDA programs compiled for sm_89; the GEMM tool linked with cuBLAS.
  • Runtime hashing requires CONFIG_CRYPTO_LIB_SHA256.

RTX 4090 hardware evidence

Sanitized, checksummed measurements are recorded in docs/evidence/rtx4090-pr1-matched/. The original matched stock/unlocked pair used the regular Linux 7.2.11-arch1-1 kernel, NVIDIA 615.78.08, CUDA 13.4.92, and a 450 W power limit. FP16/FP32 instruction throughput measured 160.4 → 320.4 TF/s; BF16/FP32 measured 159.7 → 320.2 TF/s. Large GEMM gains varied by size and type, so these instruction figures should not be read as application speedups. The seeded numerical cases and all measured GEMM outputs passed their checks.

A second unlocked suite after one ordinary warm reboot is documented in warm-reboot-repeat/. The full-rate selector readback and near-2× instruction measurements persisted through that reboot. Five of six GEMM medians were faster than the single stock baseline; the 4096³ BF16 median was 8.2% slower. This is one warm reboot and one repeat run on one RTX 4090, not a second matched pair or a broad stability result. No extended stability test, representative inference/training workload, or physical AC-removal test is claimed.

The earlier LTS stock-only run is archived separately and is not used in these ratios. No GitHub review has been requested yet.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JustAResearcher/gpu-unlock-ada/pull/1 **Author:** [@alansley](https://github.com/alansley) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@JustAResearcher](https://github.com/JustAResearcher) **Base:** `main` ← **Head:** `fix/verify-assets-and-strengthen-validation` --- ### 📝 Commits (4) - [`8855e7b`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/8855e7bca8ff142204e02301331fd56b26699819) Verify loaded firmware hashes and strengthen host validation - [`8fabde3`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/8fabde31a8f897a28b66bd0a94a300586f5c3d08) Record stock RTX 4090 baseline and numerical validation - [`f5d96e9`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/f5d96e9f9d1023785e5e11f718fb8a8e13278f8a) Document matched RTX 4090 hardware validation and testing workflow - [`b502e2f`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/b502e2f36756ecfcd632c8b56a8e4a676c059ffd) Document RTX 4090 warm reboot benchmark repeat ### 📊 Changes **55 files changed** (+1993 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `.gitattributes` (+3 -0) 📝 `Makefile` (+7 -2) 📝 `QUICKSTART.md` (+6 -0) 📝 `README.md` (+31 -11) 📝 `diagnostics/bench/README.md` (+19 -0) ➕ `diagnostics/bench/bench_args.h` (+23 -0) ➕ `diagnostics/bench/gemm_inputs.h` (+19 -0) 📝 `diagnostics/bench/mma_bench.cu` (+18 -7) 📝 `diagnostics/bench/validate_gemm.cu` (+33 -25) ➕ `docs/evidence/rtx4090-pr1-matched/README.md` (+133 -0) ➕ `docs/evidence/rtx4090-pr1-matched/SHA256SUMS` (+17 -0) ➕ `docs/evidence/rtx4090-pr1-matched/comparison.json` (+42 -0) ➕ `docs/evidence/rtx4090-pr1-matched/metadata.json` (+117 -0) ➕ `docs/evidence/rtx4090-pr1-matched/post-benchmark-kernel-check.json` (+7 -0) ➕ `docs/evidence/rtx4090-pr1-matched/stock-gemm.jsonl` (+6 -0) ➕ `docs/evidence/rtx4090-pr1-matched/stock-mma.txt` (+8 -0) ➕ `docs/evidence/rtx4090-pr1-matched/stock-numerical.txt` (+7 -0) ➕ `docs/evidence/rtx4090-pr1-matched/stock-sm-rates.json` (+17 -0) ➕ `docs/evidence/rtx4090-pr1-matched/stock-telemetry.csv` (+82 -0) ➕ `docs/evidence/rtx4090-pr1-matched/stock-tensor-modes.json` (+79 -0) _...and 35 more files_ </details> ### 📄 Description ## Changes - Verify the SHA-256 digest of all nine pinned firmware assets after loading and before claiming the card or starting firmware DMA; reject a mismatch and release the rejected image. - Strengthen host validation with varied seeded FP16/BF16 inputs, rectangular and non-tile-aligned cases, explicit full-transaction tests, and strict missing-input behavior. - Fix `mma_bench` repetition storage and reject invalid repetition arguments before CUDA initialization. - Document the module, firmware, and benchmark evidence and the reproducible test workflow. Firmware payload bytes are unchanged. ## Validation - `make test-full CACHE=build/pr-validation`: 29 tests passed with SHA-pinned NVIDIA 610.43.03 source/assets. - All eight C components and full GA102/AD102 transaction cases passed AddressSanitizer/UBSan. LeakSanitizer was disabled because of sandbox process-tracing restrictions. - Kernel module build against Linux `6.18.57-2-lts` passed. - Both changed CUDA programs compiled for `sm_89`; the GEMM tool linked with cuBLAS. - Runtime hashing requires `CONFIG_CRYPTO_LIB_SHA256`. ## RTX 4090 hardware evidence Sanitized, checksummed measurements are recorded in [`docs/evidence/rtx4090-pr1-matched/`](docs/evidence/rtx4090-pr1-matched/README.md). The original matched stock/unlocked pair used the regular Linux `7.2.11-arch1-1` kernel, NVIDIA `615.78.08`, CUDA `13.4.92`, and a 450 W power limit. FP16/FP32 instruction throughput measured 160.4 → 320.4 TF/s; BF16/FP32 measured 159.7 → 320.2 TF/s. Large GEMM gains varied by size and type, so these instruction figures should not be read as application speedups. The seeded numerical cases and all measured GEMM outputs passed their checks. A second unlocked suite after one ordinary warm reboot is documented in [`warm-reboot-repeat/`](docs/evidence/rtx4090-pr1-matched/warm-reboot-repeat/README.md). The full-rate selector readback and near-2× instruction measurements persisted through that reboot. Five of six GEMM medians were faster than the single stock baseline; the 4096³ BF16 median was 8.2% slower. This is one warm reboot and one repeat run on one RTX 4090, not a second matched pair or a broad stability result. No extended stability test, representative inference/training workload, or physical AC-removal test is claimed. The earlier LTS stock-only run is archived separately and is not used in these ratios. No GitHub review has been requested yet. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 06:56:13 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JustAResearcher/gpu-unlock-ada#76
No description provided.