[compiler-rt] [compiler-rt][hwasan][test] Temporarily disable hwasan_symbolize_stack_overflow.cpp (PR #228496)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 08:53:13 PDT 2026
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/228496
HWASAN only keeps the lower 20 bits of the frame pointer, so if x plus the access offset falls into the previous or following 1MB, the test fails to realise that the access was done via. x.
This means it fails randomly on the buildbots, depending on ASLR and other factors. See https://github.com/llvm/llvm-project/issues/228477 for details.
>From 56808a248785890aceb03d32b178c65abbebefbe Mon Sep 17 00:00:00 2001
From: David Spickett <david.spickett at arm.com>
Date: Fri, 2 Oct 2026 15:45:03 +0000
Subject: [PATCH] [compiler-rt][hwasan][test] Temporarily disable
hwasan_symbolize_stack_overflow.cpp
HWASAN only keeps the lower 20 bits of the frame pointer, so if x plus the
access offset falls into the previous or following 1MB, the test fails
to realise that the access was done via. x.
This means it fails randomly on the buildbots, depending on ASLR
and other factors.
See https://github.com/llvm/llvm-project/issues/228477 for details.
---
.../test/hwasan/TestCases/hwasan_symbolize_stack_overflow.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_overflow.cpp b/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_overflow.cpp
index 356f1da0818a3f..bf0e7bfda72fd2 100644
--- a/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_overflow.cpp
+++ b/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_overflow.cpp
@@ -9,6 +9,9 @@
// RUN: %env_hwasan_opts=symbolize=0 not %run %t/hwasan_overflow 1000000 2>&1 | hwasan_symbolize --symbols %t --index | FileCheck %s --check-prefixes=TOOFAR
// REQUIRES: aarch64-target-arch
+// This test occasionally fails because it assumes that x+offset will not fall
+// into the previous or following 1MB range: https://github.com/llvm/llvm-project/issues/228477
+// UNSUPPORTED: aarch64-target-arch
#include <stdlib.h>
More information about the llvm-commits
mailing list