赋能WebAssembly与精简内核接口
Empowering WebAssembly with Thin Kernel Interfaces
AI总结:
本文提出精简内核接口,直接暴露系统调用以增强Wasm的虚拟化能力,实现ISA可移植性和现有软件重用,并在Linux和Zephyr上验证了性能。
摘要:
Wasm作为一种规范良好的低级二进制格式,在Web之外正日益流行,它具有ISA可移植性、低内存占用和多语言目标性,能够实现对不可信代码的高效进程内沙箱隔离。尽管有这些优势,Wasm在新领域的采用往往因缺乏许多标准系统接口而受阻,这妨碍了现有软件的重用并减缓了生态系统的发展。本文提出了用于Wasm的精简内核接口,该接口直接暴露操作系统用户空间系统调用,而不破坏进程内沙箱隔离,从而实现了以Wasm作为通用二进制格式的新一类虚拟化。通过虚拟化用户空间的底层,内核接口使得应用程序ISA可移植性变得轻而易举,编译器后端可重用,并通过Wasm内置的控制流完整性和任意代码执行保护来加固程序。此外,现有的基于能力的Wasm API(如WASI)可以作为Wasm模块在内核接口之上实现,通过更好的分层提高重用性、健壮性和可移植性。我们通过扩展一个现代Wasm引擎,为两个内核——Linux和Zephyr——实现了这一概念,并评估了我们的系统在多个首次能在Wasm上运行的复杂应用程序上的性能。
英文摘要:
Wasm is gaining popularity outside the Web as a well-specified low-level binary format with ISA portability, low memory footprint and polyglot targetability, enabling efficient in-process sandboxing of untrusted code. Despite these advantages, Wasm adoption for new domains is often hindered by the lack of many standard system interfaces which precludes reusability of existing software and slows ecosystem growth. This paper proposes thin kernel interfaces for Wasm, which directly expose OS userspace syscalls without breaking intra-process sandboxing, enabling a new class of virtualization with Wasm as a universal binary format. By virtualizing the bottom layer of userspace, kernel interfaces enable effortless application ISA portability, compiler backend reusability, and armor programs with Wasm's built-in control flow integrity and arbitrary code execution protection. Furthermore, existing capability-based APIs for Wasm, such as WASI, can be implemented as a Wasm module over kernel interfaces, improving reuse, robustness, and portability through better layering. We present an implementation of this concept for two kernels -- Linux and Zephyr -- by extending a modern Wasm engine and evaluate our system's performance on a number of sophisticated applications which can run for the first time on Wasm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。