diff options
Diffstat (limited to 'chap/encl1.tex')
-rw-r--r-- | chap/encl1.tex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chap/encl1.tex b/chap/encl1.tex index 6a8e62a..0c47c6e 100644 --- a/chap/encl1.tex +++ b/chap/encl1.tex @@ -3,7 +3,10 @@ \chapter{附件} -\section{在 gem5 中验证处理器模型安全性的代码}\label{lst:poc_for_gem5} +\section{在 Gem5 中验证处理器模型安全性的代码}\label{lst:poc_for_gem5} + +以下 C 程序使用 Evict+Reload 的方式对受害者函数 victim 进行 Spectre 攻击。 +对于不安全的处理器模型,运行该程序时,数据 X 对应的行(以下程序为123)会输出 hit,其他行均输出 miss. 而安全的处理器模型中,所有行均输出 miss. \begin{minted}{C} #include <stdio.h> |