Security and Performance Implications of GPU Cache Eviction Priority Hints
Qizhong Wang, Xiangyue Huang, Yanan Guo, Yuanchao Xu
摘要
NVIDIA provides cache eviction priority hints such as evict_first and evict_last on recent GPUs.These hints allow users to specify the eviction priority that should be used for individual cache lines to improve cache utilization.However, NVIDIA does not disclose the microarchitectural details of these hints or cache eviction behaviors when using them, which makes their security and performance implications unclear.In this paper, we first reverse engineer the detailed comprehensive behaviors of these eviction priority hints.Then based on our findings, we analyze their impact on system security and performance.First, we found that these priority hints introduce new security problems.Specifically, we develop a new covert channel using the evict_first priority hint, which is more efficient than existing GPU covert channels.We also demonstrate a performance degradation attack using the evict_last priority hint, which is more stealthy compared to the known methods.Second, from the performance perspective, we show that marking a cache line as evict_last does not always keep it in the cache.In fact, if more than 12/16 (or 3/16, depending on the driver version) of the L2 cache size worth of data are marked as evict_last, cache thrashing can occur, which leads to performance degradation for real GPU workloads.
问 Lune
几分钟看清这篇 Paper 的位置,不用再花一下午。
Lune 能读引用它和与它最相关的顶会 Paper,讲清它说了什么、后来怎样、哪里站不住,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
相关 Paper
- Network-on-Chip Microarchitecture-based Covert Channel in GPUsJaeguk Ahn, Jiho Kim, Hans Kasan, Zhixian Jin 等MICRO 2021 · 30 次引用
- TunneLs for Bootlegging: Fully Reverse-Engineering GPU TLBs for Challenging Isolation Guarantees of NVIDIA MIGZhenkai Zhang, Tyler N. Allen, Fan Yao, Xing Gao 等CCS 2023 · 18 次引用
- Veiled Pathways: Investigating Covert and Side Channels Within GPU UncoreYuanqing Miao, Yingtian Zhang, Dinghao Wu, Danfeng Zhang 等MICRO 2024 · 8 次引用
- Invalidate+Compare: A Timer-Free GPU Cache Attack PrimitiveZhenkai Zhang, Kunbei Cai, Yanan Guo, Fan Yao 等USENIX Security 2024 · 15 次引用
- Spy in the GPU-box: Covert and Side Channel Attacks on Multi-GPU SystemsSankha Baran Dutta, Hoda Naghibijouybari, Arjun Gupta, Nael B. Abu-Ghazaleh 等ISCA 2023 · 41 次引用
