跳到主要导航 跳到搜索 跳到主要内容

Odin: on-demand instrumentation with on-the-fly recompilation

  • Mingzhe Wang
  • , Jie Liang
  • , Chijin Zhou
  • , Zhiyong Wu
  • , Xinyi Xu
  • , Yu Jiang*
  • *此作品的通讯作者
  • Tsinghua University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Instrumentation is vital to fuzzing. It provides fuzzing directions and helps detect covert bugs, yet its overhead greatly reduces the fuzzing throughput. To reduce the overhead, compilers compromise instrumentation correctness for better optimization, or seek convoluted runtime support to remove unused probes during fuzzing. In this paper, we propose Odin, an on-demand instrumentation framework to instrument C/C++ programs correctly and flexibly. When instrumentation requirement changes during fuzzing, Odin first locates the changed code fragment, then re-instruments, re-optimizes, and re-compiles the small fragment on-the-fly. Consequently, with a minuscule compilation overhead, the runtime overhead of unused probes is reduced. Its architecture ensures correctness in instrumentation, optimized code generation, and low latency in recompilation. Experiments show that Odin delivers the performance of compiler-based static instrumentation while retaining the flexibility of binary-based dynamic instrumentation. When applied to coverage instrumentation, Odin reduces the coverage collection overhead by 3× and 17× compared to LLVM SanitizerCoverage and DynamoRIO, respectively.

源语言英语
主期刊名PLDI 2022 - Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation
编辑Ranjit Jhala, Isil Dillig
出版商Association for Computing Machinery
1010-1024
页数15
ISBN(电子版)9781450392655
DOI
出版状态已出版 - 9 6月 2022
已对外发布
活动43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2022 - Virtual, Online, 美国
期限: 13 6月 202217 6月 2022

出版系列

姓名Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI)

会议

会议43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2022
国家/地区美国
Virtual, Online
时期13/06/2217/06/22

指纹

探究 'Odin: on-demand instrumentation with on-the-fly recompilation' 的科研主题。它们共同构成独一无二的指纹。

引用此