CuFuzz:通过转换和模糊测试加强CUDA程序
CuFuzz: Hardening CUDA Programs through Transformation and Fuzzing
AI总结:
CuFuzz通过编译器转换和模糊测试技术,首次为CUDA程序提供内存安全漏洞检测,提升GPU应用的安全性与可靠性。
摘要:
在过去的十年中,GPU获得了显著的普及,其应用已超出最初在图形渲染中的角色。这种演变使GPU的安全性和可靠性成为关注的焦点。先前的研究表明,CUDA缺乏内存安全性可能导致严重的漏洞。虽然模糊测试在发现CPU上的此类bug方面很有效,但由于架构差异和缺乏内置错误检测,GPU上等效的工具却缺乏。在本文中,我们提出了CuFuzz,一种新的编译器-运行时协同设计解决方案,以扩展最先进的CPU模糊测试工具到GPU程序。CuFuzz通过编译器IR级转换将GPU程序转换为CPU程序,以实现有效的模糊测试。据我们所知,CuFuzz是第一个将模糊测试支持引入CUDA的机制,填补了GPU安全研究中的关键空白。通过利用CPU内存错误检测器,如地址Sanitizer,CuFuzz旨在发现CUDA代码中的内存安全漏洞及相关正确性漏洞,提高GPU加速应用的安全性和可靠性。为了确保高模糊测试吞吐量,我们引入了两种针对GPU代码的编译器-运行时协同优化:部分代表性执行(PREX)和访问-索引保留修剪(AXIPrune),在PREX优化的代码上,分别实现了平均吞吐量提升32倍,以及在PREX基础上额外提升33%的收益。这些优化共同可以实现高达224.31倍的加速。在我们的模糊测试活动中,CuFuzz在广泛使用的基准中发现了122个安全漏洞。
英文摘要:
GPUs have gained significant popularity over the past decade, extending beyond their original role in graphics rendering. This evolution has brought GPU security and reliability to the forefront of concerns. Prior research has shown that CUDA's lack of memory safety can lead to serious vulnerabilities. While fuzzing is effective for finding such bugs on CPUs, equivalent tools for GPUs are lacking due to architectural differences and lack of built-in error detection. In this paper, we propose CuFuzz, a novel compiler-runtime co-design solution to extend state-of-the-art CPU fuzzing tools to GPU programs. CuFuzz transforms GPU programs into CPU programs using compiler IR-level transformations to enable effective fuzz testing. To the best of our knowledge, CuFuzz is the first mechanism to bring fuzzing support to CUDA, addressing a critical gap in GPU security research. By leveraging CPU memory error detectors such as Address Sanitizer, CuFuzz aims to uncover memory safety bugs and related correctness vulnerabilities in CUDA code, enhancing the security and reliability of GPU-accelerated applications. To ensure high fuzzing throughput, we introduce two compiler-runtime co-optimizations tailored for GPU code: Partial Representative Execution (PREX) and Access-Index Preserving Pruning (AXIPrune), achieving average throughput improvements of 32x with PREX and an additional 33% gain with AXIPrune on top of PREX-optimized code. Together, these optimizations can yield up to a 224.31x speedup. In our fuzzing campaigns, CuFuzz uncovered 122 security vulnerabilities in widely used benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。