面向嵌入式系统的 Rust:现状、挑战与未决问题(扩展报告)
Rust for Embedded Systems: Current State, Challenges and Open Problems (Extended Report)
AI总结:
本文通过分析 2,836 个 Rust 嵌入式软件和 225 名开发者问卷,系统揭示了 Rust 在嵌入式领域的支持不足、SAST 工具失效及互操作性挑战。
摘要:
嵌入式软件被用于医疗设备和自动驾驶汽车等安全关键系统中,在这些系统中,软件缺陷(包括安全漏洞)会造成严重后果。大多数嵌入式代码库都是用不安全的语言(特别是 C/C++)开发的,并且充斥着内存安全漏洞。为了防止此类漏洞,Rust 作为一种高性能的内存安全系统语言,为开发嵌入式软件提供了最佳选择。Rust 的互操作性使得能够在现有 C 代码库之上开发 Rust 应用程序。尽管如此,即使是最具资源的组织也仍然继续使用 C/C++ 开发嵌入式软件。本文开展了首个系统性研究,以全面理解将 Rust 用于嵌入式系统的现状和挑战。我们的研究围绕三个研究问题展开。我们收集了一个包含 2,836 个 Rust 嵌入式软件的数据集,涵盖各种类别,以及 5 种静态应用安全测试(SAST)工具。我们对数据集进行了系统分析,并对 225 名开发者进行了问卷调查,以研究我们的研究问题。我们发现,现有的 Rust 软件支持不足,SAST 工具无法处理 Rust 嵌入式软件的某些特性,从而导致失败,并且现有 Rust 软件中高级类型的普遍存在使得设计可互操作的代码具有挑战性。此外,我们还发现了开发者在将 Rust 用于嵌入式系统开发时所面临的各种挑战。
英文摘要:
Embedded software is used in safety-critical systems such as medical devices and autonomous vehicles, where software defects, including security vulnerabilities, have severe consequences. Most embedded codebases are developed in unsafe languages, specifically C/C++, and are riddled with memory safety vulnerabilities. To prevent such vulnerabilities, RUST, a performant memory-safe systems language, provides an optimal choice for developing embedded software. RUST interoperability enables developing RUST applications on top of existing C codebases. Despite this, even the most resourceful organizations continue to develop embedded software in C/C++. This paper performs the first systematic study to holistically understand the current state and challenges of using RUST for embedded systems. Our study is organized across three research questions. We collected a dataset of 2,836 RUST embedded software spanning various categories and 5 Static Application Security Testing ( SAST) tools. We performed a systematic analysis of our dataset and surveys with 225 developers to investigate our research questions. We found that existing RUST software support is inadequate, SAST tools cannot handle certain features of RUST embedded software, resulting in failures, and the prevalence of advanced types in existing RUST software makes it challenging to engineer interoperable code. In addition, we found various challenges faced by developers in using RUST for embedded systems development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。