DF-5227 / build.log
DF-5227 PoC build log (guest, DragonFly 6.5-DEVELOPMENT, gcc 8.3 [DragonFly]) $ cd /tmp/poc/DF-5227 && make creating sys/ forwarding header /tmp/poc/DF-5227/forwarder_x86_64/include/*.h cc -O2 -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wold-style-definition -Wmissing-include-dirs -Wno-pointer-sign -Winit-self -Wundef -Wno-unused-but-set-variable -std=gnu11 -Werror -DKLD_MODULE -nostdinc -I. -Idragonfly -I/tmp/poc/DF-5227/forwarder_x86_64/include -Idragonfly/../include -I/usr/include -Wold-style-declaration -fno-common -ffreestanding -fno-stack-protector -fno-strict-aliasing -fno-strict-overflow -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -mno-fp-ret-in-387 -mindirect-branch=thunk-inline -c poc5227.c cc -Wl,--build-id=sha1 -nostdlib -Wl,--hash-style=sysv -r -Wl,-d -o poc5227.ko poc5227.o $ ls -la poc5227.ko -rw-r--r-- 1 root 1000 5352 Oct 1 09:04 poc5227.ko (zero warnings; -Werror clean) Fix-validation drm.ko rebuild (same guest, after vm.sh reset with-src + fix.diff): $ cd /usr/src/sys/dev/drm/drm && make [... full drm module compile ...] cc -Wl,--build-id=sha1 -nostdlib -Wl,--hash-style=sysv -r -Wl,-d -o drm.ko drm_atomic.o ... linux_dma.o linux_dma-buf.o ... ttm_page_alloc_dma.o $ kldload drm && kldstat | grep drm 4 1 0xffffffff82600000 72000 drm.ko