arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.15036cs.PL
收藏

针对弱内存的动态鲁棒性验证(扩展版)

Dynamic Robustness Verification Against Weak Memory (Extended Version)

Roy Margalit, Michalis Kokologiannakis, Shachar Itzhaky, Ori Lahav

AI总结:

针对标准动态竞态检测与弱内存模型不兼容的问题,提出基于位置时钟的动态鲁棒性验证算法,并在工具RSAN中实现,实现对弱内存的有效防御。

摘要:

动态竞态检测是一种高效的运行时验证技术,通过插桩和监控并发程序运行来识别数据竞态。然而,标准的动态竞态检测与实际的弱内存模型不兼容;所添加的插桩引入了额外的同步,这会掩盖弱一致行为,并固有地遗漏某些数据竞态。为此,我们提出动态验证程序的鲁棒性——该属性确保程序仅表现出强一致行为。基于现有的静态决策过程,我们开发了一种在C11风格内存模型下进行动态鲁棒性验证的算法。该算法基于“位置时钟”,即标准竞态检测中使用的向量时钟的一种变体。它允许在逐个程序的基础上对弱内存进行有效且易于应用的防御,并且可以与假设强一致性的竞态检测相结合。我们在一个名为RSAN的工具中实现了我们的算法,并在各种设置下对其进行了评估。据我们所知,这项工作首次提出并开发了针对弱内存模型的动态鲁棒性验证。

英文摘要:

Dynamic race detection is a highly effective runtime verification technique for identifying data races by instrumenting and monitoring concurrent program runs. However, standard dynamic race detection is incompatible with practical weak memory models; the added instrumentation introduces extra synchronization, which masks weakly consistent behaviors and inherently misses certain data races. In response, we propose to dynamically verify program robustness-a property ensuring that a program exhibits only strongly consistent behaviors. Building on an existing static decision procedures, we develop an algorithm for dynamic robustness verification under a C11-style memory model. The algorithm is based on "location clocks", a variant of vector clocks used in standard race detection. It allows effective and easy-to-apply defense against weak memory on a per-program basis, which can be combined with race detection that assumes strong consistency. We implement our algorithm in a tool, called RSAN, and evaluate it across various settings. To our knowledge, this work is the first to propose and develop dynamic verification of robustness against weak memory models.

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

↑