| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[hwasan] Add __hwasan_add_frame_record to the hwasan interface Hwasan includes instructions in the prologue that mix the PC and SP and store it into the stack ring buffer stored at __hwasan_tls. This is a thread_local global exposed from the hwasan runtime. However, if TLS-mechanisms or the hwasan runtime haven't been setup yet, it will be invalid to access __hwasan_tls. This is the case for Fuchsia where we instrument libc, so some functions that are instrumented but can run before hwasan initialization will incorrectly access this global. Additionally, libc cannot have any TLS variables, so we cannot weakly define __hwasan_tls until the runtime is loaded. A way we can work around this is by moving the instructions into a hwasan function that does the store into the ring buffer and creating a weak definition of that function locally in libc. This way __hwasan_tls will not actually be referenced. This is not our long-term solution, but this will allow us to roll out hwasan in the meantime. This patch includes: - A new llvm flag for choosing to emit a libcall rather than instructions in the prologue (off by default) - The libcall for storing into the ringbuffer (__hwasan_add_frame_record) Differential Revision: https://reviews.llvm.org/D128387 | 3 年前 | |
[compiler-rt] Fix lld dependency for sanitizers TARGET lld is always false there. | 4 年前 | |
[HWASan] Remove -Wa,-mrelax-relocations=no flag. We no longer need it after https://reviews.llvm.org/D113220. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D113221 | 4 年前 | |
[HWASan] Add aliasing flag and enable HWASan to use it. -fsanitize-hwaddress-experimental-aliasing is intended to distinguish aliasing mode from LAM mode on x86_64. check-hwasan is configured to use aliasing mode while check-hwasan-lam is configured to use LAM mode. The current patch doesn't actually do anything differently in the two modes. A subsequent patch will actually build the separate runtimes and use them in each mode. Currently LAM mode tests must be run in an emulator that has LAM support. To ensure LAM mode isn't broken by future patches, I will next set up a QEMU buildbot to run the HWASan tests in LAM. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D102288 | 5 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 5 年前 |