From 54ac8f86fcb7fe4ebf7a77c7d379aad6bf8612f6 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Thu, 15 Apr 2021 02:17:23 -0700 Subject: [PATCH] Automated rollback of commit 2ff96ba0e7ab43e21cf6d7a8fab78d77d1b69680. PiperOrigin-RevId: 368597960 Change-Id: Ifa6c8a57fbd7761fb5e121b589a49ad67333e7cd --- sandboxed_api/sandbox2/policybuilder.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sandboxed_api/sandbox2/policybuilder.cc b/sandboxed_api/sandbox2/policybuilder.cc index 676da05..dbb4056 100644 --- a/sandboxed_api/sandbox2/policybuilder.cc +++ b/sandboxed_api/sandbox2/policybuilder.cc @@ -207,17 +207,6 @@ PolicyBuilder& PolicyBuilder::AllowLlvmSanitizers() { // https://github.com/llvm/llvm-project/blob/62ec4ac90738a5f2d209ed28c822223e58aaaeb7/compiler-rt/lib/sanitizer_common/sanitizer_allocator_secondary.h#L98 AllowMmap(); } - if constexpr (sapi::sanitizers::IsTSan()) { - AllowMmap(); - AllowSyscall(__NR_munmap); - AddPolicyOnSyscall(__NR_mprotect, - { - ARG_32(2), - BPF_STMT(BPF_AND | BPF_ALU | BPF_K, - ~uint32_t{PROT_READ | PROT_WRITE}), - JEQ(0, ALLOW), - }); - } return *this; }