[compiler-rt] 05d7929 - [Sanitizers] Disable sysmsg interceptors on Android
Gui Andrade via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 11:33:11 PDT 2020
Author: Gui Andrade
Date: 2020-07-01T18:32:28Z
New Revision: 05d79295df136efd6fd875ead2ba6a0cb50b7997
URL: https://github.com/llvm/llvm-project/commit/05d79295df136efd6fd875ead2ba6a0cb50b7997
DIFF: https://github.com/llvm/llvm-project/commit/05d79295df136efd6fd875ead2ba6a0cb50b7997.diff
LOG: [Sanitizers] Disable sysmsg interceptors on Android
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index 642ef61ac244..fb0dbfb2e9ae 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -270,7 +270,7 @@
#define SANITIZER_INTERCEPT_SENDMSG SI_POSIX
#define SANITIZER_INTERCEPT_RECVMMSG SI_LINUX
#define SANITIZER_INTERCEPT_SENDMMSG SI_LINUX
-#define SANITIZER_INTERCEPT_SYSMSG SI_LINUX
+#define SANITIZER_INTERCEPT_SYSMSG SI_LINUX_NOT_ANDROID
#define SANITIZER_INTERCEPT_GETPEERNAME SI_POSIX
#define SANITIZER_INTERCEPT_IOCTL SI_POSIX
#define SANITIZER_INTERCEPT_INET_ATON SI_POSIX
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
index 931bb7602666..bc7776f2b3d3 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
@@ -1,4 +1,5 @@
// RUN: %clang -O1 %s -o %t && %run %t
+// UNSUPPORTED: android
#include <assert.h>
#include <errno.h>
#include <stdio.h>
More information about the llvm-commits
mailing list