DragonFlyBSD Kernel Audit
DF-2851 / build.log
← back to finding ↓ download raw
== PoC build (guest, unprivileged maxx) ==================
$ cc -O2 -pthread -Wall -o /tmp/accept_abort_race /tmp/accept_abort_race.c
BUILD_OK
(no warnings)

== Fix kernel build (guest, root) ========================
$ cd /usr/src && git apply /tmp/fix.diff && echo FIX_APPLIED
FIX_APPLIED
(applied lines:
  sys/net/netmsg.h:129:              struct socket *nm_result;
  sys/kern/uipc_syscalls.c:261:      msg->nm_result = so;
  sys/kern/uipc_syscalls.c:328,346:  msg.nm_result = NULL;
  sys/kern/uipc_syscalls.c:363:      so = msg.nm_result;)

$ make -j 6 nativekernel KERNCONF=X86_64_GENERIC   (in /usr/src)
... 35,666 lines of compile output (gcc 8.3 [DragonFly]), ends:
KBUILD_DONE

$ make installkernel KERNCONF=X86_64_GENERIC
>>> Kernel install for X86_64_GENERIC completed on Wed Sep  2 10:39:46 UTC 2026
-r-xr-xr-x  1 root wheel 119344096 Sep  2 10:38 /boot/kernel/kernel

$ reboot -> uname -a:
DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #1: Wed Sep  2
10:31:50 UTC 2026  root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64