arXiv:2609.08871cs.CRSep 2026

Manuscript Offprint

arXiv:2609.08871

Towards Standardized Evaluation of GPU Memory Safety with GMSBench

Saurabh Singh, Jaewon Lee, Seonjin Na, Hyesoon Kim

Saurabh Singh*, Jaewon Lee†, Seonjin Na‡, and Hyesoon Kim*

*Georgia Institute of Technology, †Microsoft, ‡NVIDIA

saurabh.s@gatech.edu, jaewonlee@microsoft.com, sna@nvidia.com, hyesoon@cc.gatech.edu

Abstract—As GPUs become increasingly integral to high-performance computing and machine learning, ensuring memory safety in GPU programs has become crucial for reliable and secure execution. However, evaluating GPU memory safety techniques remains challenging due to the lack of comprehensive and standardized benchmarks. In this paper, we present GMSBench, a GPU memory safety benchmark designed to evaluate a broad range of memory safety violations across different GPU memory spaces and execution scenarios. GMSBench comprises 149 self-contained CUDA tests spanning spatial, temporal, and concurrency errors. The suite provides a standardized foundation for the evaluation and comparative analysis of GPU memory safety mechanisms and helps expose gaps in their detection coverage. We demonstrate the utility of GMSBench by evaluating Compute Sanitizer, a widely used GPU memory error detection tool across multiple GPU architectures.

I. INTRODUCTION

Graphics Processing Units (GPUs) have become a cornerstone of modern computing, driving advancements in fields such as scientific computing, machine learning, and graphics rendering. The massively parallel architectures make them highly effective at handling intensive parallel workloads, but also introduce unique challenges for ensuring memory safety. In GPU applications, memory safety violations such as buffer overflows, out-of-bounds accesses, use-after-free, or race conditions can lead to erroneous results, crashes, or even security vulnerabilities. Recent studies have shown that GPU memory safety errors can be exploited to develop attacks that degrade application performance [1], hijack control flow [2], and even cross the CPU-GPU isolation layer and corrupt CPU memory [3].

Despite growing interest in GPU memory safety, evaluation of memory error detection and protection mechanisms remains challenging. GPU programs operate across a heterogeneous memory hierarchy that includes global, shared, local, and constant memory, each with distinct access, visibility, and sharing semantics. Existing works often rely on tool-specific collections of test cases, with substantial variation in the types of errors, memory spaces, and access patterns they cover. As a result, reported detection coverage is difficult to compare across techniques, and important classes of violations may remain untested. This lack of a common and systematic benchmark makes it harder to assess the strengths and limitations of existing and future GPU memory safety mechanisms.

Prior GPU memory safety works have evaluated their techniques using custom collections of memory error tests. For

example, cuCatch [4] evaluates its approach using a closed-source benchmark suite, making it difficult to inspect the covered scenarios or reproduce the evaluation. In contrast, CuSafe [5] provides an open-source set of tests, but the suite is relatively small and covers only a limited subset of GPU memory safety errors. More broadly, existing benchmarks differ substantially in availability, organization, documentation, and coverage, making it difficult to determine which vulnerability classes, memory spaces, and access patterns are exercised and to directly compare results across techniques.

To address this gap, we present GMSBench, an open-source benchmark suite designed to provide a common and systematic foundation for evaluating hardware- and software-based GPU memory safety mechanisms. GMSBench contains carefully designed tests spanning across a broad range of vulnerability classes, memory spaces, allocation mechanisms, and access behaviors, enabling comprehensive and reproducible evaluations. This broad coverage allows GMSBench to expose weaknesses and blind spots in existing memory safety mechanisms while providing a consistent basis for comparison across different approaches. Overall, our contributions are as follows:

  1. We develop a systematic classification of GPU memory safety violations across spatial, temporal, and concurrency-related errors, and identify key dimensions affecting their manifestation and detection.

  2. We present GMSBench, an open-source¹ benchmark suite that builds on this classification to evaluate GPU memory safety mechanisms.

  3. We demonstrate the utility of GMSBench by evaluating a widely used GPU memory error detection tool across multiple GPU architectures and generations, and characterize its detection coverage across the benchmark.