Context-Sensitive Fencing: Securing Speculative Execution via Microcode Customization
Context-Sensitive Fencing: Securing Speculative Execution via Microcode Customization
复制标题
DOI:
10.1145/3297858.3304060
复制
发表时间:
2019-04
期刊:
影响因子:
--
通讯作者:
Mohammadkazem Taram;A. Venkat;D. Tullsen
中科院分区:
文献类型:
--
作者:
Mohammadkazem Taram;A. Venkat;D. Tullsen
This paper describes context-sensitive fencing (CSF), a microcode-level defense against multiple variants of Spectre. CSF leverages the ability to dynamically alter the decoding of the instruction stream, to seamlessly inject new micro-ops, including fences, only when dynamic conditions indicate they are needed. This enables the processor to protect against the attack, but with minimal impact on the efficacy of key performance features such as speculative execution. This research also examines several alternative fence implementations, and introduces three new types of fences which allow most dynamic reorderings of loads and stores, but in a way that prevents speculative accesses from changing visible cache state. These optimizations reduce the performance overhead of the defense mechanism, compared to state-of-the-art software-based fencing mechanisms by a factor of six.