Lune

HPCA2025顶会

SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction

Debpratim Adak, Huiyang Zhou, Eric Rotenberg, Amro Awad

2025年份
3被引次数
1顶会引用

摘要

In today’s digital landscape, software applications are susceptible to various threats arising from vulnerabilities in unsafe programming languages (C,C++\mathbf{C}, \mathrm{C}++) and speculative out-of-order cores in high-performance computers. Researchers recommended enhancements in both software and hardware for protection against such attacks. In-process isolation is a promising way to mitigate memoryrelated attacks. It compartmentalizes critical data and pointers in a separate memory region and enforces access control to this memory region. Any operation to such memory locations may require a permission adjustment before and after the operation, depending on the required access control. Memory Protection Keys, a recent architecture support, has been adopted by multiple processor vendors to allow access control changes in the user space, leading to lower performance overhead than the conventional system calls (e.g., mprotect). Still, this technology incurs significant performance overhead since the permission update instruction is serialized. Our research demonstrates significant performance improvement by allowing speculative permission updates. However, speculative execution of the permission update instruction may upgrade access permission transiently, leading to potential speculative execution attacks. To prevent such attacks, we propose Speculative Memory Protection Keys (SpecMPK), a lightweight microarchitecture enhancement to examine permission change and block transiently upgraded memory instructions until they become non-squashable. SpecMPK significantly improves performance compared to a serialized domain switch instruction. This work shows an average 12.21%\mathbf{1 2. 2 1 \%} performance improvement for selected SPEC workloads requiring frequent domain switches for various memory safety schemes using memory protection keys.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了最后一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

lune papers fulltext a171808f-e80e-4613-97cc-72ae7a238702

引用它的顶会 Paper1

问问它们各自怎么用它

它引用的顶会 Paper30

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖