# DF-1984 - Source Verification

## Verdict: REPRODUCED (source-only confirmation)

**Finding**: sys/dev/drm/amd/amdgpu/amdgpu_fb.c:213

**Mechanism**: struct drm_mode_fb_cmd2 mode_cmd declared without initializer. Only width/height/pixel_format/pitches[0] written. pitches[1..3], offsets, modifier, flags, handles stay stack garbage → propagated into long-lived drm_framebuffer.

**Hardware dependency**: Requires amdgpu GPU.

**Fix**: Zero-initialize: struct drm_mode_fb_cmd2 mode_cmd = { 0 };

## Verification method
Source-only confirmation. The cited code path was traced line-by-line in the
audited sys/ tree. The bug exists exactly as described. This is a HW-gated
driver finding — the vulnerable code path requires specific hardware (GPU,
controller, PHY, TPM, etc.) not present in the QEMU audit guest. Runtime
reproduction on this guest is not possible without the hardware.

## Fix validation
fix.diff authored and applied to guest source. All 40 fixes in this batch
compile cleanly in a single combined kernel build: `make -j6 nativekernel
KERNCONF=X86_64_GENERIC` → rc=0, zero -Werror violations.

**Kernel**: DragonFly 6.5-DEVELOPMENT #0: Thu Jul  2 06:02:54 UTC 2026
