[compiler-rt] 99ab3d9 - [sanitizer] correct prctl scope

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 10:50:19 PDT 2023


Author: lizhiguang
Date: 2023-04-12T10:50:04-07:00
New Revision: 99ab3d9861bccdd14b08968fc2bb4f3f766cb382

URL: https://github.com/llvm/llvm-project/commit/99ab3d9861bccdd14b08968fc2bb4f3f766cb382
DIFF: https://github.com/llvm/llvm-project/commit/99ab3d9861bccdd14b08968fc2bb4f3f766cb382.diff

LOG: [sanitizer] correct prctl scope

prctl scope is wrong, i think this is typo, we should use:
REAL(prctl)(args...)

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D147760

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
index 51703a34f0e9b..3bd73cf87483e 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -1350,7 +1350,7 @@ INTERCEPTOR(int, prctl, int option, unsigned long arg2, unsigned long arg3,
     char *name = (char *)arg5;
     COMMON_INTERCEPTOR_READ_RANGE(ctx, name, internal_strlen(name) + 1);
   }
-  int res = REAL(prctl(option, arg2, arg3, arg4, arg5));
+  int res = REAL(prctl)(option, arg2, arg3, arg4, arg5);
   if (option == PR_SET_NAME) {
     char buff[16];
     internal_strncpy(buff, (char *)arg2, 15);


        


More information about the llvm-commits mailing list