<feed xmlns='http://www.w3.org/2005/Atom'>
<title>amd-psp-re.git/fw/ta_cmd_audit.py, branch main</title>
<subtitle>AMD PSP reverse engineering, emulator and vulnerability research</subtitle>
<id>https://git.sl0p.foo/amd-psp-re.git/atom/fw/ta_cmd_audit.py?h=main</id>
<link rel='self' href='https://git.sl0p.foo/amd-psp-re.git/atom/fw/ta_cmd_audit.py?h=main'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/amd-psp-re.git/'/>
<updated>2026-09-29T11:23:24Z</updated>
<entry>
<title>fw: SVC surface of the new TAs -- GCP forwards ASD 0x202, overturning a standing negative</title>
<updated>2026-09-29T11:23:24Z</updated>
<author>
<name>user</name>
<email>user@clank</email>
</author>
<published>2026-09-29T11:23:24Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/amd-psp-re.git/commit/?id=1defa17c66e338c635e60f9573c5f8630896e6ed'/>
<id>urn:sha1:1defa17c66e338c635e60f9573c5f8630896e6ed</id>
<content type='text'>
Added fw/ta_svc_scan.py, which enumerates every SVC site per TA and recovers
service-2/service-1 RPC opcodes from the store into req[0], per the ABI in
GUARD-INIT-CHAIN.md. Validated against HDCP first: 49 svc 0xF2 sites, matching
the count in the original 89-site audit, with service-1 opcodes matching its
documented list.

The result that matters: VULN-ASD-202-CANARY-LEAK.md rates the ASD canary
disclosure not host-reachable on three axes, the load-bearing one being that no
host-reachable TA forwards opcode 0x202. That scan covered ASD, HDCP, DTM and
RAS, the only TAs known at the time. GCP contains a thunk at 0x405446 that sets
req[0]=0x202 and service 2 and issues svc 0xF2, and it is called from two
host-invokable GCP commands, cmd04 GetContentKey at 0x4037e8 and cmdFE02 at
0x403c42. OPM likewise emits ASD 0x301, the 5120-byte content-controlled write
that was dismissed only because nothing emitted it.

So that axis is now false: GCP and OPM are measured host-invokable on this card
and they reach ASD opcodes the four-TA scan concluded nobody reaches.

Deliberately not claimed: a host-visible leak. ASD 0x202 copies its sixteen
uninitialised stack bytes to a caller-supplied pointer, and the caller here is
GCP, so the canary lands in GCP's buffer; host visibility requires GCP to copy
that region into its response, which is the next step.

Also recorded as a warning attached to the result: the scan's resumable sweep can
fabricate instructions, and an earlier pass reported this very movw from a
misaligned window. Every opcode quoted for GCP and OPM was re-verified by
disassembling from a function boundary, and the call sites by disassembling
around them; the rest of the table is leads until checked the same way.
</content>
</entry>
</feed>
