[PATCH] D87739: [WIP] scudo: Add an API for disabling memory initialization per-thread.
Mitch Phillips via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 11:07:53 PDT 2020
hctim added inline comments.
================
Comment at: compiler-rt/lib/scudo/standalone/combined.h:496
if (Options.DeallocTypeMismatch) {
- if (Header.Origin != Origin) {
+ if (Header.OriginOrWasZeroed != Origin) {
// With the exception of memalign'd chunks, that can be still be free'd.
----------------
Isn't this now broken under `dealloc_type_mismatch` and MTE?
================
Comment at: compiler-rt/lib/scudo/standalone/combined.h:554
if (Options.DeallocTypeMismatch) {
- if (UNLIKELY(OldHeader.Origin != Chunk::Origin::Malloc))
+ if (UNLIKELY(OldHeader.OriginOrWasZeroed != Chunk::Origin::Malloc))
reportDeallocTypeMismatch(AllocatorAction::Reallocating, OldPtr,
----------------
same here, broken under dealloc_type_mismatch when memory is zeroed?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87739/new/
https://reviews.llvm.org/D87739
More information about the llvm-commits
mailing list