DF-0805 / build.sh
#!/bin/sh # DF-0805 โ build script. # # Two artifacts: # lz4_oob_harness โ userspace unit-level proof of the LZ4 OOB primitive # (the same algorithm the kernel uses, compiled with # the same decompression code path). # hammer2_trigger.sh โ root-run script that builds a crafted HAMMER2 # image with a malicious on-disk LZ4 compressed_size # and triggers the in-kernel path via an # unprivileged read. set -eu cd "$(dirname "$0")" echo "[build] lz4_oob_harness.c -> lz4_oob_harness" cc -O2 -Wall -Wextra -o lz4_oob_harness lz4_oob_harness.c echo "[build] OK" ls -l lz4_oob_harness |