2 ms·
That's basically a jump table. Still vulnerable to spectre (variant 2) without mitigations, btw.
by gpderetta 9y ago
That's basically a jump table. Still vulnerable to spectre (variant 2) without mitigations, btw.
- fpoling 9y agoIt is even worse then switch/match statements. The jump tables can be used to train CPU to jump to a wide variety of addresses than switch/match statements so mounting a speculative execution attack is simpler.
- gpderetta 9y agotrue. Then again switch statements (and I assume match statements in language that have them) are often compiled down to a jump table...