$OpenBSD: patch-base_allocator_partition_allocator_address_space_randomization_h,v 1.1 2021/05/17 12:11:47 robert Exp $

Index: base/allocator/partition_allocator/address_space_randomization.h
--- base/allocator/partition_allocator/address_space_randomization.h.orig
+++ base/allocator/partition_allocator/address_space_randomization.h
@@ -36,7 +36,7 @@ AslrMask(uintptr_t bits) {
 
 #if defined(ARCH_CPU_64_BITS)
 
-  #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
+  #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) && !defined(OS_BSD)
 
     // We shouldn't allocate system pages at all for sanitizer builds. However,
     // we do, and if random hint addresses interfere with address ranges
