计算机工程与科学2024,Vol.46Issue(1) :21-27.DOI:10.3969/j.issn.1007-130X.2024.01.003

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

Fine-grained memory access monitoring based on memory protection keys

王睿伯 吴振伟 张文喆 邬会军 张于舒晴 卢凯
计算机工程与科学2024,Vol.46Issue(1) :21-27.DOI:10.3969/j.issn.1007-130X.2024.01.003

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

Fine-grained memory access monitoring based on memory protection keys

王睿伯 1吴振伟 1张文喆 1邬会军 1张于舒晴 1卢凯1
扫码查看

作者信息

  • 1. 国防科技大学计算机学院,湖南长沙 410073
  • 折叠

摘要

基于内存保护键值硬件扩展,提出了一种轻量化且细粒度的页保护机制.突破了传统页保护方法仅支持页粒度访存监控的技术局限,实现了能够拦截每个访存操作的细粒度页保护机制.充分利用内存保护键值提供的用户态线程局部页访问权限控制,性能开销相比传统页保护的降低了 30%以上.通过融合细粒度页保护与编译插桩,弥补了传统编译插桩方法无法覆盖程序中不可重编译部分的局限性.

Abstract

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.

关键词

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

Key words

memory access monitoring/memory protection keys/page protection/compiler instru-mentation

引用本文复制引用

基金项目

国家重点研发计划(2021YFB0300100)

国防科技大学HPCL重点实验室项目(202101-04)

出版年

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

计算机工程与科学

CSTPCD北大核心
影响因子:0.787
ISSN:1007-130X
参考文献量14
段落导航相关论文