From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BCC5E3858D1E; Fri, 2 Sep 2022 17:38:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCC5E3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662140289; bh=EuwDIMWaZWUUPXyV/lY25icpabYhp/EFfoLcvndrQl8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QoBMWVzRXCrTfSMh9aMj5JXCG0ywLX3qANRncQpE2tXGDe/tbH0nDbRuvPNLYZx6g CkO0XId2tecYkLhwTY4BuJHSVO9+v6OrGScCJTUY8mHxRmGuVKxVnQUFCTMwXWCIHO ru9W9KZ97UqWt+go4WglTcsEW1A/6iJQzc4lQxMc= From: "luis.machado at arm dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29421] Extend aarch64 pauth xml for gdbstub and kernel mode Date: Fri, 02 Sep 2022 17:38:09 +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: enhancement 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: bug_status 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29421 Luis Machado changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #5 from Luis Machado --- I'm not sure the TTBR0/TTBR1 knowledge would be very useful for GDB. For na= tive Linux programs, GDB just uses the exposed pauth_{d,c}mask registers to remo= ve the signature from LR, for example. In the case of bare metal, I'm considering making GDB understand we have support for Pointer Authentication if it sees a particular set of registers (APIAKEYLO_EL1, APIAKEYHI_EL1, for example), and then conveniently remove t= he address signature so we can do a proper backtrace. The part where functions get marked with [PAC] is done through DWARF, so it= is up to the compiler to generate this. The backtrace I provided in the previous comment is what I get when I imple= ment the suggestion above. Would that work? --=20 You are receiving this mail because: You are on the CC list for the bug.=