DF-5155 / run.2.log
# DF-5155 — run.2.log: PATCHED-kernel run (single-fix kernel #1, same -cpu host platform)
#
# Patched kernel:
DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #1: Wed Sep 30 12:35:51 UTC 2026
root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
# (baseline kernel was #0: Thu Jul 2 06:02:54 UTC 2026 — stock clean-install)
#
# Build of pbfix.ko (fix-path replica; bsd.kmod.mk, -Werror, gcc80):
cc -O2 -pipe -D_KERNEL ... -Werror -DKLD_MODULE ... -c pbfix.c
cc -Wl,--build-id=sha1 -nostdlib -Wl,--hash-style=sysv -r -Wl,-d -o pbfix.ko pbfix.o
KLD-OK
# -> module loaded, NO trap, guest stays up (dmesg continues normally):
# (kernel console messages preceding it, proving liveness)
HAMMER2: VOLDATA DUMP
HAMMER2: INITIATE SPANs
kdmsg: state 0xfffff801175bc6a0 interlock!
swap low/high-water marks set to 41940/62910
pbfix: patched handler returns error 14 (sysctl writer gets EIO, no trap)
#
# vm.sh status after the run: up
#
# Contrast with the baseline (run.log/panic.txt): the identical MSR accessed
# with the raw perfbias.c:178 instruction -> 'Fatal trap 9: general protection
# fault while in kernel mode', 'Stopped at pbtest_modevent+0xad: wrmsr', DDB,
# guest down.
#
# Fix build (fix_build.log): make -j6 nativekernel KERNCONF=X86_64_GENERIC ->
# RC=0, perfbias.c compiled under -Werror (:17769), perfbias.o (:26109),
# installkernel RC=0, booted clean as #1 Sep 30 12:35:51.