# DF-1799 — Verdict

**Severity:** Low
**Status:** REPRODUCED (source-only confirmation — driver/HW-gated, not runtime-triggered on QEMU guest)
**Impact:** panic
**Confidence:** certain

## Verdict
REPRODUCED. The cited bug is confirmed real in the audited source at `sys/dev/drm/amd/powerplay/hwmgr/smu_helper.c:385-396`.

## Mechanism
phm_get_voltage_index declares uint8_t count and i but loops i<lookup_table->count (original uint32); if count>255, i wraps and never exits infinite loop.

## Fix
Use uint32_t i and cap iteration at PP_ATOMCTRL_MAX_VOLTAGE_ENTRIES.

The full git-apply-able diff is in `fix.diff`.

## Build validation
fix.diff applies cleanly and compiles with `-Werror` as part of the batch module build
(all 51 fixes applied to /usr/src, kernel+modules built).

## Notes
Source-only confirmation: this finding is in a GPU/display code path that requires
specific hardware not present in the QEMU guest. The bug is confirmed by source tracing
(cited path:line verified against sys/), and the fix compiles clean. No runtime trigger
was attempted as the relevant device/module is HW-gated.
