DF-5119 / env.txt
Guest: DragonFly dfbsd 6.5-DEVELOPMENT #0: Thu Jul 2 06:02:54 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
Boot: legacy BIOS (no UEFI runtime) -> `kldload efirt` prints
"module_register_init: MOD_LOAD (efirt, ...) error 6" but the co-packaged
efidev module still registers and creates /dev/efi (mode 0700 root:wheel),
so the pre-firmware kmalloc paths are reachable.
Compiler: cc 8.3 [DragonFly] Release/2019-02-22
Module: /boot/kernel/efirt.ko (stock, contains both efirt + efidev modules)
Patched module (fix validation): built from /usr/src/sys/dev/misc/efirt after
applying fix.diff, loaded as /root/efirt-patched.ko.
PoC binary: /tmp/efi_sz compiled on-guest: cc -O -o efi_sz efi_sz.c