From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D185385734F; Tue, 24 May 2022 08:04:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D185385734F From: "luis.machado at arm dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28947] GDB does not remove AArch64 pointer signatures before doing memory accesses Date: Tue, 24 May 2022 08:04:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luis.machado at arm dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: luis.machado at arm dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2022 08:04:15 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28947 --- Comment #3 from Luis Machado --- Thinking a bit more about this, I'm not sure if GDB/debuggers should go out= of their way to remove signature bits from the pointers. Accessing memory using a signed pointer is invalid anyway, and will result = in a fault. Having debuggers remove that information may cause confusion for a developer that is trying to debug a PAC-related crash of some kind, as it w= ill not show the signature part of the pointer. I can imagine a scenario where a pointer wasn't signed properly, but GDB wi= ll strip the signature of that pointer and will show things as if they were correct, when in fact they are not. Does that make sense? Accessing memory using a tagged pointer is valid though, but debuggers need= to be cautious not to pass tagged pointers down to syscalls. GDB does this. --=20 You are receiving this mail because: You are on the CC list for the bug.=