Home | About Us | Projects | People | Documents | Courses | Internal
 
Document Details: Harbor: Software-based Memory Protection...
TITLE
 

Harbor: Software-based Memory Protection for Sensor Nodes

In In IPSN '07: Proc. 6th International Symposium on Information Processing in Sensor Networks , 10 pages , ACM , Cambridge, MA , April 2007.

NESL Technical Report #: TR-UCLA-NESL-200703-03

ABSTRACT
 

Many sensor nodes contain resource constrained microcontrollers where user level applications, operating system components, and device drivers share a single address space with no form of hardware memory protection. Programming errors in one application can easily corrupt the state of the operating system or other applications. In this paper, we propose Harbor, a memory protection system that prevents many forms of memory corruption. We use software based fault isolation (``sandboxing'') to restrict application memory accesses and control flow to protection domains within the address space. A flexible and efficient memory map data structure records ownership and layout information for memory regions; writes are validated using the memory map. Control flow integrity is preserved by maintaining a safe stack that stores return addresses in a protected memory region. Run-time checks validate computed control flow instructions. Cross domain calls perform low-overhead control transfers between domains. Checks are introduced by rewriting an application's compiled binary. The sandboxed result is verified on the sensor node before it is admitted for execution. Harbor's fault isolation properties depend only on the correctness of this verifier and the Harbor runtime. We have implemented and tested Harbor on the SOS operating system. Harbor detected and prevented memory corruption caused by programming errors in application modules that had been in use for several months. Harbor's overhead, though high, is less than that of application-specific virtual machines, and reasonable for typical sensor workloads.

AUTHORS
 

Ramkumar Rengaswamy
Eddie Kohler
Mani B Srivastava


DOWNLOADS
 

PDF file of paper
Source file of presentation

RELATED PROJECTS
 

SOS : A dynamic operating system for sensor networks

TYPE
 

Conference Paper

© 2009 by Networked & Embedded Systems LaboratoryUniversity of California, Los Angeles
(Developed using Ruby on Rails, hosted on Mac OS X, and best viewed without Internet Explorer!)
Maintained by Mani Srivastava