[PATCH] D13568: New MSan mapping layout (compiler-rt part)

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 11:39:55 PDT 2015


eugenis created this revision.
eugenis added a reviewer: samsonov.
eugenis added a subscriber: llvm-commits.
eugenis set the repository for this revision to rL LLVM.

This is an implementation of https://github.com/google/sanitizers/issues/579

It has a number of advantages over the current mapping:
- works for non-PIE executables
- does not require ASLR; as a consequence, debugging MSan programs in gdb no longer requires "set disable-randomization off"
- supports linux kernels >=4.1.2
- the code is marginally faster and smaller

This is an ABI break. We never really promised ABI stability, but this patch includes a courtesy escape hatch: a compile-time macro that reverts back to the old mapping layout. The same macro will be used in the llvm part of the patch, their definitions have to match, of course.

Repository:
  rL LLVM

http://reviews.llvm.org/D13568

Files:
  lib/msan/msan.h
  lib/msan/msan_allocator.cc
  test/msan/mmap.cc
  test/msan/strlen_of_shadow.cc
  test/sanitizer_common/TestCases/Posix/decorate_proc_maps.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13568.36881.patch
Type: text/x-patch
Size: 5424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151008/510fafa5/attachment.bin>


More information about the llvm-commits mailing list