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

在Solidity编译器中发现并理解错误编译漏洞

Finding and Understanding Miscompilation Bugs in the Solidity Compiler

Ethereum Foundation(以太坊基金会)

Bhargava Shastry

AI总结:

研究旨在提高Solidity编译器质量,创建SolSmith工具。通过生成有效测试程序使编译器测试更严格,发现25个错误编译漏洞。还对这些漏洞进行定性和定量分析,揭示优化编译器的陷阱,为智能合约及用户减少潜在风险。

摘要:

智能合约编译器对于确保公共区块链的正确性至关重要,其代码具有开源和不可变的特点。我们创建了语义感知差分模糊测试工具SolSmith,以提高以太坊区块链最流行的Solidity编译器的质量。我们花了三年多时间发现导致不正确代码的编译器缺陷,即错误编译漏洞。在此期间,我们发现了25个未被注意到的错误编译漏洞。我们的第一个贡献是使编译器测试更严格,通过生成可能对代码生成和优化组件进行压力测试的有效测试程序来实现。第二个贡献是对在Solidity编译器中发现的错误编译漏洞进行定性和定量分析,基于其性质、根本原因和对最终用户的影响进行分类,揭示了优化编译器的一些陷阱。

英文摘要:

Smart contract compilers are critical to ensuring the correctness of public blockchains whose defining characteristics are open-source and immutable code. We created SolSmith, a semantics-aware differential fuzz testing tool, to improve the quality of the Solidity compiler -- the most popular compiler for the Ethereum blockchain -- and spent over three years finding compiler defects that produce incorrect code. We call these defects miscompilation bugs. During this time period, we have discovered 25 miscompilation bugs that went unnoticed, some for multiple years. Our first contribution is to make compiler testing more rigorous. SolSmith achieves this goal by generating valid test programs that are likely to stress test code generation and optimization components. This helps SolSmith find bugs missed during routine testing that could potentially have serious implications for smart contracts and their users. Our second contribution is a qualitative and quantitative analysis of miscompilation bugs that we found in the Solidity compiler. We classify miscompilation bugs found by SolSmith based on their nature, root-causes, and impact on end-users. This sheds light on some pitfalls of optimizing compilers.

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

↑