Re:C++ Attribute: Likely, Unlikely
by clnq on Sunday October 22, 2023 @02:25PM
(#37977792)
Can this reasonably reliably steer speculative execution?
[ Parent
| on HN ]
No, because speculative speculation attacks can choose to deliberately mislead the dynamic branch predictor prior to the actual attack.
Use `__builtin_speculation_safe_value` to defend against that.