[PATCH] D19921: [esan] EfficiencySanitizer shadow memory

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 07:59:05 PDT 2016


bruening created this revision.
bruening added a reviewer: aizatsky.
bruening added subscribers: zhaoqin, kcc, eugenis, vitalybuka, llvm-commits.
Herald added a subscriber: kubabrecka.

Adds shadow memory mapping support common to all tools to the new
Efficiencysanitizer ("esan") family of tools.  This includes:

+ Shadow memory layout and mapping support for 64-bit Linux for any
  power-of-2 scale-down (1x, 2x, 4x, 8x, 16x, etc.) that ensures that
  shadow(shadow(address)) does not overlap shadow or application
  memory.

+ Mmap interception to ensure the application does not map on top of
  our shadow memory.

+ Init-time sanity checks for shadow regions.

+ A test of the mmap conflict mechanism.

http://reviews.llvm.org/D19921

Files:
  lib/esan/esan.cpp
  lib/esan/esan_interceptors.cpp
  lib/esan/esan_shadow.h
  test/esan/TestCases/mmap-shadow-conflict.c
  test/esan/TestCases/verbose-simple.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19921.56152.patch
Type: text/x-patch
Size: 13235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160504/e8a5881b/attachment.bin>


More information about the llvm-commits mailing list