Automated repair of binary and assembly programs for cooperating embedded devices

Eric Schulte, Jonathan Di Lorenzo, Westley Weimer, Stephanie Forrest

Research output: Contribution to journalArticle

7 Scopus citations

Abstract

We present a method for automatically repairing arbitrary software defects in embedded systems, which have limited memory, disk and CPU capacities, but exist in great numbers. We extend evolutionary computation (EC) algorithms that search for valid repairs at the source code level to assembly and ELF format binaries, compensating for limited system resources with several algorithmic innovations. Our method does not require access to the source code or build toolchain of the software under repair, does not require program instrumentation, specialized execution environments, or virtual machines, or prior knowledge of the bug type. We repair defects in ARM and x86 assembly as well as ELF binaries, observing decreases of 86% in memory and 95% in disk requirements, with 62% decrease in repair time, compared to similar source-level techniques. These advances allow repairs previously possible only with C source code to be applied to any ARM or x86 assembly or ELF executable. Efficiency gains are achieved by introducing stochastic fault localization, with much lower overhead than comparable deterministic methods, and low-level program representations. When distributed over multiple devices, our algorithm finds repairs faster than predicted by naïve parallelism. Four devices using our approach are five times more efficient than a single device because of our collaboration model. The algorithm is implemented on Nokia N900 smartphones, with inter-phone communication fitting in 900 bytes sent in 7 SMS text messages per device per repair on average.

Original languageEnglish (US)
Pages (from-to)317-327
Number of pages11
JournalACM SIGPLAN Notices
Volume48
Issue number4
DOIs
StatePublished - Apr 1 2013
Externally publishedYes

Keywords

  • Assembly code
  • Automated program repair
  • Bytecode
  • Evolutionary computation
  • Fault localization
  • Legacy software

ASJC Scopus subject areas

  • Computer Science(all)

Fingerprint Dive into the research topics of 'Automated repair of binary and assembly programs for cooperating embedded devices'. Together they form a unique fingerprint.

  • Cite this