If stack was allocated using regular allocator, it may be tagged
and it will make memToShadow calculate invalid offset.
Also when UAR tag should be the tag of the stack frame pointer.
Paths
| Differential D149228
[HWASAN] Support tagged stack pointer ClosedPublic Authored by vitalybuka on Apr 25 2023, 7:56 PM.
Details Summary If stack was allocated using regular allocator, it may be tagged Also when UAR tag should be the tag of the stack frame pointer.
Diff Detail
Event Timelinevitalybuka added a parent revision: D149221: [NFC][HWASAN] Move getUARTag into the Entry.Apr 26 2023, 1:06 PM This revision is now accepted and ready to land.Apr 26 2023, 2:52 PM This revision was landed with ongoing or failed builds.Apr 26 2023, 7:27 PM Closed by commit rGb5595836bc26: [HWASAN] Support tagged stack pointer (authored by vitalybuka). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions
makecontext/swapcontext
Revision Contents
Diff 517437 llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/test/Instrumentation/HWAddressSanitizer/RISCV/alloca-with-calls.ll
llvm/test/Instrumentation/HWAddressSanitizer/RISCV/alloca.ll
llvm/test/Instrumentation/HWAddressSanitizer/RISCV/exception-lifetime.ll
llvm/test/Instrumentation/HWAddressSanitizer/RISCV/use-after-scope-setjmp.ll
llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-array.ll
llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-with-calls.ll
llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca.ll
llvm/test/Instrumentation/HWAddressSanitizer/alloca-array.ll
llvm/test/Instrumentation/HWAddressSanitizer/alloca-with-calls.ll
llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll
llvm/test/Instrumentation/HWAddressSanitizer/exception-lifetime.ll
llvm/test/Instrumentation/HWAddressSanitizer/kernel-alloca.ll
llvm/test/Instrumentation/HWAddressSanitizer/stack-coloring.ll
llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope-setjmp.ll
llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll
|