[PATCH] D87739: [WIP] scudo: Add an API for disabling memory initialization per-thread.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 20:59:35 PDT 2020
pcc created this revision.
pcc added reviewers: eugenis, hctim, cryptoad.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
pcc requested review of this revision.
Here "memory initialization" refers to zero- or pattern-init on
non-MTE hardware, or (where possible to avoid) memory tagging on MTE
hardware. With shared TSD the per-thread memory initialization state
is stored in bit 0 of the TLS slot, similar to PointerIntPair in LLVM.
TODO:
- Write tests.
- Find and fix a bug involving free/calloc with MTE, where sometimes the memory returned is not zeroed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87739
Files:
compiler-rt/lib/scudo/standalone/chunk.h
compiler-rt/lib/scudo/standalone/combined.h
compiler-rt/lib/scudo/standalone/common.h
compiler-rt/lib/scudo/standalone/include/scudo/interface.h
compiler-rt/lib/scudo/standalone/tests/chunk_test.cpp
compiler-rt/lib/scudo/standalone/tsd_exclusive.h
compiler-rt/lib/scudo/standalone/tsd_shared.h
compiler-rt/lib/scudo/standalone/wrappers_c.inc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87739.292083.patch
Type: text/x-patch
Size: 11526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200916/6044c19c/attachment-0001.bin>
More information about the llvm-commits
mailing list