[HWASan] Run LAM tests with -hwasan-generate-tags-with-calls.
The default callback instrumentation in x86 LAM mode uses ASLR bits to randomly choose a tag, and thus has a 1/64 chance of choosing a stack tag of 0, causing stack tests to fail intermittently. By using __hwasan_generate_tag to pick tags, we guarantee non-zero tags and eliminate the test flakiness. aarch64 doesn't seem to have this problem using thread-local addresses to pick tags, so perhaps we can remove this workaround once we implement a similar mechanism for LAM. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D104470
Loading
Please sign in to comment