aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruser <user@clank>2026-09-30 00:25:21 +0200
committeruser <user@clank>2026-09-30 00:25:21 +0200
commite12e9683179850ed286e2df480dd9320227cd6fc (patch)
tree312c452db7f514512ae6dd63070833d219c069eb
parentfifty-fifth pass: compose the chain through the real dispatcher in emulation (diff)
downloadamd-psp-re-e12e9683179850ed286e2df480dd9320227cd6fc.tar.gz
amd-psp-re-e12e9683179850ed286e2df480dd9320227cd6fc.tar.xz
amd-psp-re-e12e9683179850ed286e2df480dd9320227cd6fc.zip
fifty-sixth pass: payload origin cannot be emulated without faking the validator
The composed run wrote the message payload directly, whereas in the real system it arrives through another small opcode from a caller-supplied descriptor, so emulating that step would make the chain entirely request-driven. It does not work. That opcode never reaches its handler because the dispatcher's prologue validates every address and size descriptor through the address permission check, which rejects the harness's synthetic addresses, so the dispatcher returns before its switch. That check is the mechanism deciding whether a caller-supplied buffer may be used at all, so stubbing it to succeed would presuppose the question being asked. It was left alone and the payload-origin step remains static only. The harness could have been made to succeed in one line and the resulting green output would have been worthless. Status is otherwise unchanged: the chain is demonstrated end to end in emulation with controls, silicon is untouched, and the consequence of the oversized copy is uncharacterised.
-rw-r--r--fw/AUDIT-TA-MEMSAFETY-HUNT.md30
-rw-r--r--fw/CANDIDATE-SYSDRV-E04B68-COUNT-UNDERFLOW.md25
2 files changed, 55 insertions, 0 deletions
diff --git a/fw/AUDIT-TA-MEMSAFETY-HUNT.md b/fw/AUDIT-TA-MEMSAFETY-HUNT.md
index 1609d48..d53c2b1 100644
--- a/fw/AUDIT-TA-MEMSAFETY-HUNT.md
+++ b/fw/AUDIT-TA-MEMSAFETY-HUNT.md
@@ -2467,3 +2467,33 @@ complete:
Marking this complete now would mean relaxing, at the moment it became convenient, the same
standard applied for fifty-four passes to reject leads. The result is reported as what it is:
a demonstrated-in-emulation memory-corruption chain awaiting hardware confirmation.
+
+================================================================================
+# Fifty-sixth pass: trying to close the payload origin — and declining to fake it
+
+The composed run wrote the message payload directly. In the real system it arrives via
+small-opcode `0x33` -> `sub_E18EAC` from a caller-supplied descriptor, so emulating that step
+would make the chain entirely request-driven.
+
+It does not work: opcode `0x33` never reaches `sub_E1EA54`. The dispatcher's prologue
+validates every `(address, size)` descriptor through **`sub_E0DEF4`**, which rejects the
+harness's synthetic addresses, and `sub_E1DC30` returns before the switch.
+
+`sub_E0DEF4` is the address/permission check itself. Stubbing it to return success would
+**presuppose the question** — whether a caller-supplied buffer can legitimately reach
+`channel+0x70` — so it was left alone and the payload-origin step remains static-only.
+
+That is the honest outcome: the harness could have been made to "succeed" in one line, and the
+resulting green output would have been worthless.
+
+## Objective status after fifty-six passes
+
+Unchanged from pass fifty-five, with one item now better understood:
+
+* the corruption chain is demonstrated end to end **in emulation** with controls;
+* the **payload origin** through the real descriptor path is static-only, and emulating it
+ would require disabling the validator that decides the question;
+* **silicon is untouched**;
+* the **consequence** of the oversized copy is uncharacterised.
+
+The goal remains open.
diff --git a/fw/CANDIDATE-SYSDRV-E04B68-COUNT-UNDERFLOW.md b/fw/CANDIDATE-SYSDRV-E04B68-COUNT-UNDERFLOW.md
index 5851c2f..d9bce2c 100644
--- a/fw/CANDIDATE-SYSDRV-E04B68-COUNT-UNDERFLOW.md
+++ b/fw/CANDIDATE-SYSDRV-E04B68-COUNT-UNDERFLOW.md
@@ -359,3 +359,28 @@ all three handlers, the slot table and the state carried between requests are re
attacker-chosen over-length payload is established **statically only**.
3. **Consequence.** The ~4 GB copy is a length; what it corrupts, and whether that is
exploitable rather than merely fatal, has not been characterised.
+
+================================================================================
+## Payload origin: emulation blocked by the descriptor validator (deliberately not stubbed)
+
+In the composed run the message payload at `MSG+0x70` was written directly by the harness. In
+the real system it is filled by `sub_E18EAC` from a **caller-supplied buffer descriptor**,
+reached via small-opcode `0x33` (pass 42). Closing that would make the whole chain driven only
+by request data.
+
+Attempting it: opcode `0x33` never reaches `sub_E1EA54`/`sub_E18EAC`. Tracing shows the
+dispatcher's prologue loop validates each `(address, size)` descriptor through
+**`sub_E0DEF4`**, which returns 0 for the harness's synthetic addresses, so `sub_E1DC30`
+returns before its switch.
+
+`sub_E0DEF4` is the address/permission check — the mechanism that decides whether a
+caller-supplied buffer may be used at all. **Stubbing it to succeed would presuppose exactly
+the question being asked** ("can a host-supplied buffer reach `channel+0x70`?"), so it has not
+been stubbed and this remains **static-only**, as recorded in the outstanding items.
+
+What the static evidence does show (pass 42): `sub_E18EAC` is the sole writer of `+0x70`, it
+takes the source pointer and length from the descriptor, validates the **descriptor** via
+`sub_E0DEF4`, bounds the length against `[obj+0x60] >> 3` — and does **not** validate the
+content. So a caller whose descriptor passes validation controls those bytes. Whether a TA
+will pass a host-controlled buffer through with attacker-chosen contents is the part that
+needs hardware.