by saagarjha · 6y ago · 0 comments
I know next to nothing about processors at this level, but I wonder if it would be possible for a skilled engineer to try to find these instructions by scrutinizing the actual physical instruction decoder on the chip and/or inspect the processor's microcode. Are these things possible to do? If they are, is it feasible to reverse engineer them?
You will of course have to flash downwards to a vulnerable version but it should give you what you need. Also, as this was fixed prior to Zen2 then you wouldn’t be able to test their newer chips.
Basically AMD has a buffer overflow in a SMM call and they conveniently signed an empty PSP module payload that will be executed nevertheless.
So I would guess studying the microcode does not lead to proving there is nothing else going on.
I am no EE, though.
but next CPUs will have vertically stacked circuitry making reverse engineering much more harder (impossible?).
https://en.wikipedia.org/wiki/Three-dimensional_integrated_c...
For two reasons: the equipment needed (extremely expensive) and the complexity of the task (transistors are placed by software, not humans anymore).
If anything I'd say that makes it even easier to reverse-engineer, since the layout is far more regular. There are some public tools to do this already - here's one that immediately comes to mind: https://degate.org/
So the level of complexity is pretty daunting. IMHO if you want to find out undocumented behaviour that was deliberately introduced, you're better off looking at other methods, no matter how deep your pockets are.
A large percentage of that is simply 6T/cell SRAM L1/L2/etc cache though
At least with software you can go step by step and inspect the memory at the very least.
With hardware you would have to take into account the entire chip state and routing.