[all-commits] [llvm/llvm-project] 061426: [sanitizer] Fix vfork interception on loongarch64
Xi Ruoyao via All-commits
all-commits at lists.llvm.org
Wed Nov 2 20:09:31 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 061426df572552bc839e1a80cb29070d4242a32f
https://github.com/llvm/llvm-project/commit/061426df572552bc839e1a80cb29070d4242a32f
Author: Xi Ruoyao <xry111 at mengyan1223.wang>
Date: 2022-11-03 (Thu, 03 Nov 2022)
Changed paths:
M compiler-rt/lib/asan/asan_interceptors.h
M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_loongarch64.inc.S
M compiler-rt/test/asan/TestCases/Linux/vfork.cpp
Log Message:
-----------
[sanitizer] Fix vfork interception on loongarch64
Fix a brown paper bag error made by me in D129418. I didn't set
ASAN_INTERCEPT_VFORK correctly for loongarch64, but created an all-zero
object for __interception::real_vfork. This caused anything calling
vfork() to die instantly.
Fix this issue by setting ASAN_INTERCEPT_VFORK and remove the bad
all-zero definition. Other ports have an all-zero common definition but
we don't need it at least for now.
And, enable ASAN vfork test for loongarch64 to prevent regression in the
future.
Differential Revision: https://reviews.llvm.org/D137160
More information about the All-commits
mailing list