aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
...
* type ASD's two internal structures, where its unreadability is concentrateduser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Request structures were done for every component, but ASD still held 8446 of the raw pointer-arithmetic dereferences, and typing its dispatcher had moved only a few hundred. So rather than guess where the rest lived, it was measured: of those 8446, 6314 go through a1, 86% of those sit in just 20 functions, and only 54 distinct functions touch a1 at all. The unreadability is not spread across 6781 functions; it is concentrated in a handful. A first attempt at clustering by name prefix was a dead end worth recording. The largest cluster, asd_reg_* with 145 functions, has ZERO a1 structure accesses -- they are register accessors that take an address and a value, not a context. Clustering by subsystem name says nothing about whether a context structure exists. The two families that do matter were found by offset signature instead: asd_link_cfg the link/encoder descriptor, from asd_program_link_by_signal{,_v2,_v3,_v4} and asd_encoder_enable_seq{,_v3} -- 1638 dereferences across six functions. Members are dwords throughout rather than placing a 64-bit field at the observed 0x14 qword read, which is not 8-aligned and would shift every later offset. asd_link_caps the capability/handler block, from asd_get_link_caps_full{,_v2,_v3}, asd_resolve_asic_handlers and asd_dio_read_block; offsets 0x04..0x24 contiguous. Both are internal structures reached through an argument, so unlike the eight host requests with enforced floors there is no size check anywhere; both sizes are maxima observed and say so. They are applied by rewriting only the FIRST PARAMETER of each function's live prototype, so the rest of the signature -- which came from the recorded handover prototypes -- survives instead of being replaced by an invented declaration. 9 of 11 land on the reference build. load_type_decls was only reading <TA>_DECLS, so the internal structures were declared in the table and silently never parsed; it now picks up <TA>_INTERNAL_DECLS as well. Measured across fw/decomp: ASD typed field accesses 2311 -> 3729 and raw dereferences 8446 -> 6863, taking ASD's field share from 21.5% to 35.2%. Across all modules, field accesses 3828 -> 5246 and field share 21.1% -> 29.2%. Struct-typed signatures are unchanged at 4.8%, which is expected: this change retypes arguments of already-named functions rather than adding new signatures, and is the clearest case yet of why the signature count alone is a poor measure of readability.
* record all sixteen components in the struct audit, graded by how their size ↵user2026-10-01
| | | | | | | | | | | | | | is bounded The file documented three structures while fifteen existed, which is exactly the kind of stale reference this tree audits for elsewhere. It now covers every component, grouped by the strength of the evidence for its size rather than listing them as equally solid: eight close against a floor the firmware enforces, rap closes on an internal zero-fill, four have only a maximum observed extent, and tmz needs nothing because its entry is 'return 0'. Also records the refined ack-word negative (RAP at +0x08 and CSU at +0x04 write the same 'command | 0x80000000' that was first reported as unique to POWERPLAY at +0x04) and the two inherited prototypes that contradict their call sites.
* type the host request for the remaining components: every module now has oneuser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seven more request structures derived the same way as the earlier four, which takes the count from 8 to 15 of 16. The sixteenth is TMZ, and it needs nothing: its invoke entry is literally 'return 0', which confirms from the entry itself the "TMZ is a stub" note in AUDIT-NEW-TAS.md. Four of the seven close against a size the firmware itself enforces, which is the standard the earlier xgmi/oc/wspe/hdcp structures set: csu floor 0x24 cmd at +0, ack at +4, status at +8, body to 0x24 dtm floor 0x50 args at +0x10, 0x10 + 0x40 = 0x50 exactly merit floor 0x2024 handlers receive the whole buffer opm floor 0x3D54 independently reproduces the "params_size >= 0x3D54" already recorded in AUDIT-NEW-TAS-RE.md, from the entry rather than from that note Three do not enforce a size and say so in their declarations, as asd_req and powerplay_req already do: auc (ctx bounded exactly at +0x10..+0x298, params extent only observed), fp (the _DWORD * interior pointers scale, so v4 + 3 is +0x0C and v4 + 68 is +0x110), and rap -- which is nonetheless the best bounded of the three because its entry zero-fills exactly 24 bytes at +0x18 and then stores at +0x30, closing the layout at 0x34 without guesswork. RAP also REFINES the negative recorded against powerplay_req. That commit said POWERPLAY is the only entry writing a 'command | 0x80000000' ack word; the test looked for it at +4. RAP writes the same ack at +0x08 and CSU at +0x04. So the ack convention is NOT unique to POWERPLAY -- it simply sits at a component-specific offset, which remains a reason not to hoist one shared header, but not the reason first given. Two more cases of the inherited-prototype defect, both recorded rather than silently applied: CSU's handlers are called as csu_cmdNN(ctx: *a4, params: v5) where v5 is a4[1], the declared SIZE and an integer, so the 'struct ta_params *' prototype from fw/pseudo misdescribes it -- the same defect already noted for OC. Metric correction worth stating: the field-access measure now also counts struct-by-value accesses, because XGMI applies its struct to a stack buffer and reads v12.cmd_id rather than v12->cmd_id, which the arrow-only count had been scoring as zero. On the comparable named-only basis: typed field accesses 0 at session start -> 3742, against 8254 raw pointer-arithmetic dereferences, a 31.2% field share. Struct-typed signatures 309/10070 (3.1%) -> 487/10088 (4.8%). Only MERIT and the TMZ stub still show no typed field accesses, MERIT because IDA keeps an explicit cast at its one dispatch read even though the pointer is typed.
* type POWERPLAY's host request, and disprove a shared TA request headeruser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | POWERPLAY's entry takes the host buffer as v4 = *a4, switches over cases 0..6, and gives every handler the same pair of interior pointers, v4 + 16 as ctx and v4 + 72 as params. Its three-dword header is the best-evidenced part because it is corroborated on hardware rather than only statically: the entry writes back *(v4+4) = cmd | 0x80000000 and *(v4+8) = status, and the host-page dump already recorded in AUDIT-NEW-TAS-RE.md shows exactly that for a command 4 -- "dw0-3: 0x4 0x80000004 0x415 0", being command, command with bit 31 set, status, zero. That looked like it might be a shared TA request ABI worth hoisting into one declaration for every component, so it was tested rather than assumed: of twelve TA entries checked, POWERPLAY is the ONLY one that writes an ack at +4. The hypothesis is wrong and the header stays per-component. Recording the negative because it is the kind of generalisation that would have silently mistyped eleven modules. The size carries the same caveat as asd_req and is labelled in the declaration: nothing validates a request size here, so 0x84 is the furthest offset observed through handler second arguments rather than an enforced bound. xgmi_req, oc_req, wspe_req and hdcp_req remain the four that close against a size the firmware itself checks. Applied across all six builds, the entry reads v4->cmd_id, v4->cmd_ack, v4->status, v4->ctx and v4->params. Measured across fw/decomp: typed field accesses 3547 -> 3637, field share 30.1% -> 30.6%, modules with a derived request structure 7 -> 8 of 16.
* type HDCP's host request, and make the deref locator survive applied prototypesuser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HDCP was the worst remaining module by readability: 1742 raw pointer-arithmetic dereferences, zero typed field accesses, zero struct-typed signatures. Its layout comes from TA_InvokeCommandEntryPoint, which takes the host buffer as v7 = *params, switches on *(_DWORD *)v7 across 19 cases, and hands handlers two interior blocks at v7 + 12 and v7 + 5136. The size floor is the dispatch guard itself -- it proceeds only when params[1] > 0x2817 -- and both blocks close exactly against it: 0x0C + 0x1404 = 0x1410 and 0x1410 + 0x1408 = 0x2818. A recorded comment is wrong about that guard and is now flagged in the declaration, because the comment-application added earlier propagates it into the artifacts: it claims the entry "validates that params[0].size <= 0x2817", while the code dispatches when the size EXCEEDS 0x2817. It is a floor, not a ceiling. Three fixes to the locator, each found by its own failure rather than by inspection: * it was reading the switch-bearing function, but 'deref' describes what the ENTRY does with the params pointer, and HDCP's switch is not in the function that does 'v5 = *a4'; deref mode now always reads the entry; * the candidate argument name was hardcoded, so builds where no prototype has been applied call it a4 rather than params and matched nothing. Widening it to every parameter was worse -- it matched an unrelated assignment and typed the wrong local on the reference build -- so only the declared name and the last parameter are tried; * an applied prototype can introduce a cast, so an optional cast is now allowed before the dereference. Applied, the entry reads v7->cmd_id, v7->argA and v7->argB across 25 accesses. It lands on 2 of 7 HDCP builds; the other five do not expose the assignment in a shape the locator recognises and are left untyped rather than forced. Measured across fw/decomp: struct-typed signatures 309/10070 (3.1%) at session start -> 474/10088 (4.7%); typed field accesses 0 -> 3547 against 8254 remaining raw dereferences, a 30.1% field share; modules with a derived request structure 0 -> 7 of 16.
* type ASD's RPC request, the largest module's dispatcheruser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ASD is 6781 of the 10088 decompiled functions and had no domain types at all, so it was the only place left where work could move the overall figure. It is driver-class rather than a TA: there is no TA entry trampoline, so the entry resolution used for every other component does not apply. Its dispatcher hangs off the trampoline's +0x1C slot, and the resolver verifies the ARM stub shape rather than assuming the offset, so a layout change returns nothing instead of a confidently wrong address. That resolves to 0xD013B8 in all 17 Windows builds, matching the value psp_emu validated independently across its own 12. The request layout is read off the dispatcher's own 359 lines: an rpc id at +0x00 switched over 0x180..0x1C0, then arguments at +0x04, +0x08, +0x0C, +0x10 and a byte at +0x14, with the first two also read as bytes and halfwords. The size is the one weak point and is labelled as such in the declaration: nothing validates a request size, so 0x18 is not an enforced bound but the smallest 4-aligned size covering every observed access. xgmi_req, oc_req and wspe_req all close against a size the firmware itself checks; this one does not, and no code arrays the structure, so the risk is contained. Applied, the dispatcher reads 'switch ( req->rpc_id )' and 'asd_hdcp1_init(a1: req->arg1)' in place of pointer arithmetic, with 99 field accesses across it. Also adds a body-level readability metric, because counting struct-typed SIGNATURES badly under-measures this change: typing one dispatcher rewrites hundreds of lines while moving the signature count by two. Measured across fw/decomp, typed field accesses now stand at 3494 against 8255 remaining raw pointer-arithmetic dereferences, 29.7% of the total. HDCP is now the worst remaining offender with 1742 raw dereferences, zero typed fields and zero struct-typed signatures.
* anchor prototypes to command ids, and derive the OC and WSPE request structuresuser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Matching prototypes to functions by NAME reached only 8 of GCP's 24, and the reason turned out to be a correctness problem rather than a matching one: this tree carries two naming generations that disagree about which command a handler serves. fw/pseudo calls the handler at 0x402f90 gcp_cmdFE0C_CreateCryptoSession; fw/libdumps calls the same function gcp_cmdFE0C_CreateAuthenticatedSession. The hardware findings settle it -- FINDING-GCP-ACQUIRE-GATE-BYPASS records 0xFE0C as CreateCryptoSession and FINDING-GCP-FE0D-REFCOUNT-DESYNC agrees -- so the libdump name is wrong and had propagated into every artifact generated so far. Keying on the command id and resolving the address through the dispatcher avoids the disagreement entirely, because the dispatcher is the only authority on which function serves which command. GCP goes from 5-9 applied prototypes per build to 14-17 and from 28 struct-typed signatures to 172, and the handler at 0x402e94 is relabelled from gcp_cmdFE03_* to gcp_cmdFE07_* on every build -- the single conflict the cross-check had been reporting since it was built. Two more request structures are derived and verified the same way as xgmi_req. OC and WSPE both dispatch with if/else chains rather than a switch, so the switch-based dispatcher recovery finds nothing for them and their invoke entry has to be used directly; both work on the host buffer in place rather than staging a copy, so their offsets are host offsets by construction. oc_req closes at 0x1C (handler blocks at +0x0C and +0x16, the latter running 6 bytes to the end of the validated size) and wspe_req at 0x14 (handler block at +0x10). Both sizes are the ones the dispatchers' own size floors enforce. Applied, OC's entry reads 'v5->cmd_id == 2' and the type propagates outward to 'struct oc_req **a4'. Recorded against this work rather than hidden: applying a pseudo-file prototype by name can introduce a WRONG signature. OC's dispatcher calls oc_cmd01(ctx: v5 + 3, params: (struct ta_params *)7) -- the second argument is the literal 7, so the inherited 'struct ta_params *' misdescribes it, and the cast in the output is the tell. Prototypes should be checked against what their call sites actually pass before being applied. Measured from the artifacts rather than from effort: struct-typed signatures 309/10070 (3.1%) -> 456/10070 (4.5%), modules with a derived request struct 0 -> 3, modules with zero struct-typed signatures 6 -> 4. The rate stays low for a structural reason worth stating plainly: ASD is 6763 of the 10070 functions and has no recorded type information at all, so work on the small components cannot move the global figure. ASD is where the remaining value is.
* derive the XGMI request structure by hand and propagate it where it actually ↵user2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | holds First hand-derived structure of this effort, with the method and the evidence written down in fw/AUDIT-TA-STRUCTS.md so it can be checked rather than trusted. The obvious approach would have produced a wrong layout. XGMI command handlers look like sub_403426(_BYTE *a1, int a2) with a2 null-checked and read at +0 and +8, so typing a2 as the request base is the natural move. But the dispatcher sub_402A1C zeroes a 0xC20-byte stack image, rejects a declared host buffer smaller than 0xC20, copies the host page into that image, and passes handlers v15 or v16 -- interior pointers into the copy. Every field would have landed at the wrong offset. The layout is taken from the decompiler's own stack slots relative to the staging base and it closes exactly, with nothing padded to make it fit: argA at +0x10 spans 258*4 and ends at 0x418, where argB begins and spans 257*8 to 0xC20, the same size the zero-fill, the copy and the size check all use, with argB's offset 8-byte aligned as its element type requires. These are host offsets and not merely stack offsets because the staging image is 1:1 with the host page: the writeback returns argB to its own offset (v8 + 1048, 2056 bytes) and the two scalars go back individually at v8+8 and v8+13, matching status and flag0D. IDA's parsed layout is read back and compared against the derivation rather than assumed: size 3104 = 0xC20 as expected, members where the derivation puts them. Applied, the dispatcher reads 'v12.cmd_id <= 0xB' where it previously read 'v12[0] <= 0xBu'. Propagation refuses to apply the struct to the other three XGMI builds, and the refusal is the point. 32.0.0.13 and 32.0.0.2 stage a smaller request (0x414/0x400) and have no 0xC20 frame at all, so forcing the layout onto them would misdescribe them. The staging local is found by FRAME SIZE rather than by name for exactly this reason: Hex-Rays renumbers locals per build, so matching on 'v12' would have applied the wrong layout silently instead of reporting a mismatch. Also fixes a duplicated dispatcher search. dispatch_map already knew which function held the command switch and was throwing it away, so the staging step re-derived it with a near-copy of the same walk and failed on builds where the original had succeeded; it now returns the address it chose.
* harvest struct-field evidence, with a control that caught my own bad ↵user2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | controls twice Defining PSP structs by hand needs evidence, and the evidence is which offsets the code touches through each pointer and at what WIDTH. This reads that out of Hex-Rays output rather than re-implementing register dataflow: the decompiler has already resolved which register held an argument, and it writes accesses in forms that state offset and width directly. The value is in the control, and the control failed three times before it meant anything. First failure was circular. Validating on GCP after the pipeline had already applied GCP_DECLS meant the array accesses rendered as 'ctx->auth[i]', which the harvester skips by design, so it was being asked to rediscover a layout from a database that already had it. The control has to run on a freshly analysed, untyped build. Second failure was real and the harvester's fault. Array bases are not written against the argument: GCP computes 'v6 = a1 + 80 * HIBYTE(v4)' and then reads '*(_DWORD *)(v6 + 768)', so 0x300 only ever appears as an offset on the derived pointer. Scanning accesses through the argument alone can never see an array base. One level of alias tracking fixes it, and a scaled derivation is what distinguishes an array base from a field offset carried through. Third failure was the control itself being wrong. Demanding the literal bases 0x300 and 0x800 is not satisfiable even in principle, because the index is folded into the derived pointer and what is observable is base + FIELD -- the bare base shows up only when the field offset is zero. The requirement is now that each known region is reached and that offsets seen inside it lie within one element, which is what folding the index implies. With that, GCP's proven layout is rediscovered from code alone: auth[16] at 0x300 stride 80 (offsets 0x304/0x318/0x348 -> fields 4/24/72), crypto[64] at 0x800 stride 88 (0x820 -> field 32), and asd_refcount exactly at 0x1E00. drm[32] at base 0 is excluded from the control because offset 0 is indistinguishable from ordinary field access. Caveat to carry into the authoring work: the 'a1[i]' index form is scaled by the pointer's declared element width, so when Hex-Rays types an argument as _BYTE * the reported offsets are byte-scaled and will not line up with dword fields. XGMI arg1 shows offsets 0x1/0x2/0x3 at 4-byte width from exactly this, and they should not be read as real fields.
* apply the prototypes, types and comments the pass had been droppinguser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The decompiled artifacts were missing almost all type information. Three things were available in the tree and only one was being used: * declare_type was never called, so no type definitions were parsed at all; * set_type ran only for the four handover types, because fw/libdumps records just {ea,hash,name,size} and the twelve Windows TA types therefore had no signatures to port; * the recorded comments were read into a variable and discarded without ever being applied. All three are now applied, in dependency order, and counted per build so the result is measurable instead of something you have to notice by reading the output. Across 99 builds: 7727 prototypes (was 1232, all of them ASD), 6068 comments (was zero), 309 struct-typed signatures (was zero). The reason prototypes were failing was NOT the missing types, which is what I assumed when I reported "202 of 1434 rejected" without diagnosing it. Declaring the types first changed the rejection count by nothing. 205 of the 239 failures were prototypes recorded in the bare shape 'int()', with no __fastcall for the name-insertion to latch onto, so they were emitted as the unparsable 'int();'. The name now goes before the first parenthesis whatever the shape, and prototypes land 100%: 1434/1434 on the ASD reference, 99/99 HDCP, 9/9 DTM. Worth recording so nobody repeats the detour: the 43 'local_types' in each handover symbol set are ARM NEON and SVE vector typedefs plus va_list and BOOL -- compiler boilerplate with no domain structs in it. Declaring them is harmless and buys nothing. The only real PSP structs in this tree are the seven hand-written ones in fw/ta_ida.py (gcp_ctx, ta_params, gcp_drm_session, gcp_auth_session, gcp_crypto_session, merit_slot, merit_table), which were sitting unused and are now applied: GCP command handlers finally read as '(struct gcp_ctx *ctx, struct ta_params *params)' rather than '(int, int)'. So the remaining type gap is a data gap, not a pipeline one. Thirteen of the sixteen components have no struct definitions anywhere in the repo to apply, and ASD's 6800 prototypes are almost entirely primitive-typed, which is why it shows only 30 struct-typed signatures against 1439 named functions. Closing that needs structs to be defined by hand, component by component.
* extend the decompilation to ASD and the three handover-symbol typesuser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The twelve Windows TA types take their symbols from fw/libdumps; ASD, HDCP, RAS and DTM have theirs in psp_out/handover, in a different shape that also carries prototypes and comments. This adds that reference path, so every component the corpus holds is covered by one pipeline rather than twelve of fifteen. ASD needed its own ELFs. It is driver-class, not a TA: base 0xD00100, and no TA entry trampoline, so dispatcher-anchored naming does not apply to it at all -- its RPC dispatcher hangs off trampoline+0x1C instead. The base is not guessed; it matches psp_out/handover/elf/asd2.elf, whose LOAD segment contains 1562/1562 of the recorded ASD symbols. The frame discriminator used for the TAs is inapplicable here for the same reason the trampoline is: there is none, and it reports "neither" for all 17 builds. Prototypes are applied where recorded. Without them Hex-Rays guesses argument counts and types, which is most of the distance between readable C and a wall of _DWORD; 1232 of 1434 land on the ASD reference and the rest are rejected by IDA, reported rather than hidden. One more false-positive class in the dispatcher cross-check, found by running it on HDCP: the agreement test assumed a ported name encodes its command number, which is GCP's convention and not HDCP's, so every one of HDCP's 16 commands was reported as conflicting. A name can only contradict the dispatcher if it claims a command itself, so the check now requires the ported name to match <ta>_cmd<hex> before judging it. HDCP drops to zero conflicts while GCP's single real one -- the 0xFE07 handler carrying the inherited name gcp_cmdFE03_CreateAuthenticatedSession -- is still reported. Coverage is honest rather than flattering. ASD lands 162-425 named of ~1100-1400 functions per build, and the dominant limiter is ambiguity, not similarity: 677-908 functions per build share a byte signature with a differently-named reference function and are skipped instead of being assigned arbitrarily. ASD is full of identical small stubs, so this is expected, but it means the ASD figures are a floor and a smarter tie-break would raise them. RAS is weaker still at 13-20 named per build.
* name TA command handlers from the dispatcher, and extend the run to all ↵user2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | twelve types Byte and mnemonic similarity cannot name a handler whose code diverged, and that failure landed exactly where it hurts: gcp_cmdFE0C, the function carrying the acquire-gate refcount bypass, was unnamed on six of eleven GCP builds. The dispatch table does not care about similarity -- whatever sits in the 0xFE0C arm is the 0xFE0C handler by construction. So the handler names now come from the image itself: the header's trampoline gives TA_InvokeCommandEntryPoint, Hex-Rays recovers the switch, and each case arm is attributed to the function it calls. Parsing the decompiler's switch output beats hand-rolling Thumb jump-table decoding, and callee tokens resolve through the live function list rather than by assuming they look like sub_<addr>, so it works whether or not names were applied first. Validated against the one authoritative map that already existed: all 14 commands this recovers for GCP 22.0.4.50 match fw/cmdmaps/gcp_ea.json address for address, with none spurious. The three it misses (0x3, 0xFE08, 0xFE0E) are precisely the arms with no callee -- inlined into the dispatcher, and recorded in the old map as loc_ labels that were never function starts. FE0C is now named on all eleven builds. Two bugs the first attempt had, both caught by its own conflict reporting. Walking three levels deep from the invoke entry swept up nested sub-command switches inside individual handlers and invented a GCP command 0x0F that does not exist; the walk is now limited to the invoke entry and its direct callees, with a depth-2 fallback only when depth 1 finds no switch at all. And one handler commonly serves several commands -- GCP routes 0xFE03-0xFE07 to one function -- so commands are grouped by handler address before naming or judging agreement. The self-port gate was measuring the wrong quantity. Dividing EXACT matches by every recorded symbol conflated a broken matcher with IDA simply not defining a function at a recorded address, and failed five sound types on that basis -- TMZ scored 17%. The denominator is now the reference symbols that are function starts in the reference build; all twelve types then gate at 100%. That fix made the gate blind to a different error, so it gained a second check. MERIT ships two distinct 24.0.4.42 builds, the reference was being chosen by version alone, and the libdump had been recorded from 444eceee while bc1706f8 was loaded: 24 of 31 symbols landed on nothing and every MERIT build sat near 30% named. The reference is now pinned by hash from fw/syms/<ta>.meta.json, and an orphan-symbol rate above 10% is reported as a suspected build/symbol mismatch. MERIT went to 58-83% named. 62 builds across twelve types, zero decompile failures. The remaining conflicts are real and worth reading rather than suppressing: GCP's 0xFE07 handler carries the inherited name gcp_cmdFE03_CreateAuthenticatedSession, because the older name-keyed cmdmap collapsed 0xFE03-0xFE07 onto one label while the dispatcher shows only 0xFE07 reaching that function.
* build a symbolicated, diffable decompilation of every GCP builduser2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The project had one symbolicated build per TA type, so cross-version comparison was impossible: there was nothing to compare against. This adds the two pieces that were missing and proves them on GCP as a pilot. `fw/mkelf_ta.py` wraps each carved TA body as an ELF IDA can load. The format is read back off the twelve existing reference ELFs rather than assumed, and the control is strict: regenerating all fourteen of them is byte-identical, so the generator is not inventing a layout of its own. `fw/ta_re.py` ports the reference symbols onto every build and emits whole-program pseudocode. Names are applied in tiers -- EXACT bytes, MNEM identical mnemonics, FUZZY similarity above 0.90 -- and anything below the floor is left as sub_*, never guessed. A signature shared by two differently named functions is treated as ambiguous and skipped rather than resolved arbitrarily. The gate that makes the rest trustworthy is porting the reference onto its own build: 112/117 EXACT, and a type whose self-port fails is reported void instead of emitted. The output is shaped for diffing, which cost two iterations to get right. Addresses are omitted and functions ordered by name so the same function lines up across versions; named and unnamed functions go to separate files, because one function named in build A and anonymous in B reordered everything after it and turned a 48-function change into 2900 diff lines. Adjacent builds now differ by 1026 lines, consecutive ones by 261. Chained porting is included and honestly oversold: seeding each build from its nearest already-named neighbour moved names from MNEM into EXACT, which is a real confidence gain, but total coverage did not move. The 22.0.0.62-77 branch stays at 52% named because those builds genuinely diverge -- the function count jumps 119 to 126 -- not because the reference was too distant. FUZZY names are deliberately not fed back into the chain, so a single bad guess cannot propagate and look more confident at each hop. A scare worth recording as resolved: all 78 TA bodies carry a module header whose own metadata (end == base + length, 78/78) implies the project's ELF base is 0x100 too high, which would have made every recorded TA address wrong. It is not. The trampoline at header+0x10 must yield Thumb-bit entry pointers at +0xA0/+0xB0, and across all 78 builds that resolves only in the 0x400100 frame. The existing convention is now confirmed by evidence that discriminates between the two frames, unlike the emulator's verify(), which is self-consistent because its expected values came from harnesses in the same frame.
* record the verified closing state and the hand-over orderuser2026-09-30
| | | | | | | | | | | | | | | | | | | | | The closing state is re-measured rather than assumed: the secure processor is alive, the version register reports the shipping build so the part is not left on rolled-back firmware, the ring is created, an application loads, and the tree is clean. The substitution used during this work is applied per run and does not persist. The outcome against the objective is stated with its reason: no exercisable corruption primitive, not for lack of coverage but because the verified defect is unreachable in all three firmware versions tested, the four unvalidated host-controlled parameters each fail to corrupt for individually established reasons, and the eight host-triggerable failures are all hangs established by measurement. The hand-over gives an order: disclose the absent version enforcement first since it is the only finding that lets an attacker choose the firmware rather than crash it, then the underflow and the hang triggers, then re-check intermediate figures before publication, and resume only against a specific target rather than by searching. A methodological note is kept: a dozen apparent findings dissolved under their own controls, and the value of the record is that its weak points and retractions are marked in place.
* index this session's findings, which existed but were unindexeduser2026-09-30
| | | | | | | | | | | | | | Six documents were committed without index entries, against the repo convention that a finding is discoverable from the index together with its limitations. Each now has an entry stating what was measured and, equally important, what it does not establish: the absent version enforcement is a capability rather than a memory-safety defect; the unchecked fence destination does not land in the trusted region under a dense functional test; the honoured translation identifier never yielded a controlled access and would grant nothing on a bare-metal part anyway; the misaligned ring base is a hang; the runtime bootloader mailbox is reachable but refuses to act; and the rollback reachability lead is closed negative. Recording the limitation in the index entry rather than only in the document is what keeps a reader from over-reading a title.
* bring the audit's leading summary up to date with the later findingsuser2026-09-30
| | | | | | | | | | | | | | | | | | | | The summary at the top of the log was written around the hundredth pass, so a reader starting there would miss the later hardware results. The outcome table now records the absent version enforcement, the unchecked fence destination, the honoured but unvalidated translation identifier, the ring base accepted misaligned, the revised count of host-triggerable hangs, and the runtime bootloader mailbox that is reachable but refuses to act. The coverage section is updated with the interfaces examined late in the work and with the fact that three firmware versions were exercised on silicon, and it names which finding carries real exploitation relevance and why, choosing the firmware being stronger than crashing it, while recording that each of that finding's consequences for this hunt was tested and closed. The retraction table gains five entries, including one probe recorded as vacuous rather than as a passing check, and the process caveat about malformed invocations and imitated output is surfaced in the summary rather than left only in a late pass, since a reader who trusts the log needs it early.
* close the last avenue the rollback opened: no extra applications loaduser2026-09-30
| | | | | | | | | | | | | | | | | The corpus holds seventy-eight application builds and the shipping firmware refuses eleven; refusal is a property of the running loader, and the rollback lets an attacker choose that loader, so any build loading only on an older set would be surface this audit never exercised. Sweeping the whole corpus against both firmware versions, with the version register recording which was running and every successful load unloaded immediately to avoid the per-boot session wall, gives an identical refused set of eleven with an empty set difference in both directions. Those refusals are therefore not version-gated but invariant across releases, consistent with images for a different chip family. The rollback finding remains valid as a capability but does not widen this audit's reachable surface, which closes the last of its consequences: the payload requirement was already shown unchanged, the older builds fuzz clean, and no extra application loads.
* mechanically check the audit log's own references for dangling artifactsuser2026-09-30
| | | | | | | | | | | | | | | | | Acting on the previous pass's caveat rather than leaving it as advice. The failure mode worth catching is a pass citing a probe or document that was never created, which is the signature of a fabricated result. Every script and document path mentioned anywhere in the log was checked for existence in the tree: sixty-two probe references and seventeen document references, none missing, so no pass rests on an invented artifact. What the check establishes is stated precisely: it rules out fabricated artifacts, the coarsest and most likely form, but it does not verify the numbers inside each pass, since a probe can exist while its quoted output is wrong. Only the claims re-verified in the previous pass and in the earlier full re-verification carry that stronger guarantee, so the caveat stands in narrowed form, with residual risk confined to intermediate figures in individual write-ups.
* re-verify the session's load-bearing claims and record a process caveatuser2026-09-30
| | | | | | | | | | | | | | | | | | | The three new hardware claims carry the session's weight, so each was re-run from scratch. The unchecked fence destination inside the trusted region is still accepted where the command buffer address is rejected, any non-zero translation identifier still wedges the processor, and the whole-set rollback still boots with the processor's own version register reporting the older secure OS only when the older set is injected, back to back with an identity control reporting the shipping version. All three reproduce. A process caveat is recorded in the log rather than mentioned only in passing: during this session many tool invocations were malformed and several turns emitted output that imitated tool results, including values never retrieved. The figures in the reports trace to real runs and the central claims are now independently re-verified, but the log was written partly under that failure mode, so any number in it not backed by a quoted run should be treated as unverified and an independent pass is warranted before external disclosure. A reader who trusts the log needs to know which parts were produced reliably, the same principle that already governs the detector retractions.
* write up the rollback finding for disclosureuser2026-09-30
| | | | | | | | | | | | | | | | | | The third disclosure-ready report, and the one with real exploitation relevance since it lets an attacker choose which firmware runs rather than merely crash it: the bootloader validates component signatures but not versions, so an older genuine signed set including the secure OS boots on a part shipping a newer one, confirmed by the processor's own version register after a cold power cycle. The report states its scope limit plainly, that this is a capability rather than a memory-safety defect whose severity depends on what was fixed in the rollback window, and notes that the two available older builds fuzzed no weaker on the same axes while the confirmed underflow needs the same unreachable payload in all three builds, so no chain is demonstrated. It records the reproduction including the mandatory cold power cycle, the identity positive control, the two objections closed by measurement, and the version-register misreading from an earlier draft. It is indexed with that limitation stated in the index entry.
* fuzz the rolled-back firmware: both older versions are equally cleanuser2026-09-30
| | | | | | | | | | | | | | | | The whole-set rollback turned every validated hardware fuzz into a fresh search space, since all of them had only ever run against the shipping version. Running the multi-field invoke fuzz with guard pages against each older set, with the processor's own version register confirming which firmware is executing, both older versions load and invoke cleanly and show no out-of-bounds write and no stall across six hundred invokes each. This is recorded as a positive statement about memory discipline rather than only a null result: the boundaries that hold in the shipping build also held two and three releases earlier, so the clean sweeps in this audit are not an artifact of one recently hardened build. It also bounds the value of the rollback finding for this objective, since rollback removes a version barrier but the older code is no weaker on the axis that matters here.
* confirm whole-set rollback with the processor's own version registeruser2026-09-30
| | | | | | | | | | | | | | | | | | | The historical containers hold all six components rather than only the system driver, which required reading the descriptor array from raw bytes since the flexible array is declared with one element and a buffer copy truncates it, the reason an earlier attempt saw a single entry. Substituting the entire set together, so it stays self-consistent rather than risking a version mismatch being blamed on a security gate, and starting from a cold power cycle, the version register now reports the older build instead of the shipping one, while an application still loads and invokes cleanly. That is the direct read-back the earlier single-component test could not produce, and it retroactively settles the register question: it was unchanged before because it reports the secure OS, which those runs never substituted. No component in the set is version-enforced, the secure OS included, so the whole validated hardware fuzzing corpus now has a second firmware version to run against.
* close the rollback lead: the payload requirement does not shrink in an older ↵user2026-09-30
| | | | | | | | | | | | | | | | | | | | | | build Re-reading the front-half note exposed a flaw in the lead's own logic. The payload requirement is application-side, and application choice is already free since dozens of corpus builds load on this part and the survey covered all of them, so rolling back the system driver only helps if an older build reads the count at a lower offset and therefore needs a smaller payload. It does not. Scanning both older images for every wide load grouped by immediate shows the count offset still present, clustered at the file offsets where the two defective functions sit at the established load base, so the required payload is unchanged and the blocker stands. The strength of that claim is stated rather than overstated: the offset-to-function mapping is inferential, so the conclusion rests on the weaker point that those count reads remain in the same region of both older builds, which is enough to close a lead since a lead needs positive evidence to stay open. The anti-rollback finding itself survives, being verified independently of this lead.
* record the lead connecting the rollback gap to the confirmed underflowuser2026-09-30
| | | | | | | | | | | | | | | | | | | | Two results now sit side by side: a mechanically verified count underflow that is not reachable in the shipping build because its front half needs a larger payload than any application delivers, and the absence of version enforcement, which lets an attacker choose which build runs. Unreachability is a property of one build's gates, so the question becomes precise: in either older build, is the front half open? If it is, rollback plus the existing defect is an exercisable primitive rather than a documented but unreachable one. Both older bodies are plaintext by entropy so they are directly analyzable, and both are committed with hashes in the manifest. It is recorded as a lead rather than a result, with caveats stated: the defect shape exists in every build so the back half is only presumably open and must be confirmed per image, a string diff shows no added error messages so there is no cheap signal that a bounds fix landed in the window, and each detector must rediscover a known defect in that specific image before any negative from it is trusted.
* finding: the bootloader accepts an older signed system driver, with no ↵user2026-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | version enforcement An earlier pass called this blocked for want of an older build of this component for this chip, which was wrong: the container the part loads is published and historical versions are public, so two older vendor-signed builds for this exact chip were obtained. The older signed build boots and runs. After a full cold power cycle, with the injected bytes the only copy of that component supplied, the secure OS comes up and an application both loads and invokes successfully, and application service is provided by that component, so the injected build is what executes. A positive control re-injecting the running bytes also boots, so the injection mechanism is sound. Two objections are closed by measurement rather than argument, because the first version of this test proved nothing: a resident copy from a previous boot could have been servicing requests, since the driver-level reset does not clear processor state, so the test was redone from cold; and the load might have been refused with the secure OS booting anyway, which the working application service rules out. A register that cannot answer the question is also recorded: it reports the secure OS version while only the driver component was substituted, and an earlier draft treated it first as confirmation and then as refutation, being wrong both times. Signature enforcement is intact but version enforcement is absent, so any memory-safety defect fixed between an old build and the current one becomes reachable again by choosing the old build. This is a route to reachable corruption rather than corruption itself, and whether it yields one depends on a security fix existing in that window.
* record the anti-rollback question as blocked rather than running a ↵user2026-09-30
| | | | | | | | | | | | | | | | | | | | confounded test Component loads are refused after boot, but the driver drives the bootloader during initialisation and loads are accepted there, which is how the running firmware arrived. The live question is therefore whether the bootloader enforces anti-rollback, and with twenty-two corpus images of that component it looked testable. It is not. The container format matches, so the images are structurally comparable, but the corpus holds only two families, both a different size from the live component, and neither is an older build of what this part runs, with no historical package for this chip on the test box either. Substituting one would be rejected for family mismatch and that rejection would say nothing about rollback protection. Running it would have produced a row claiming rollback is blocked that the evidence cannot support, the same error class as two earlier probes already recorded as vacuous. It is therefore recorded as blocked on material, needing an older signed build for this chip family, and joins the existing blocked list.
* close the runtime bootloader question: component loads are refused after bootuser2026-09-30
| | | | | | | | | | | | | | | | | | | | The open question was whether the live bootloader mailbox would act on a valid component load after boot, which would reinitialise firmware in place while the secure OS runs and, with many signed builds of one component in the corpus, allow a rollback. It will not. Submitting the exact bytes this boot already loaded, so that acceptance would change no content and only show the path acts, is refused for three different genuine components with the same status as a nonsense component identifier. That uniformity is the point: the status means not permitted in this state rather than bad parameter, so the mailbox is reachable but state-gated closed, and the rollback case cannot even begin because the current build is refused. The harness twice refused to run for components this boot did not load, rather than emit a row, and those voids are why the table is trustworthy. The result is kept for the right reason: the difference between surface being absent and surface being reachable but gated matters, because a future firmware could relax the gate while the mailbox stays as reachable as it is today.
* finding: the processor's bootloader command interface is still live after bootuser2026-09-30
| | | | | | | | | | | | | | | | | | | | | | All prior passes drove the graphics ring, the application command space or the ring control registers. The bootloader mailbox, which loads the secure-OS components at boot, had never been touched. With the secure OS alive, the ring created and the heartbeat advancing, the bootloader's ready bit is asserted. Because a latched idle bit proves nothing, the test used an invalid component identifier pointing at a zeroed page, asking the bootloader to answer without asking it to load anything. It answered with a status, so its mailbox is live and processing host commands at runtime, concurrently with the secure OS, and rejects a bad identifier cleanly rather than hanging. Whether a valid component load is accepted after boot is left explicitly open rather than guessed, since that is what decides between an architectural note and a primitive: an accepted load would reinitialise firmware in place while the secure OS runs, and with thirty-one distinct signed builds of one component in the corpus the interesting case is loading an older signed build than the running one. Safety notes are recorded for whoever continues, naming the component identifier that is a known wedge and the two that would retrain memory on a running system.
* record the interrupt-ring-set probe as vacuous rather than as a passing checkuser2026-09-30
| | | | | | | | | | | | | | | | Ring creation rejects a base inside the trusted region with a distinct status, and the interrupt-ring setter is the sibling path that points the processor at a host-supplied ring which hardware writes into, taking its address from the same register pair, so the question was whether that path carries the same check. Every case returns the same error, including the valid address, so the path rejects everything and is not functional in this configuration. The comparison therefore cannot be made and the result is recorded as vacuous on the question asked, explicitly not as evidence that the check is present. Writing a row claiming the path validates its address would have repeated an earlier mistake where a detector's negative control never engaged. What can be said is that the identifier is harmless, since the processor stays usable in all four cases, consistent with the control-space sweep.
* enumerate the ring control command space: all ids inertuser2026-09-30
| | | | | | | | | | | | | | | | | | | | The control register carries an identifier in four bits, so there are sixteen possible commands, eleven named in the headers and five undocumented, of which only ring-create and destroy had ever been used. This is a command space distinct from both the ring command space and the application command space and it had never been enumerated. With one identifier per fresh boot and each run passing its own control first, every one of the fourteen tested identifiers leaves the processor able to create a ring and run a command. The two excluded are the destroy command the driver uses normally and the reset command that resets the chip by design. The interrupt-ring setter deserved attention since it points the processor at a host-supplied ring, the same shape as the unvalidated fence destination, but writing it changes nothing observable, so on this firmware it needs parameters this path does not supply. This is the only structure in the ring family with no defect, the frame having two unvalidated fields and creation an alignment gap, and it exhausts that family.
* finding: the ring base is accepted misaligned and then wedges on first submituser2026-09-30
| | | | | | | | | | | | | | | | | | | | | | The last host-to-processor surface is the ring-creation registers, whose status field reports acceptance directly so nothing need be inferred. That validation layer is good: zero, one and all-ones sizes are rejected with one code, a two-gigabyte size with another, and a base inside the trusted region with a third, so the trusted region is explicitly excluded from the ring base. The gap is alignment. A base one byte off is accepted at creation and the processor then dies on the first submit. The aligned control runs first in the same boot and succeeds with the heartbeat advancing, so this is not an inherited dead processor, the failure mode that produced phantom hits twice in this audit. It is an inconsistency rather than a policy, since command-buffer and image misalignment are both rejected with their own codes, and the consequence is deferred to first use in the same shape as an earlier zero-length descriptor defect. It is an eighth denial-of-service trigger, not corruption. A process note is kept: the first sweep reported every case including the control as wedged, caused by a syntax error in the script so that nothing ran, and the control is what exposed it.
* close the ring index: bounded, and handled gracefullyuser2026-09-30
| | | | | | | | | | | | | | | | The frame contents were fully mapped but the ring index never was, a question hidden by the host driver's own bug of never wrapping the write pointer. An unclamped index would make the processor fetch a frame from outside the declared allocation, an out-of-bounds read by trusted firmware at a host-chosen index. Planting a valid frame in pages reserved beyond the ring, so an out-of-range fetch would read our own planted data and be unmistakable, shows the index is bounded: neither one ring-length nor a megabyte past the end executes, while the legal control does. The result worth noting is that the processor stays healthy in both out-of-range cases, ignoring the index rather than faulting, in contrast to the two frame fields that kill it. The index is therefore not merely checked but handled gracefully, which is the behaviour those fields are missing, and that contrast is recorded in the field map.
* close the last ring-frame field and publish the complete field mapuser2026-09-30
| | | | | | | | | | | | | | | | The command-buffer size field had been lost to an inherited dead card and never retested, and it is the most interesting kind of field, a length the host declares, which would be an overflow if the processor copied that many bytes internally. With the buffer flanked by pattern-filled guard pages and the control re-run after every mutation, every value from zero to all-ones completes cleanly with no guard writes in either direction: the field is ignored entirely and the command size is implicit in the fixed-size structure. The ring frame is now completely characterised and published as a field map: two unvalidated host-controlled fields, three of the seven denial-of-service triggers, one field ignored, and no corruption. The map is indexed with its limitation stated, namely that the unchecked write destination does not land in the trusted region under a dense functional test and that a host-chosen translation context grants a bare-metal host nothing it did not already have.
* characterise the vmid fault and rule out two explanations by measurementuser2026-09-30
| | | | | | | | | | | | | | | | | | | | The identifier failing after the context was configured needed diagnosis rather than a guess. The level-two protection fault status is zero for the control and a decoded read fault with walker and mapping errors for the non-zero identifier, at the processor's own command buffer address, which strengthens the finding: the processor demonstrably issued a read of its own command buffer through the host-named context, and the clean control attributes the fault to that frame byte alone. Two explanations are ruled out by measurement rather than argument: reading the registers back shows the configuration applied and the context matching context zero exactly, and the contexts-disable register reads zero. The mechanism is therefore still not fully explained and no guess is substituted for it. A conclusion that matters more than the mechanism is recorded: even if a non-zero identifier could be made to work it would not be a bare-metal primitive, because the host already owns the working context's page tables and already chooses the frame's addresses, so redirecting through another host-owned context grants nothing new. The value is confined to the virtualized hypothesis, which cannot be tested here.
* record the frame-sweep passes and add the seventh triggeruser2026-09-30
| | | | | | | | | | | | | | | | | The audit log gains the rest of the ring frame: the dword that kills the processor holds the virtual-memory identifier and frame type, any non-zero identifier is a seventh trigger, the interrupt log shows the host-supplied value reaching the processor's own command fetch as a translation context, and a controlled access under a chosen context was not achieved. Two cascades are recorded because both would have produced fabricated findings. The first frame sweep reported eleven anomalies on reserved dwords which were all inherited from one earlier kill, reduced to one real anomaly by re-running the unmutated control after every mutation, the same failure mode as an earlier sweep's phantom hits. The second was a before-and-after measurement inside a single boot whose later control was reading a dead processor. The report gains the seventh trigger with its recovery requirement and fix.
* finding: the ring frame's vmid byte is host-controlled, propagated into the ↵user2026-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | processor's own accesses, and unvalidated Sweeping all sixteen dwords of the ring frame found that one kills the processor, and that offset is not reserved: it holds the virtual-memory identifier and the frame type. Any non-zero identifier wedges the processor, a seventh host-triggerable trigger needing a power cycle, while the frame type is ignored entirely. The interrupt log during the attempt shows memory-controller protection faults tagged with the host-supplied identifier, at the processor's own command buffer address, so the value is propagated into the processor's own memory accesses as the translation context with nothing validating it and death rather than an error status as the failure mode. What was not achieved is stated plainly: configuring the hub's context one with the same root page table and flushing its lookaside buffer does not make the non-zero identifier work, so either a different hub or context set is used or more setup is required, and a controlled access under a host-chosen context was not demonstrated. A first version of that experiment measured before and after inside one boot and its verdict is recorded as void, because one attempt kills the processor so the later control inherited a dead one. The concerning shape is a virtualized configuration, where a frame field naming the translation context and honoured unchecked by trusted firmware is a confused deputy; that is labelled a hypothesis, since the virtualized mode is not available here.
* record the ring-frame passes in the audit log and add the sixth trigger to ↵user2026-09-30
| | | | | | | | | | | | | | | | | | the report The audit log gains the ring-frame section: the processor writes a host-chosen value to a host-chosen address, a destination inside the trusted region is accepted where the same address as a command buffer is rejected, and a null destination is a sixth wedge. It also records that corruption is not demonstrated, with the dense functional test that argues hardware protection covers the missing check. Three process notes are kept because each would have produced a wrong entry: the response status was first read from a guessed offset inside another union member and reported a completed command as never completed, the first functional spray would have hit the load session wall, and its coverage was far too thin to support the negative it printed. The denial-of-service report gains the sixth trigger with its recovery requirement and fix.
* finding: the ring frame's fence address is not range-checked, unlike the ↵user2026-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | command buffer Every other test in this audit varied command content, but the ring frame itself is equally host-controlled and carries both an address the processor writes to and the value it writes there. The command buffer address is range-checked against the trusted region; this destination never was. Confirmed on hardware: the processor writes a host-chosen value to a host-chosen address; a destination inside the trusted region is accepted and the command completes with the processor healthy, where the equivalent command-buffer address is rejected; and a null destination completes the command but freezes the heartbeat and wedges the card, a sixth trigger of the known class needing a power cycle. Corruption is explicitly not demonstrated. Host reads of the trusted region return all ones so read-back cannot settle it, and a dense functional test of sixteen thousand host-chosen values at sixty-four byte granularity across the whole first megabyte, where a loaded application image lives, leaves that application's behaviour identical. The likely explanation is that the write is subject to the same hardware protection, so the missing software check is covered. A first sparse attempt of three hundred values over nineteen megabytes is recorded as discarded for being too thin to support any conclusion. This is therefore recorded as a defence-in-depth gap rather than an exercisable primitive, with fixes to range-check the destination and to reject a null one with a status.
* hundred-and-seventeenth pass: image and command-buffer aliasing is handleduser2026-09-30
| | | | | | | | | | | | | Every load in this audit used two disjoint allocations, so aliasing was untested even though it is where a loader that copies the image out and then treats an overlapping region as the command buffer would fail. With the buffer equal to the image address, placed inside the image, and with the image placed inside the command region, every arrangement loads and invokes normally with no stall, and the processor is healthy afterwards, so the loader copies the image out before the buffer is used and overlap is harmless. Aliasing joins the list of correctly handled cases and the objective is not met.
* hundred-and-sixteenth pass: loader class confusion is correctly handleduser2026-09-30
| | | | | | | | | | | | | | | Untried variant: feeding a driver-class blob through the application load command and an application blob through the driver load command, which would take a mismatched path if the loader trusted the command rather than the image's own class field. Both mismatched loads are accepted but neither is confused. The command identifier is irrelevant and the image's class field governs: the driver-class blob loaded as an application still refuses invocation with the documented status, and the application loaded as a driver still invokes normally. This is consistent with the handler coverage document mapping both load commands to the same handler. There is no stall and the processor loads a known-good application afterwards. The objective is not met.
* hundred-and-fifteenth pass: sweep the driver-class load path across all ↵user2026-09-30
| | | | | | | | | | | | | | | | | corpus builds The last image class never exercised. That class loads but refuses invocation so every application-side fuzz skipped it, and its load command had only ever been driven with the in-use image, while the corpus holds seventeen distinct builds each being a differently shaped signed blob through the loader's parse and authenticate path. With a processor-health control after every load, requiring a known-good application to still load, fifteen builds load cleanly and two are cleanly rejected for authentication, with no stalls and no case where the processor was unhealthy afterwards. That path and every corpus build of that class are now covered, which was the last image class outside the application corpus, with no memory corruption anywhere in it. The objective is not met.
* hundred-and-fourteenth pass: close the last acknowledged weak spot in coverageuser2026-09-30
| | | | | | | | | | | | | | | | | | | | An earlier pass recorded its own handle test as weak evidence, since harvested handles were injected at a single offset so a real handle field elsewhere was never exercised and a command ignoring that offset made the control fire vacuously. That was the only row in the coverage table not backed by a discriminating test. The new probe harvests the handles an application emits, invokes every command once so it can free whatever it frees, then replays each handle at every dword offset, each time paired with a random value at the same offset as the discriminator, since an offset accepting the handle while rejecting the random value would be a field that is read and ownership-checked and therefore a use-after-free if the handle was freed first. Across three applications no offset in the swept range accepts a stale handle while rejecting a random value. One application yielded only a single harvested handle, so its row remains thin and that is stated rather than counted as strong. The coverage table now has no row backed only by weak evidence, and the objective is not met.
* index the hardware probes so they are discoverable and usableuser2026-09-30
| | | | | | | | | | | Fifty-three probes were committed but about twenty were not named in any document, which made them effectively undiscoverable. The index groups them by what they establish: infrastructure, the denial-of-service triggers with their controls, the boundary checks found correct, the memory-safety sweeps and their coverage, and the earlier lifetime work. It records the run and recovery commands, notes that most probes carry an in-run control and that several results in the log were discarded because a control failed, and flags the one probe whose evidence is explicitly weak.
* hundred-and-thirteenth pass: multi-session stateful fuzz with slot recyclinguser2026-09-30
| | | | | | | | | | | | | | | | | | The previous pass carried state within one session, while the known lifetime defects are about slot reuse across sessions, a slot freed by one client and reached by another. This runs several concurrent sessions, interleaves state-carrying invokes among them, and randomly unloads and reloads non-survivor sessions mid-run so slots recycle underneath the survivor, detecting drift in the survivor's fixed re-probe, cross-session marker leakage, stalls and writes past the window. Across four applications and forty-two hundred multi-session state-carrying invokes there is no drift, no cross-session leakage, no stall and no out-of-bounds write. One incidental observation is kept: the application whose lifetime handling is known to be defective accepts only two concurrent sessions where the others accept five. Slot reuse across sessions, the last structural variant of the axis where the only known defects live, is now covered and negative. The objective is not met.
* hundred-and-twelfth pass: stateful sequence fuzz closes the weakest axisuser2026-09-30
| | | | | | | | | | | | | | | | | | | | Every fuzz so far issued independent invokes with a freshly built buffer, which cannot reach defects needing a sequence of create, use, destroy and use again, precisely the shape of the known lifetime defects, and an earlier pass recorded that the generic handle test was too coarse to rediscover them. The new fuzzer carries state instead, leaving the buffer exactly as the previous invoke left it so handles the application emits are fed straight back to it on the next command, including after whatever command might free them, with half the steps additionally perturbing a few dwords of the carried content. Detection covers non-benign status, stalls, writes past the window and drift in a periodic fixed re-probe, drift being the signature of corrupted internal state. Across six applications and seventy-five hundred state-carrying invokes there is no status anomaly, no stall, no out-of-bounds write and no drift, so no observable internal-state corruption accumulates over long sequences. The axis on which coverage was weakest is now the same as the others, with a working control established before each run and re-checked periodically. The objective is not met.
* hundred-and-eleventh pass: multi-field mutations across the full windowuser2026-09-30
| | | | | | | | | | | | | The previous pass swept single dwords exhaustively, but corruption often needs a combination such as a length field together with a count field, and the randomized multi-field fuzz had only ever drawn offsets from the first part of the buffer. Widened to draw from the whole declared window with up to five simultaneous mutations per invoke, seven applications and over fifteen thousand invokes produce no non-benign status, no stall, no write past the declared window and no drift in the periodic fixed re-probe. Combined with the previous pass's exhaustive single-dword mutations, the shared-buffer parameter space is now covered both exhaustively for singles and combinatorially for tuples on real hardware. The objective is not met.
* hundred-and-tenth pass: full-resolution sweep of the entire shared bufferuser2026-09-30
| | | | | | | | | | | | | | | | | | The last surface that was sampled rather than swept. Payload fuzzing had mutated only the first part of the window or filled broad regions uniformly, so a command reading a parameter deeper in the sixteen-kilobyte window would be missed by both, and the earlier ring fix makes a per-dword sweep of the whole window affordable for the first time. For every dword offset in the window the sweep sets it to all-ones, invokes, and compares status and output against the unmutated baseline while watching for stalls and writes past the window. Across three applications that is over twelve thousand single-dword mutations with no stall, no write beyond the window and no status change. The entries where output differs are the application echoing input into its output area, since the status is unchanged and the differing bytes are the mutated value itself, so they are not hits. Every host-supplied byte, the whole shared buffer, both ring command structures and the image, has now been mutated at dword resolution on real hardware, and nothing produces a write outside a host-designated buffer. The objective is not met.
* hundred-and-ninth pass: full-resolution sweep of the load command structureuser2026-09-30
| | | | | | | | | | | | | | | | | | | | | The previous pass characterised every dword of the invoke structure, and the same had never been done for the load command, whose named fields were fuzzed earlier but whose command region was never swept word by word. The first run was an artifact worth recording: it reported about a hundred and sixty fields changing the outcome, every dword from one offset onward returning the same status, which is the session-wall code, with the hits beginning at exactly the iteration where the session limit is reached because the sweep loaded a trusted application per mutation and never unloaded. Reported as a finding it would have been a hundred and sixty phantom fields. With an unload after each successful load, no dword changes the outcome across all one hundred and ninety-six, so only the named fields are read and every other dword is ignored, consistent with the targeted tests that found the loader validating exactly the address, length and alignment of the two buffers. Both ring command structures are now swept at full resolution and neither yields corruption. The objective is not met.
* hundred-and-eighth pass: characterise the one validated field in the invoke ↵user2026-09-30
| | | | | | | | | | | | | | | | | structure The previous pass showed a wholesale-filled invoke structure is rejected, meaning something in those bytes is validated, and a validated field is a used field. A full-resolution sweep of all one hundred and ninety-six dwords, at word stride rather than the earlier coarse stride, isolates exactly one field. Characterising its accepted range shows only zero is accepted, small values give one error code and large values another, with no stall and nothing written beyond the declared window at any value, so the field is strictly validated. The invoke ring structure is therefore fully characterised, with almost every dword ignored, the single field that is read range-checked, and no value producing corruption. The objective is not met.
* hundred-and-seventh pass: close the invoke-structure gap properlyuser2026-09-30
| | | | | | | | | | | | | | | | | The previous pass left this surface partially covered because the fill test clobbered the session identifier and therefore measured the session check rather than the payload. Fixed by filling the raw bytes first and setting the two real fields through the accessors afterwards so they survive. With that correction, filling the whole remainder returns a clean error with its own status code, distinct from the invalid-session code, so the processor is validating the region rather than the session check firing. Individual dwords across the full range are all ignored with success status. No stalls and no writes outside the declared window in any case. The invoke ring structure is therefore fully covered: stray individual fields are ignored and a wholesale-garbage structure is rejected with its own code, so the previous pass's caveat is resolved rather than left standing. The objective is not met.