[libc-commits] [libc] e66a1a5 - [libc][NFC] Use no_sanitize("all")

Alex Brachet via libc-commits libc-commits at lists.llvm.org
Fri Sep 2 12:09:11 PDT 2022


Author: Alex Brachet
Date: 2022-09-02T19:07:39Z
New Revision: e66a1a5a392e709d24b003c6de231c812e1e5898

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

LOG: [libc][NFC] Use no_sanitize("all")

This function cannot have any instrumentation because it's
assembly must match exactly what the debugger is expecting.

Previously it was just a list of what sanitizers we expect
libc would be sanitized with but this is untenable.

Added: 
    

Modified: 
    libc/src/signal/linux/__restore.cpp

Removed: 
    


################################################################################
diff  --git a/libc/src/signal/linux/__restore.cpp b/libc/src/signal/linux/__restore.cpp
index c648ddb4cb150..b76b5b858acc3 100644
--- a/libc/src/signal/linux/__restore.cpp
+++ b/libc/src/signal/linux/__restore.cpp
@@ -16,7 +16,7 @@
 namespace __llvm_libc {
 
 extern "C" void __restore_rt()
-    __attribute__((no_sanitize("thread", "memory", "undefined", "fuzzer"),
+    __attribute__((no_sanitize("all"),
                    hidden));
 
 extern "C" void __restore_rt() { __llvm_libc::syscall(SYS_rt_sigreturn); }


        


More information about the libc-commits mailing list