arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.11324cs.PL
收藏

用virtine在硬件极限处隔离函数

Isolating Functions at the Hardware Limit with Virtines

Nicholas C. Wanninger, Joshua J. Bowden, Kirtankumar Shetty, Ayush Garg, Kyle C. Hale

摘要:

一类重要的应用程序,包括利用第三方库的程序、在数据库中使用用户定义函数的程序以及无服务器应用程序,都受益于以单个函数或函数调用的粒度隔离不受信任代码的执行。然而,现有的隔离机制并不是针对此用例设计的;相反,它们已经适应了它。我们介绍了\textit{virtines},这是一种专门为功能粒度隔离设计的新抽象,并描述了我们如何通过将硬件虚拟化推向极限来从头开始构建virtine。virtine为开发人员提供了细粒度的控制,可以决定哪些函数应该在隔离的环境中运行,哪些不应该。virtine抽象是一个通用的,我们演示了一个原型,增加了扩展的C语言。我们提出了一个详细的分析,在隔离的虚拟机中运行各个功能的开销,并根据这些发现,我们提出了黄蜂,一个嵌入式管理程序,允许程序员轻松使用virtine。我们描述了几个采用单独功能隔离的代表性场景,并证明virtine可以应用于这些场景,只需对现有代码库进行几行更改并且速度可以接受。

英文摘要:

An important class of applications, including programs that leverage third-party libraries, programs that use user-defined functions in databases, and serverless applications, benefit from isolating the execution of untrusted code at the granularity of individual functions or function invocations. However, existing isolation mechanisms were not designed for this use case; rather, they have been adapted to it. We introduce \textit{virtines}, a new abstraction designed specifically for function granularity isolation, and describe how we build virtines from the ground up by pushing hardware virtualization to its limits. Virtines give developers fine-grained control in deciding which functions should run in isolated environments, and which should not. The virtine abstraction is a general one, and we demonstrate a prototype that adds extensions to the C language. We present a detailed analysis of the overheads of running individual functions in isolated VMs, and guided by those findings, we present Wasp, an embeddable hypervisor that allows programmers to easily use virtines. We describe several representative scenarios that employ individual function isolation, and demonstrate that virtines can be applied in these scenarios with only a few lines of changes to existing codebases and with acceptable slowdowns.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑