跳到正文
arXiv (Robotics + Hardware + Signal)· Wenbo Han, Pierre Talbot·· 7 天前AI 评分28

拆解GPU的Load/Store单元并揭示其安全风险

Dissecting the GPU Load/Store Unit and Exposing Its Security Risks

AI 导读

研究通过微基准测试逆向分析了NVIDIA GPU的load/store单元(LSU)服务load指令的机制,给出全局L1命中或共享内存访问的周期级延迟公式,指出load会在bank冲突和L1 tag查找两处产生竞争,且LSU流水线满时一个warp可饿死后续block的warp。

正文 · 原文

arXiv:2611.23022v2 Announce Type: replace Abstract: GPUs are the main platform for large-scale machine learning and power the largest supercomputers. Their load/store units (LSUs) often determine kernel performance and have been exploited in prior attacks. Yet what is known about the LSU is only a few isolated mechanisms and parameters, and even a single one has been enough for an attack. In particular, it is still unknown what a load costs, where loads contend, and even whether a warp can starve due to contention. Until each is measured, neither its security risk nor a defense is known. We reverse-engineer how the LSU serves load instructions on recent NVIDIA GPUs with microbenchmarks and analyze the security implications. We give a cycle-accurate latency formula for a global L1 hit or shared memory access from the addresses it touches, whose address-dependent terms are bank conflicts and the L1 tag lookup; we show that loads contend at both, and that when the LSU pipeline is full a warp can starve a warp of a later-launched block. We then show that the LSU's attack surface is far broader than prior attacks revealed: through channels never exploited before, it can leak information, communicate covertly, and degrade colocated workloads. Through either global bank conflicts or tag lookups alone, we recover a full AES-128 key under the threat model of prior GPU AES timing attacks. Under NVIDIA's Multi-Process Service (MPS), the bank access and the tag lookup each open a covert channel across processes, whose rate rises with each GPU generation. Also under MPS, this starvation lets one warp slow a colocated cuBLAS matrix multiplication by up to 750x on the A100 and 563x on the H100.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org