โฌข DragonFlyBSD Kernel Audit
DF-4578 / env.txt
โ† back to finding โ†“ download raw
# DF-4578 environment evidence (guest + build tree)

Captured 2026-09-21, guest up via dfbsd-qemu/vm.sh (no state changes; read-only commands).

## Guest

```
DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #0: Thu Jul  2 06:02:54 UTC 2026     root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
kern.osreldate = 600519

vgapci0@pci0:0:2:0:	class=0x030000 card=0x11001af4 chip=0x11111234 rev=0x02 hdr=0x00
    (virtio-gpu, vendor 0x1af4 Red Hat โ€” NO ATI/AMD 0x1002 device present)

ls: /dev/dri: No such file or directory
kldstat | grep -i "drm|radeon|amd"   โ†’ (no output; no drm KLDs loaded)

/boot/kernel/amdgpu.ko  124519320 bytes  (ships, not loaded)
/boot/kernel/drm.ko      22447656 bytes  (ships, not loaded)
/boot/kernel/radeon.ko   48179520 bytes  (ships, not loaded)
```

## Build tree (host, /home/maxx/dfbsd/dfbsd)

```
$ grep -rn "amdgpu_amdkfd_gfx_v8" sys/dev/drm/amd/amdgpu/Makefile sys/dev/drm/amd/Makefile sys/dev/drm/Makefile
(no hits โ€” the file is not in any SRCS list; only amdgpu_amdkfd.c is added at
 sys/dev/drm/amd/amdgpu/Makefile:155-156. Lists are explicit; no wildcards.)

$ grep -rn "define CONFIG_HSA_AMD\|CONFIG_HSA_AMD=" sys/
(no hits โ€” CONFIG_HSA_AMD is undefined tree-wide; amdgpu_amdkfd.c:34-47 therefore
 forces kgd2kfd=NULL and returns -ENOENT; device_probe() at :57-71 early-returns;
 the #ifndef CONFIG_HSA_AMD stub at :554-557 provides a NULL-returning
 amdgpu_amdkfd_gfx_8_0_get_functions(), so the real one in
 amdgpu_amdkfd_gfx_v8.c:183 never links.)

$ ls sys/dev/drm/amd/amdgpu/ | grep -i kfd
amdgpu_amdkfd.c
amdgpu_amdkfd.h
amdgpu_amdkfd_gfx_v8.c
amdgpu_amdkfd_gfx_v9.c
(no amd/amdkfd/ frontend directory exists anywhere in sys/dev/drm/amd/)
```