[riot-commits] [RIOT-OS/RIOT] abdb3e: x86: add read-before-write check at runtime

Oleg Hahm oleg at hobbykeller.org
Mon Jun 23 00:12:03 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: abdb3ef2a4769d9c3f816004a3926504369baa24
      https://github.com/RIOT-OS/RIOT/commit/abdb3ef2a4769d9c3f816004a3926504369baa24
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-05-31 (Sat, 31 May 2014)

  Changed paths:
    M cpu/x86/include/x86_memory.h
    M cpu/x86/x86_memory.c

  Log Message:
  -----------
  x86: add read-before-write check at runtime

Finding read-before-writes statically is quite difficult. In native we
can use valgrind, but on boards without an MMU we are out of luck.

x86 has an MMU, let's use it.

If `-DDEBUG_READ_BEFORE_WRITE` was set, then pages on the heap get
initialized upon first use. If the page was read before written, then a
debug message with the virtual and physical address of the memory
location is printed, as well as the address of the offending instruction.


  Commit: fde1c106ab7070b718dc1f0acc153023c3ca810d
      https://github.com/RIOT-OS/RIOT/commit/fde1c106ab7070b718dc1f0acc153023c3ca810d
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-06-23 (Mon, 23 Jun 2014)

  Changed paths:
    M cpu/x86/include/x86_memory.h
    M cpu/x86/x86_memory.c

  Log Message:
  -----------
  Merge pull request #1259 from Kijewski/x86-heap-check

x86: add read-before-write check at runtime


Compare: https://github.com/RIOT-OS/RIOT/compare/36b9f7e7d70e...fde1c106ab70


More information about the commits mailing list