[PATCH] D64072: MSan: handle callbr instructions

Alexander Potapenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 06:13:41 PDT 2019


glider created this revision.
glider added a reviewer: eugenis.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Handling callbr is very similar to handling an inline assembly call:
MSan must checks the instruction's inputs.
callbr doesn't (yet) have outputs, so there's nothing to unpoison,
and conservative assembly handling doesn't apply either.

Fixes PR42479.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64072

Files:
  llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
  llvm/test/Instrumentation/MemorySanitizer/msan_asm_conservative.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64072.207534.patch
Type: text/x-patch
Size: 5371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190702/823c0af6/attachment.bin>


More information about the llvm-commits mailing list