DragonFlyBSD Kernel Audit
DF-2626 / build.log
← back to finding ↓ download raw
DF-2626 PoC build log
=====================

NOTE (honesty): the guest /root/fix_build.log and the initial in-guest build
transcript died with the final `vm.sh reset with-src` (guest disk reverted to
snapshot). Below is the exact build command used, plus the verbatim captured
output of the successful builds from the session logs.

$ # staging (as root, on guest):
$ echo <b64 poc.c> | b64decode -r > /root/df2626/poc.c
$ cd /root/df2626 && cc -O2 -Wall -o poc poc.c && cp poc /tmp/df2626poc && chmod 755 /tmp/df2626poc && md5 /tmp/df2626poc && echo BUILD_OK

MD5 (/tmp/df2626poc) = ed5f88f79641d7b5f1e53ec714524016
BUILD_OK

Source transport integrity (host side):
  md5  (poc.c) = 726230f13bb16b9e4e51b87563082eb3   (host == guest)
  sha256(poc.c) = 0eaf49ab2c29b7c5cbbc95158b7f72cf641896565e07303c0d8bc5bf850e0472

An earlier build attempt using `cat | vm.sh run_root 'cat > file'` failed
("undefined reference to 'main'" — stdin piping through ssh does not deliver);
base64 transport was used instead. That failed attempt is recorded here for
completeness only.