DragonFlyBSD Kernel Audit
DF-3078 / build.log
← back to finding ↓ download raw
DF-3078 build.log — PoC tools (in-guest, DragonFly cc) + fix kernel build

$ cc -o craft craft.c && cc -I/usr/src -o dumpsb dumpsb.c && cc -o reload reload.c
(no diagnostics; exit 0 — TOOLS_OK / TOOLS_REBUILT observed each run)

$ cc -I/usr/src -o offsets offsets.c && ./offsets
sizeof(struct fs)=1384
fs_ncg=44 fs_bsize=48 fs_fsize=52 fs_frag=56
fs_sbsize=104 fs_csaddr=152 fs_cssize=156
fs_ipg=184 fs_fmod=208 fs_clean=209 fs_contigsumsize=1316
fs_magic=1372
fsmnt=212 volname=680 sparecon=1204

Fix kernel (#1):
$ cd /usr/src && patch -p1 < /root/fix3078.diff
Patching file sys/vfs/ufs/ffs_vfsops.c using Plan A...
Hunk #1 succeeded at 486.
Hunk #2 succeeded at 496.
done
$ make -j6 nativekernel KERNCONF=X86_64_GENERIC && make installkernel
[~14,600 lines of normal build output; no errors]
>>> Kernel install for X86_64_GENERIC completed on Sun Sep  6 02:06:40 UTC 2026
BUILD_OK
Rebooted into: DragonFly 6.5-DEVELOPMENT #1: Sun Sep  6 02:02:00 UTC 2026