Skip to content

Commit af9e3af

Browse files
committed
Record WSA runtime check tools in manifest
1 parent adff638 commit af9e3af

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

docs/WSA_KNOWN_GOOD_ARCHIVE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ The WSA kernel release is reproducible only when the full runtime bundle is capt
1212
8. Clang, LLD, Rust and Cargo versions.
1313
9. ReSukiSU Manager version, release `ksud` SHA256 and confirmation that `libksud.so` contains the x86_64 `ksud kpm` path.
1414
10. SHA256 of `KernelSU/scripts/check-manager-kpm-x86.sh`, `KernelSU/scripts/check-kpm-module-x86.sh`, `KernelSU/scripts/fuzz-kpm-x86-smoke.sh` and `KernelSU/tools/kpm-x86-fuzz/kpm_elf_fuzz.c`.
15-
11. `scripts/wsa-verify-release-manifest.sh` result for the exact manifest and kernel artifact.
16-
12. Boot smoke result and dmesg scan result.
15+
11. SHA256 of `scripts/wsa-verify-release-manifest.sh` and `scripts/wsa-check-runtime-ksud.sh`.
16+
12. `scripts/wsa-verify-release-manifest.sh` result for the exact manifest and kernel artifact.
17+
13. `scripts/wsa-check-runtime-ksud.sh` result for the booted WSA instance.
18+
14. Boot smoke result and dmesg scan result.
1719

1820
Use `scripts/wsa-release-manifest.sh arch/x86/boot/bzImage` after a build. Store its output next to the kernel binary and paste the SHA256 into the release notes.
1921

scripts/wsa-release-manifest.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ if [ -f .config ]; then
9898
grep -E '^CONFIG_(LOCALVERSION|KSU|KPM|KALLSYMS|DEBUG_WX|KASAN|KCSAN|KFENCE|PROVE_LOCKING)=' .config | sort
9999
fi
100100

101+
if [ -f scripts/wsa-verify-release-manifest.sh ]; then
102+
kv wsa_manifest_verify_script "scripts/wsa-verify-release-manifest.sh"
103+
kv wsa_manifest_verify_script_sha256 \
104+
"$(sha256sum scripts/wsa-verify-release-manifest.sh | awk '{print $1}')"
105+
fi
106+
107+
if [ -f scripts/wsa-check-runtime-ksud.sh ]; then
108+
kv wsa_runtime_ksud_check_script "scripts/wsa-check-runtime-ksud.sh"
109+
kv wsa_runtime_ksud_check_script_sha256 \
110+
"$(sha256sum scripts/wsa-check-runtime-ksud.sh | awk '{print $1}')"
111+
fi
112+
101113
kv clang "$({ clang --version 2>/dev/null || true; } | sed -n '1p')"
102114
kv ld_lld "$({ ld.lld --version 2>/dev/null || true; } | sed -n '1p')"
103115
kv rustc "$({ rustc --version 2>/dev/null || true; } | sed -n '1p')"

scripts/wsa-verify-release-manifest.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ check_file_hash manager_x86_64_check_script manager_x86_64_check_script_sha256
160160
check_file_hash kpm_x86_64_module_check_script kpm_x86_64_module_check_script_sha256
161161
check_file_hash kpm_x86_64_fuzz_smoke_script kpm_x86_64_fuzz_smoke_script_sha256
162162
check_file_hash kpm_x86_64_fuzz_harness kpm_x86_64_fuzz_harness_sha256
163+
check_file_hash wsa_manifest_verify_script wsa_manifest_verify_script_sha256
164+
check_file_hash wsa_runtime_ksud_check_script wsa_runtime_ksud_check_script_sha256
163165

164166
if [ "$failures" -ne 0 ]; then
165167
exit 1

0 commit comments

Comments
 (0)