[Lldb-commits] [lldb] [lldb] Fix TestPtrauthBRAADiagnostic.py (PR #196406)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu May 7 12:53:03 PDT 2026
https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/196406
The test does actually detect the pointer authentication issue and should check for that.
>From c3bbc93d9061ae64017ea2dc1ae64b88e7ad5908 Mon Sep 17 00:00:00 2001
From: Alex Langford <alangford at apple.com>
Date: Thu, 7 May 2026 12:51:06 -0700
Subject: [PATCH] [lldb] Fix TestPtrauthBRAADiagnostic.py
The test does actually detect the pointer authentication issue and
should check for that.
---
.../functionalities/ptrauth_diagnostics/BRAA_error/braa.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c b/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c
index c53f4725164e6..c1da569d59bc6 100644
--- a/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c
+++ b/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c
@@ -3,9 +3,7 @@ void foo() {}
int main() {
//% self.filecheck("c", "braa.c")
// CHECK: stop reason = EXC_BAD_ACCESS
- //
- // TODO: We need call site info support for indirect calls to make this work.
- // CHECK-NOT: pointer authentication failure
+ // CHECK-NEXT: pointer authentication failure
asm volatile (
"mov x9, #0xbad \n"
"braa %[target], x9 \n"
@@ -19,6 +17,7 @@ int main() {
// Expected codegen and exception message without ptrauth diagnostics:
// * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2000000100007f9c)
+// Note: Possible pointer authentication failure detected.
// frame #0: 0x0000000100007f9c braa`foo
// braa`foo:
// 0x100007f9c <+0>: ret
More information about the lldb-commits
mailing list