Skip to content

Commit

Permalink
[libc][NFC] Use no_sanitize("all")
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
abrachet committed Sep 2, 2022
1 parent 5b5329b commit e66a1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/src/signal/linux/__restore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit e66a1a5

Please sign in to comment.