• Home
  • Search
  • Thread-safe dynamic binary translation using transactional memory
  • Open Access IconOpen Access
  • Cite Icon54
  • https://doi.org/10.1109/hpca.2008.4658646Copy DOI Icon

Thread-safe dynamic binary translation using transactional memory

  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Dynamic binary translation (DBT) is a runtime instrumentation technique commonly used to support profiling, optimization, secure execution, and bug detection tools for application binaries. However, DBT frameworks may incorrectly handle multithreaded programs due to races involving updates to the application data and the corresponding metadata maintained by the DBT. Existing DBT frameworks handle this issue by serializing threads, disallowing multithreaded programs, or requiring explicit use of locks. This paper presents a practical solution for correct execution of multithreaded programs within DBT frameworks. To eliminate races involving metadata, we propose the use of transactional memory (TM). The DBT uses memory transactions to encapsulate the data and metadata accesses in a trace, within one atomic block. This approach guarantees correct execution of concurrent threads of the translated program, as TM mechanisms detect and correct races. To demonstrate this approach, we implemented a DBT-based tool for secure execution of x86 binaries using dynamic information flow tracking. This is the first such framework that correctly handles multithreaded binaries without serialization. We show that the use of software transactions in the DBT leads to a runtime overhead of 40%. We also show that software optimizations in the DBT and hardware support for transactions can reduce the runtime overhead to 6%.

Similar Papers
  • Conference Article
  • Citations5

Fast Dynamic Binary Rewriting for flexible thread migration on shared-ISA heterogeneous MPSoCs

  • Jul 01, 2014
  • Giorgis Georgakoudis +3
  • Research Article
  • Citations11

Efficient and Retargetable Dynamic Binary Translation on Multicores

  • Mar 01, 2014
  • IEEE Transactions on Parallel and Distributed Systems
  • Ding-Yong Hong +7
  • Conference Article

The multi-threaded optimization of dynamic binary translation

  • Jul 01, 2011
  • Jinxian Cui +3
  • Conference Article
  • Citations16

An LLVM-based hybrid binary translation system

  • Jun 01, 2012
  • Bor-Yeh Shen +3
  • Conference Article
  • Citations16

WHISK: An uncore architecture for Dynamic Information Flow Tracking in heterogeneous embedded SoCs

  • Sep 01, 2013
  • Joel Porquet +1
  • Research Article

Condition code optimization in dynamic binary translation

  • Jan 01, 2014
  • Journal of ZheJiang University (Engineering Science)
  • Meng Jian-Yi Wang Rong-Hua
  • Conference Article
  • Citations6

A small and adaptive coprocessor for information flow tracking in ARM SoCs

  • Nov 06, 2018
  • Muhammad Abdul Wahab +6
  • Book Chapter
  • Citations10

Supporting Legacy Binary Code in a Software Transaction Compiler with Dynamic Binary Translation and Optimization

  • Mar 29, 2008
  • Cheng Wang +2
  • Book Chapter
  • Citations9

Brief Announcement: Hybrid Time-Based Transactional Memory

  • Jan 01, 2010
  • Pascal Felber +4
  • Conference Article
  • Citations1

ARMHEx: A framework for efficient DIFT in real-world SoCs

  • Jul 07, 2017
  • Muhammad Abdul Wahab +5
  • Book Chapter
  • Citations14

Multi-stage Dynamic Information Flow Tracking Game

  • Jan 01, 2018
  • Shana Moothedath +5
  • Conference Article
  • Citations22

ARMHEx: A hardware extension for DIFT on ARM-based SoCs

  • Jul 07, 2017
  • Muhammad A Wahab +5
  • Conference Article
  • Citations3

Quickest Detection of Advanced Persistent Threats: A Semi-Markov Game Approach

  • Apr 01, 2020
  • Dinuka Sahabandu +5
  • Conference Article
  • Citations1

Dynamic Defense against Adaptive and Persistent Adversaries

  • Jan 15, 2018
  • Radha Poovendran
  • Conference Article
  • Citations35

From Speculation to Security: Practical and Efficient Information Flow Tracking Using Speculative Hardware

  • Jun 01, 2008
  • Haibo Chen +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.