[ASan] Intercept mcheck and mprobe on Linux 67/175667/3 accepted/tizen/base/20180413.181204 accepted/tizen/base/20180420.170848 submit/tizen_base/20180412.024656 submit/tizen_base/20180417.073401
authorSlava Barinov <v.barinov@samsung.com>
Wed, 11 Apr 2018 09:57:23 +0000 (12:57 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 11 Apr 2018 12:03:38 +0000 (15:03 +0300)
commitf4955bb607f6b1b73f7957e83388375064737359
treec55f1fbee821f862208a8d81f4890a6069c3c0e7
parentf5000d69fa0211b873c58f5902853032da22d1b6
[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