[all-commits] [llvm/llvm-project] 4fa989: Fix TSAN signal interceptor out-of-bound access
Shu-Chun Weng via All-commits
all-commits at lists.llvm.org
Thu Jul 22 12:38:34 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4fa989c7b23c5d518fb381b4a292a00985cb8eec
https://github.com/llvm/llvm-project/commit/4fa989c7b23c5d518fb381b4a292a00985cb8eec
Author: Shu-Chun Weng <scw at google.com>
Date: 2021-07-22 (Thu, 22 Jul 2021)
Changed paths:
M compiler-rt/lib/msan/msan_interceptors.cpp
M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
A compiler-rt/test/sanitizer_common/TestCases/Posix/signal.cpp
Log Message:
-----------
Fix TSAN signal interceptor out-of-bound access
signal(2) and sigaction(2) have defined behaviors for invalid signal number
(EINVAL) and some programs rely on it.
The added test case also reveals that MSAN is too strict in this regard.
Test case passed on x86_64 Linux and AArch64 Linux.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D106468
More information about the All-commits
mailing list