[compiler-rt] [compiler-rt] Fix #109834 for Android (PR #109876)

David CARLIER via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 15:44:06 PDT 2024


https://github.com/devnexen created https://github.com/llvm/llvm-project/pull/109876

None

>From 22bcf742aef4c34aa9999986824cba90035ec90c Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen at gmail.com>
Date: Tue, 24 Sep 2024 23:43:16 +0100
Subject: [PATCH] [compiler-rt] Fix #109834 for Android

---
 .../lib/sanitizer_common/sanitizer_common_interceptors.inc      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
index e3a329712ac5a3..b382e7a61950c7 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -1289,9 +1289,9 @@ INTERCEPTOR(int, prctl, int option, unsigned long arg2, unsigned long arg3,
   static const int PR_SCHED_CORE = 62;
   static const int PR_SCHED_CORE_GET = 0;
   static const int PR_GET_PDEATHSIG = 2;
-  static const int PR_SET_SECCOMP = 22;
 
 #  if !SANITIZER_ANDROID
+  static const int PR_SET_SECCOMP = 22;
   static const int SECCOMP_MODE_FILTER = 2;
 #  endif
   if (option == PR_SET_VMA && arg2 == 0UL) {



More information about the llvm-commits mailing list