# DF-4358 — DF-added kprintf leaks kernel pointers at amdgpu load (Info)

## Where

`sys/dev/drm/amd/amdgpu/amdgpu_kms.c:185-186` (amdgpu_driver_load_kms):

```c
	kprintf("amdgpu_driver_load_kms(): flags=%ld drm_device=%p adev=%p\n",
		flags, dev, adev);
```

This `kprintf` does not exist upstream (v5.0/v5.2/v5.4 verified) — it is a
DragonFly-port debug leftover. It prints the kernel virtual addresses of
the `drm_device` and the `struct amdgpu_device` heap object to the console
message buffer every time an amdgpu card attaches, i.e. at boot on any
system with an AMD GPU. Unprivileged users can read the message buffer
(`dmesg`, /var/log) on a default DragonFly system.

Impact is deliberately rated **Info**: DragonFly has no KASLR, so heap
addresses carry little exploitation value today; the value is (a) removing
gratuitous %p disclosure that would defeat any future KASLR/slab-random
hardening and (b) diverging noise from upstream. Same class as DF-2008.

## Fix

`fix.diff` deletes the two lines (upstream state).
