[PATCH] D105201: [hwasan] Detect use after scope within function.

Florian Mayer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 12 03:18:03 PDT 2021


fmayer created this revision.
Herald added a subscriber: hiraditya.
fmayer updated this revision to Diff 356727.
fmayer added a comment.
fmayer updated this revision to Diff 356743.
fmayer updated this revision to Diff 356802.
fmayer updated this revision to Diff 356808.
fmayer updated this revision to Diff 356816.
fmayer updated this revision to Diff 356984.
fmayer updated this revision to Diff 357550.
fmayer updated this revision to Diff 357882.
fmayer published this revision for review.
fmayer added a reviewer: eugenis.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

Add lots of tests. Fix logic.


fmayer added a comment.

Fix formatting.


fmayer added a comment.

Fix failing test.


fmayer added a comment.

Fix  formatting.


fmayer added a comment.

Formatting.


fmayer added a comment.

Check that use after scope is off by default.


fmayer added a comment.

Rebase.


fmayer added a comment.

Rebase.


fmayer added a comment.

I built Android with this (+ the stack safety change), and after fixing a bug I found it booted and works fine.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105201

Files:
  compiler-rt/test/hwasan/TestCases/stack-uas.c
  compiler-rt/test/hwasan/TestCases/use-after-scope-capture.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-conversion.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-dtor-order.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-goto.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-if.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-inlined.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-loop-bug.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-loop-removed.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-loop.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-nobug.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-temp.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-temp2.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp
  compiler-rt/test/hwasan/TestCases/use-after-scope.cpp
  llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
  llvm/lib/Target/AArch64/AArch64StackTagging.cpp
  llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105201.357882.patch
Type: text/x-patch
Size: 32728 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210712/0866fdc8/attachment.bin>


More information about the llvm-commits mailing list