[PATCH] D44479: [MSan] Add an isStore argument to getShadowOriginPtr(). NFC

Alexander Potapenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 14 08:40:52 PDT 2018


glider created this revision.
glider added reviewers: dvyukov, vitalybuka.
Herald added a subscriber: llvm-commits.

This is a step towards the upcoming KMSAN implementation patch.
The is isStore argument is to be used by getShadowOriginPtrKernel(), it is ignored by getShadowOriginPtrUserspace().

Depending on whether a memory access is a load or a store, KMSAN instruments it with different functions, __msan_metadata_ptr_for_load_X() and __msan_metadata_ptr_for_store_X().
Those functions may return different values for a single address, which is necessary in the case the runtime library decides to ignore particular accesses.


Repository:
  rL LLVM

https://reviews.llvm.org/D44479

Files:
  lib/Transforms/Instrumentation/MemorySanitizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44479.138365.patch
Type: text/x-patch
Size: 12963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180314/98ed7ad8/attachment.bin>


More information about the llvm-commits mailing list