diff options
| author | user <user@clank> | 2026-10-01 19:04:27 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-10-01 19:04:27 +0200 |
| commit | e3453c246e993e96da1be81014ffe49277a92ef8 (patch) | |
| tree | f53a27e1734068e8b06b6017a1a82a6edb6a2250 | |
| parent | type hdcp2_tx_RepeaterAuth_Stream_Manage: 24 raw dereferences per build down ... (diff) | |
| download | amd-psp-re-e3453c246e993e96da1be81014ffe49277a92ef8.tar.gz amd-psp-re-e3453c246e993e96da1be81014ffe49277a92ef8.tar.xz amd-psp-re-e3453c246e993e96da1be81014ffe49277a92ef8.zip | |
correct the headline named count: 243 of them were IDA address defaults, not names
Checking the audit's numbers against the artifacts found the summary table stale on every row, and
one of the errors is in the figure I have been quoting all session.
The count 19,424 is every function whose name field is set. 243 of those are sub_401234 or
j_sub_401234 -- IDA's address-derived defaults, which are not names in any useful sense and which my
own per-module tables have been filtering out all along. The honest count is 19,181, or 66.3%, not
67.1%. Both are now in the table so the difference is visible rather than quietly resolved.
That is the third metric-definition error found by re-measuring rather than re-reading: the field
share counted unnamed bodies against the named artifacts, the per-function residue summed across
builds, and now the named count included address defaults. All three inflated or deflated a headline
without changing any underlying work.
Other rows brought in line with measurement: functions 28,948 -> 28,945, field share 65.9% -> 75.6%
named-artifact-only, structures 27 -> 28, raw dereferences 6,982 -> 3,506.
The "what remains" section is corrected too. It claimed ASD's residue is "roughly 3,200 four-byte
thunks" as though that were the whole of it; thunks are 43% of ASD's unnamed, and the rest is at the
byte-identity ceiling, with 0, 0 and 1 of the unnamed bodies >=16B in three sample builds matching
any named reference body. It also claimed no dereference concentration above about 60, which was an
artifact of summing across builds; per (build, function) the distribution is median 2, max 33.
| -rw-r--r-- | fw/AUDIT-TA-NAMING.md | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/fw/AUDIT-TA-NAMING.md b/fw/AUDIT-TA-NAMING.md index 37c997b..487a060 100644 --- a/fw/AUDIT-TA-NAMING.md +++ b/fw/AUDIT-TA-NAMING.md @@ -9,16 +9,28 @@ rediscovered. | metric | value | |---|---| | builds decompiled | 99 (16 components) | -| functions | 28,948 | -| named | **19,392 (67.0%)** | -| typed field accesses | 13,473 | -| raw pointer-arithmetic dereferences | 6,982 | -| **field share** | **65.9%** | -| declared structures | 27 | +| functions | 28,945 | +| **named with a meaningful name** | **19,181 (66.3%)** | +| ... of which hash placeholders | 112 | +| name field set but address-derived (`sub_*`, `j_sub_*`) | 243 | +| typed field accesses, named functions | 10,863 | +| raw dereferences, named functions | 3,506 | +| **field share, named artifacts** | **75.6%** | +| declared structures | 28 | | self-port gates | 16/16 PASS | Naming started at 35.4% and field share at effectively 0%. +**The named figure is stricter than the one reported through most of this work.** The count I had +been quoting, 19,424, is every function whose `name` field is set, and 243 of those are `sub_401234` +or `j_sub_401234` -- IDA's address-derived defaults, which are not names in any useful sense. The +honest count excludes them: **19,181 (66.3%)**, not 67.1%. Both numbers are in the table so the +difference is visible rather than quietly resolved. + +The field-share row is also the corrected, named-artifact-only measurement. The earlier 65.9% came +from globbing `fw/decomp/*.c`, which matches the `.anon.c` files holding unnamed bodies; see +AUDIT-TA-STRUCTS.md. + ### Name tiers, and what each is worth | tier | count | basis | trust | @@ -241,13 +253,16 @@ ASD's unnamed entries are 4-byte thunks. ## What remains, and why sweeps will not close it -* **9,556 unnamed functions.** RAS sits at 34% and is structurally blocked: no byte similarity - to its reference, only 4-12 usable call-graph anchors, and it logs numeric codes. ASD's - residue is roughly 3,200 four-byte thunks whose own targets are unnamed, so resolving them - produces `j_sub_*` and buys nothing. -* **6,982 raw dereferences**, with no concentration above about 60. Arg-based typing in named - functions has gone 2201 -> 1507 -> 1163 across three passes, and every group still standing - touches one or two offsets. +* **9,764 functions without a meaningful name.** RAS sits at 34% and is structurally blocked: no + byte similarity to its reference, only 4-12 usable call-graph anchors, and it logs numeric codes. + ASD's residue is 43% four-byte thunks -- not the "roughly 3,200 thunks" this file used to claim as + if that were all of it -- and its porting is at the byte-identity ceiling, measured: 0, 0 and 1 + of the unnamed bodies of 16 bytes or more in three sample builds are byte-identical to any named + reference body. Per build only 187-367 functions are unnamed at 16 bytes or more. +* **3,506 raw dereferences in named functions.** Measured per *(build, function)* pair the + distribution is flat: median 2, mean 2.7, p90 4, max 33, across 1,360 pairs. The max is GCP's + `start`, where raw pointer arithmetic is correct. The last concentrated target, + `hdcp2_tx_RepeaterAuth_Stream_Manage` at 24 per build, is done. Both remainders need per-function reverse engineering. The honest next step is to pick a subset that matters — the GCP and HDCP command handlers carrying the recorded findings are the obvious |
