[all-commits] [llvm/llvm-project] ebd4dc: [asan, test] Make alloca_loop_unpoisoning.cpp robus...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Jan 22 08:56:13 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ebd4dc42630e201c15894b48c3ea890eaa8c3b18
https://github.com/llvm/llvm-project/commit/ebd4dc42630e201c15894b48c3ea890eaa8c3b18
Author: Fangrui Song <i at maskray.me>
Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths:
M compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp
Log Message:
-----------
[asan,test] Make alloca_loop_unpoisoning.cpp robust and fix s390x failure (#78774)
In the test from https://reviews.llvm.org/D7098, `char array[len];` is
32-byte aligned on most targets whether it is instrumented or not
(optimized by StackSafetyAnalysis), due to the the used `*FrameLowering`
being `StackRealignable`.
However, when using `SystemZELFFrameLowering`, an un-instrumented
`char array[len];` is only 8-byte aligned.
Ensure `char array[len];` gets instrumented like what we did to
`alloca_vla_interact.cpp`, to make the test pass on s390x.
More information about the All-commits
mailing list