- Why speculate? Performance vs. correctness
- Mechanics: branch, memory, and value speculation
- Speculation window and microarchitectural state
- Spectre-class attacks (v1/v2/v4, BTB/RSB, STL)
- Meltdown-type faults (Foreshadow/L1TF, MDS)
- Leakage vectors: caches, TLBs, predictors, ports
- Mitigations: fences, retpoline, masking, serialization
- OS/compiler hardening and ABI surfaces
- Performance impact and tuning
- Exercises