[all-commits] [llvm/llvm-project] 14cd11: [sanitizer] Add the settings of Read and Write fla...
Lu Weining via All-commits
all-commits at lists.llvm.org
Wed Nov 9 21:35:11 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 14cd113e69935e2de9c4d300c3ab01cf83c5d4db
https://github.com/llvm/llvm-project/commit/14cd113e69935e2de9c4d300c3ab01cf83c5d4db
Author: Youling Tang <tangyouling at loongson.cn>
Date: 2022-11-10 (Thu, 10 Nov 2022)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
Log Message:
-----------
[sanitizer] Add the settings of Read and Write flags in SignalContext for LoongArch
The bit-30 in this `__flags` means the address error is due to memory load, and the
bit-31 means the address error is due to memory store. (see SC_ADDRERR_RD
and SC_ADDRERR_WR in kernel arch/loongarch/include/uapi/asm/sigcontext.h).
`illegal_write_test.cpp` and `illegal_read_test.cpp` have been tested and passed.
Reviewed By: SixWeining, xen0n, XiaodongLoong
Differential Revision: https://reviews.llvm.org/D137231
More information about the All-commits
mailing list