Skip to content

Conversation

@wrotki
Copy link
Contributor

@wrotki wrotki commented Aug 17, 2025

Poisoning of C++ array redzones is only implemented for x86 CPUs. New arm64 bots are being brought up, where these test fail.

Original C++ arrays shadow poisoning change:

http://reviews.llvm.org/D4774

rdar://158025391

Poisoning of C++ array redzones is only implemented for x86 CPUs. New
arm64 bots are being brought up, where these test fail.

Original C++ arrays shadow poisoning change:

http://reviews.llvm.org/D4774

rdar://158025391
@llvmbot
Copy link
Member

llvmbot commented Aug 17, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Mariusz Borsa (wrotki)

Changes

Poisoning of C++ array redzones is only implemented for x86 CPUs. New arm64 bots are being brought up, where these test fail.

Original C++ arrays shadow poisoning change:

http://reviews.llvm.org/D4774

rdar://158025391


Full diff: https://github.com/llvm/llvm-project/pull/154031.diff

2 Files Affected:

  • (modified) compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp (+3)
  • (modified) compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp (+3)
diff --git a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp
index edbdb4016d86e..fa896128cdb72 100644
--- a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp
@@ -6,6 +6,9 @@
 
 // UNSUPPORTED: ios
 
+// Poisoning C++ array redzones is not implemented on arm
+// XFAIL: target=arm{{.*}}
+
 #include <stdio.h>
 #include <stdlib.h>
 struct C {
diff --git a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp
index 335a56757d296..63b1171df0aef 100644
--- a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp
@@ -5,6 +5,9 @@
 
 // UNSUPPORTED: ios
 
+// Poisoning C++ array redzones is not implemented on arm
+// XFAIL: target=arm{{.*}}
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>

@wrotki wrotki merged commit 0d9346e into llvm:main Aug 18, 2025
16 checks passed
@wrotki wrotki deleted the eng/m_borsa/xfail_new_array_cookie_tests_on_arm branch August 18, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants