[PATCH] D115057: [msan] Don't block SIGSYS in ScopedBlockSignals
Hans Wennborg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 3 11:41:32 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc361ab061253: [msan] Don't block SIGSYS in ScopedBlockSignals (authored by hans).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115057/new/
https://reviews.llvm.org/D115057
Files:
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
Index: compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -162,6 +162,12 @@
// on any thread, setuid call hangs.
// See test/sanitizer_common/TestCases/Linux/setuid.c.
internal_sigdelset(&set, 33);
+# endif
+# if SANITIZER_LINUX
+ // Seccomp-BPF-sandboxed processes rely on SIGSYS to handle trapped syscalls.
+ // If this signal is blocked, such calls cannot be handled and the process may
+ // hang.
+ internal_sigdelset(&set, 31);
# endif
SetSigProcMask(&set, &saved_);
if (copy)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115057.391691.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211203/0b34f018/attachment.bin>
More information about the llvm-commits
mailing list