[compiler-rt] Zero page (PR #137893)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 29 16:35:14 PDT 2025


https://github.com/thetruestblue created https://github.com/llvm/llvm-project/pull/137893

None

>From 644549218b723df97b2a9e059f6ecacba902697e Mon Sep 17 00:00:00 2001
From: thetruestblue <bgaston2 at apple.com>
Date: Tue, 29 Apr 2025 11:29:21 -0700
Subject: [PATCH 1/2] [Test][Darwin] Mark zero_page_pc test as unsupported

This is handled as a SIGKILL and can't be intercepted by ASan's signal handler.

rdar://127512190
---
 compiler-rt/test/asan/TestCases/zero_page_pc.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler-rt/test/asan/TestCases/zero_page_pc.cpp b/compiler-rt/test/asan/TestCases/zero_page_pc.cpp
index 3af4d04a587c2..c893441cf231d 100644
--- a/compiler-rt/test/asan/TestCases/zero_page_pc.cpp
+++ b/compiler-rt/test/asan/TestCases/zero_page_pc.cpp
@@ -1,6 +1,9 @@
 // Check that ASan correctly detects SEGV on the zero page.
 // RUN: %clangxx_asan %s -o %t && not %run %t 2>&1 | FileCheck %s
 
+// Handled as a codesigning violation and exits with SIGKILL not SEGV
+// UNSUPPORTED: arm64e && ios
+
 #if defined(_MSC_VER) && !defined(__CLANG__)
 #  define __has_feature(x) 0
 #endif

>From 1c1c5f6db7c122865e15553440bb329233f19038 Mon Sep 17 00:00:00 2001
From: thetruestblue <bgaston2 at apple.com>
Date: Tue, 29 Apr 2025 16:33:26 -0700
Subject: [PATCH 2/2] [Test][Darwin] Updating where this test is being
 disabled.

Just landed the disabling on arm64e and ios. This actually should be marked UNSUPPORTED on all arm64.
---
 compiler-rt/test/asan/TestCases/zero_page_pc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/test/asan/TestCases/zero_page_pc.cpp b/compiler-rt/test/asan/TestCases/zero_page_pc.cpp
index c893441cf231d..b5ca23e490591 100644
--- a/compiler-rt/test/asan/TestCases/zero_page_pc.cpp
+++ b/compiler-rt/test/asan/TestCases/zero_page_pc.cpp
@@ -2,7 +2,7 @@
 // RUN: %clangxx_asan %s -o %t && not %run %t 2>&1 | FileCheck %s
 
 // Handled as a codesigning violation and exits with SIGKILL not SEGV
-// UNSUPPORTED: arm64e && ios
+// UNSUPPORTED: ios
 
 #if defined(_MSC_VER) && !defined(__CLANG__)
 #  define __has_feature(x) 0



More information about the llvm-commits mailing list