Skip to content

Commit 307c1c4

Browse files
committed
Always mprotect the secondary
1 parent 74d9a76 commit 307c1c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/scudo/standalone/secondary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ template <typename Config> class MapAllocatorCache {
141141
Entry.BlockBegin = reinterpret_cast<uptr>(H + 1);
142142
Entry.Data = H->Data;
143143
Entry.Time = Time;
144-
if (useMemoryTagging<Config>(Options)) {
144+
if (1) {
145145
if (Interval == 0 && !SCUDO_FUCHSIA) {
146146
// Release the memory and make it inaccessible at the same time by
147147
// creating a new MAP_NOACCESS mapping on top of the existing mapping.
@@ -243,7 +243,7 @@ template <typename Config> class MapAllocatorCache {
243243
*H = reinterpret_cast<LargeBlock::Header *>(
244244
LargeBlock::addHeaderTag<Config>(HeaderPos));
245245
*Zeroed = Entry.Time == 0;
246-
if (useMemoryTagging<Config>(Options))
246+
if (1)
247247
setMemoryPermission(Entry.CommitBase, Entry.CommitSize, 0, &Entry.Data);
248248
uptr NewBlockBegin = reinterpret_cast<uptr>(*H + 1);
249249
if (useMemoryTagging<Config>(Options)) {

0 commit comments

Comments
 (0)