[ASan] Intercept mcheck and mprobe on Linux 06/175706/1 submit/tizen_4.0_base/20180411.235322
authorSlava Barinov <v.barinov@samsung.com>
Wed, 11 Apr 2018 09:57:23 +0000 (12:57 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 11 Apr 2018 23:48:21 +0000 (08:48 +0900)
commit90980f65d6c667c7418b1cdfb35216b79e94daec
tree4497429b139db705c0a0e32faa0b28e2c96058d8
parent9fbc30c3a6d471a7ba59b100298522d65719c9bf
[ASan] Intercept mcheck and mprobe on Linux

This patch addresses https://github.com/google/sanitizers/issues/804.

Users can use mcheck and mprobe functions to verify heap state so we should
intercept them to avoid breakage of valid code.

Differential Revision: https://reviews.llvm.org/D32589
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302001 91177308-0d34-0410-b5e6-96231b

Change-Id: I310e0e06d0ad4450acf779630acfb71cde9ea1d2
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
gcc/testsuite/gcc.dg/asan/mprobe.c [new file with mode: 0644]
libsanitizer/lsan/lsan_interceptors.cc
libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h