通过多版本执行实现未修改浏览器的动态软件更新
Dynamic Software Updates for Unmodified Browsers through Multi-Version Execution
摘要:
在本文中,我们提出的设计,实现和评估SINATRA,它支持即时浏览器更新,不会导致任何数据丢失,通过一种新的多版本eXempire(MVX)的方法,JavaScript程序。SINATRA在纯JavaScript中工作,不需要任何浏览器支持,因此可以在闭源浏览器上工作,并且需要对每个目标页面进行可以自动化的微小更改。首先,SINATRA捕获JavaScript程序可用的所有非确定性(例如,执行的事件处理程序、过期的计时器、Math.random的调用)。我们的评估表明,SINATRA需要5 MB来存储此类事件,并且随着用户与每个页面的交互,内存以23.1KB/s的适度速率增长。当更新可用时,SINATRA通过在新浏览器上重新执行同一组非确定性事件来传输状态。在这段时间内(可能长达13秒),SINATRA使用MVX允许用户继续与旧浏览器进行交互。最后,SINATRA在353毫秒内更改角色,用户开始与新浏览器交互,有效地执行浏览器更新,零停机时间,没有状态丢失。
英文摘要:
In this paper, we present the design, implementation, and evaluation of SINATRA, which supports instantaneous browser updates that do not result in any data loss through a novel Multi-Version eXecution (MVX) approach for JavaScript programs. SINATRA works in pure JavaScript, does not require any browser support, thus works on closed-source browsers, and requires trivial changes to each target page, that can be automated. First, SINATRA captures all the non-determinism available to a JavaScript program (e.g., event handlers executed, expired timers, invocations of Math.random). Our evaluation shows that SINATRA requires 5MB to store such events, and the memory grows at a modest rate of 23.1KB/s as the user keeps interacting with each page. When an update becomes available, SINATRA transfer the state by re-executing the same set of non-deterministic events on the new browser. During this time, which can be as long as 13 seconds, SINATRA uses MVX to allow the user to keep interacting with the old browser. Finally, SINATRA changes the roles in 353ms, and the user starts interacting with the new browser, effectively performing a browser update with zero downtime and no loss of state.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。