AAiden Grossman[compiler-rt][HWAsan] Partially revert to fix test
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[sanitizer] Select non-internal frames in ReportErrorSummary (#77406) Summary contains one line and should point to user code instead of internal compiler-rt location. TSAN already does that. | 2 年前 | |
[RISC-V][HWASAN] Adjust lit test support for RISC-V HWASAN feature Reviewed by: vitalybuka Differential Revision: https://reviews.llvm.org/D131344 | 3 年前 | |
[test][hwasan] Reserve vector in test | 2 年前 | |
[hwasan] Increase allocator space for non-android Linux This is max acceptable value with pow of 2 for DefaultSizeClassMap, the same as for ASAN. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D145536 | 3 年前 | |
[compiler-rt][HWAsan] Partially revert to fix test bc27843761417148b5733855da9f791552ed3b42 changed the offset that we use so that the valid runs do not conflict with libc. I adjusted every value that could have conflicted which actually started causing one of the lines that should fail into one that did not. | 8 个月前 | |
Fix more compiler-rt tests after #149015. | 1 年前 | |
[sanitizer] Select non-internal frames in ReportErrorSummary (#77406) Summary contains one line and should point to user code instead of internal compiler-rt location. TSAN already does that. | 2 年前 | |
[compiler-rt][hwasan][test] Tweak check in release-shadow.c (#153181) Since we (Linaro) moved out bots to a new machine, this test has been failing: https://lab.llvm.org/buildbot/#/builders/121/builds/1566 Most of the time, the rss difference is greater than 512 on the first iteration then settles down to 512 for all the rest. `` starting rss 512 shadow pages: 1024 p = 0xe083e0800000 1536 -> 740 diff 796 1252 -> 740 diff 512 1252 -> 740 diff 512 1252 -> 740 diff 512 1252 -> 740 diff 512 1252 -> 740 diff 512 1252 -> 740 diff 512 1252 -> 740 diff 512 1252 -> 740 diff 512 1252 -> 740 diff 512 p = 0xe083e0800000 passed 1 out of 10 release-shadow.c.tmp: /home/tcwg-buildbot/worker/clang-aarch64-lld-2stage/llvm/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c:81: int main(): Assertion success_count > total_count * 0.8' failed. ``` Given that the test was looking for a diff of at least 513, I guess that 512 is ok too. For future reference, the original bot host was running this kernel: Linux 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:51:36 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux And the new host: Linux 6.8.0-64-generic #67-Ubuntu SMP PREEMPT_DYNAMIC Sun Jun 15 20:23:40 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux Though the new host also has more RAM, so the kernel may be less aggresive with memory management. | 11 个月前 | |
[hwasan] Remove untagging of kernel-consumed memory Now that page aliasing for x64 has landed, we don't need to worry about passing tagged pointers to libc, and thus D98875 removed it. Unfortunately, we still test on aarch64 devices that don't have the kernel tagged address ABI (https://reviews.llvm.org/D98875#2649269). All the memory that we pass to the kernel in these tests is from global variables. Instead of having architecture-specific untagging mechanisms for this memory, let's just not tag the globals. Reviewed By: eugenis, morehouse Differential Revision: https://reviews.llvm.org/D101121 | 5 年前 | |
[compiler-rt][hwasan] Add fiber switch for HwASan (#153822) Currently HwASan has no fiber switch interface for coroutines. This PR adds fiber switch interfaces similar to ASan which helps to pass sp check correctly on unwinding. The only difference is HwASan does not need a fake stack since tags can do the same thing (e.g., detect UAR). Interfaces are made identical with ASan's. Also adds unit test which is similar to ASan with minor adjustments: 1. change __asan_handle_no_return to __hwasan_handle_vfork 2. remove huge stack test since __hwasan_handle_vfork has no stack size limitation. 3. use uninstrumented globals to simulate allocation since hwasan do not support tagged pointer while using longjmp The testcase is tested on both x86 with alias mode enabled and aarch64. | 11 个月前 | |
[hwasan] Use ErrorAction::Recover in interceptors (#74000) | 2 年前 | |
[RISC-V][HWASAN] Adjust lit test support for RISC-V HWASAN feature Reviewed by: vitalybuka Differential Revision: https://reviews.llvm.org/D131344 | 3 年前 |