首页|基于内存保护键值的细粒度访存监控

基于内存保护键值的细粒度访存监控

扫码查看
基于内存保护键值硬件扩展,提出了一种轻量化且细粒度的页保护机制。突破了传统页保护方法仅支持页粒度访存监控的技术局限,实现了能够拦截每个访存操作的细粒度页保护机制。充分利用内存保护键值提供的用户态线程局部页访问权限控制,性能开销相比传统页保护的降低了 30%以上。通过融合细粒度页保护与编译插桩,弥补了传统编译插桩方法无法覆盖程序中不可重编译部分的局限性。
Fine-grained memory access monitoring based on memory protection keys
Based on memory protection key hardware extensions,a lightweight and fine-grained page protection mechanism is proposed.This mechanism overcomes the technical limitations of traditional page protection methods that only support page-grained memory access monitoring,and achieves fine-grained page protection that can intercept each memory access operation.By fully utilizing the user-level thread-local page access permission control provided by memory protection keys,the performance over-head is reduced by more than 30%compared to traditional page protection.Through the integration of fine-grained page protection and compiler instrumentation,the limitations of traditional compiler instru-mentation methods that cannot cover non-recompilable portions of programs are addressed.

memory access monitoringmemory protection keyspage protectioncompiler instru-mentation

王睿伯、吴振伟、张文喆、邬会军、张于舒晴、卢凯

展开 >

国防科技大学计算机学院,湖南长沙 410073

访存监控 内存保护键值 页保护 编译插桩

国家重点研发计划国防科技大学HPCL重点实验室项目

2021YFB0300100202101-04

2024

计算机工程与科学
国防科学技术大学计算机学院

计算机工程与科学

CSTPCD北大核心
影响因子:0.787
ISSN:1007-130X
年,卷(期):2024.46(1)
  • 14