Lune

EuroSys2024顶会

Polynima: Practical Hybrid Recompilation for Multithreaded Binaries

Chinmay Deshpande, Fabian Parzefall, Felicitas Hetzelt, Michael Franz

摘要

The maintenance of software distributed in its binary form can become challenging over time, due to the lack of vendor support or obsolete build environments. This can be costly when dealing with critical security vulnerabilities that are difficult to fix on a binary level. Moreover, advances in compiler technologies of the past decades remain unavailable to the users of such legacy binaries for performing optimizations and transformations. Binary recompilers aim to bridge this divide by "lifting" binary executables to compilerlevel intermediate representations (IR) and "lowering" them back again. But, current recompilers fail on that promise as they rely on unsound heuristics or impose high tracing overheads. Crucially, no existing recompiler addresses the specific challenges imposed by multithreaded programs that are ubiquitous in the modern software space.

To address these challenges, we present Polynima, a binary recompiler that supports the lifting and recompilation of x86/x64 multithreaded binaries while introducing a moderate 1.23x slowdown. We propose a hybrid control flow recovery approach that combines the benefits of static and dynamic techniques while providing an efficient strategy to handle unknown paths. Polynima enables the use of the rich LLVM compiler ecosystem to fix and improve legacy multithreaded binaries, which we demonstrate by mitigating a critical synchronization issue in a FTP server binary. We also leverage its functional IR to introduce a novel dynamic analysis to detect implicit synchronization primitives in binaries, which we use to further improve performance of the output. Finally, we evaluate the generality and correctness of

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 Lasagne: a static binary translator for weak memory model architectures
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMM
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 BinRec: dynamic binary lifting and recompilation
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code 引用了 SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 Lasagne: a static binary translator for weak memory model architectures
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMM
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 BinRec: dynamic binary lifting and recompilation
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 Lasagne: a static binary translator for weak memory model architectures
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 BinRec: dynamic binary lifting and recompilation
  • Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR Linking 引用了 SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask
  • AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMM 引用了 Lasagne: a static binary translator for weak memory model architectures
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled CodeWai Kin Wong, Daoyuan Wu, Huaijin Wang, Zongjie Li 等ISSTA 2025 · 8 次引用
  2. Arancini: A Hybrid Binary Translator for Weak Memory Model ArchitecturesSebastian Reimers, Dennis Sprokholt, Martin Fink, Theofilos Augoustis 等ASPLOS 2026 · 1 次引用
  3. No More Translation at Runtime: LLM-Empowered Static Binary TranslationZhibo Liu, Huaijin Wang, Wai Kin Wong, Daoyuan Wu 等EuroSys 2026 · 1 次引用
  4. Diatom: Polylithic Binary Lifting with Data-Flow Summaries and Type-Aware IR LinkingAnshunkang Zhou, Charles ZhangOOPSLA 2026 · 1 次引用

它引用的 Paper6

  1. SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to AskChengbin Pang, Ruotong Yu, Yaohui Chen, Eric Koskinen 等S&P 2021 · 102 次引用
  2. BinRec: dynamic binary lifting and recompilationAnil Altinay, Joseph Nash, Taddeus Kroes, Prabhu Rajasekaran 等EuroSys 2020 · 51 次引用
  3. SoK: Demystifying Binary Lifters Through the Lens of Downstream ApplicationsZhibo Liu, Yuanyuan Yuan, Shuai Wang, Yuyan BaoS&P 2022 · 29 次引用
  4. Lasagne: a static binary translator for weak memory model architecturesRodrigo C. O. Rocha, Dennis Sprokholt, Martin Fink, Redha Gouicem 等PLDI 2022 · 21 次引用
  5. AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMMMartin Beck, Koustubha Bhat, Lazar Stricevic, Geng Chen 等ASPLOS 2023 · 9 次引用

相关 Paper

  1. Lifting Optimized Binaries to Canonical Compiler IR via Structure-Aware Retrieval and Iterative VerificationXiaoao Zhu, Jie Ren, Zhiqiang Li, Jie Zheng 等ACL 2026
  2. What You Trace is What You Get: Dynamic Stack-Layout Recovery for Binary RecompilationFabian Parzefall, Chinmay Deshpande, Felicitas Hetzelt, Michael FranzASPLOS 2024 · 5 次引用
  3. Improving Security Tasks Using Compiler Provenance Information Recovered At the Binary-LevelYufei Du, Omar Alrawi, Kevin Z. Snow, Manos Antonakakis 等CCS 2023 · 8 次引用
  4. Incremental CFG patching for binary rewritingXiaozhu Meng, Weijie LiuASPLOS 2021 · 8 次引用
  5. Reassembly is Hard: A Reflection on Challenges and StrategiesHyungseok Kim, Soomin Kim, Junoh Lee, Kangkook Jee 等USENIX Security 2023
黄昏的海面,两侧是细线勾勒的悬崖