Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Srinath Parvathaneni <Srinath.Parvathaneni@arm.com>
To: Luis <luis.machado.foss@gmail.com>,
	Matthieu Longo <Matthieu.Longo@arm.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: "guinevere@redhat.com" <guinevere@redhat.com>,
	"thiago.bauermann@linaro.org" <thiago.bauermann@linaro.org>,
	Ezra Sitorus <Ezra.Sitorus@arm.com>,
	"simark@simark.ca" <simark@simark.ca>
Subject: Re: [PATCH v3 2/5] [PATCH 2/5] gdb: Improve SIGSEGV diagnostics for POE faults
Date: Thu, 23 Jul 2026 09:03:50 +0000	[thread overview]
Message-ID: <AS8PR08MB1009915869FFF60CBB8DA52679BC02@AS8PR08MB10099.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <d412f848-a817-4179-b4b2-ea2273c19cbe@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2829 bytes --]

>
>>>> +  /* For POE SEGSEGV, show additional information.  */
>>>
>>> Is this really supposed to be POE SEGSEGV or is it a typo?
>>>
>>
>> For now, in my knowledge, AARCH64_SEGV_PKUERR is only used for POE.
>> However, it will also be used soon for another upcoming feature.
>> I would recommend to either simply eliminate the comment, or make it more clear like
>>
>> /* For memory permission faults, e.g. due to a permission overlay
>>     restriction when feature POE is enabled.  */
>>
>> Matthieu
>
>Sorry, I may not have been clear, but I was referring specifically to
>the SEGSEGV. Should it be SIGSEGV instead?

Yes Luis, that's a typo. It should be SIGSEGV instead of SEGSEGV, thanks for
spotting it, I will update in the re-spin.

Regarding the comment itself, while SIGSEGV already implies a memory fault,
AARCH64_SEGV_PKUERR is currently only generated for Permission Overlay
violations. I think something like following would be more accurate description.

/* Additional information for SIGSEGV caused by a permission overlay violation.  */

Regards,
Sri.
________________________________
From: Luis <luis.machado.foss@gmail.com>
Sent: 23 July 2026 00:11
To: Matthieu Longo <Matthieu.Longo@arm.com>; Srinath Parvathaneni <Srinath.Parvathaneni@arm.com>; gdb-patches@sourceware.org <gdb-patches@sourceware.org>
Cc: guinevere@redhat.com <guinevere@redhat.com>; thiago.bauermann@linaro.org <thiago.bauermann@linaro.org>; Ezra Sitorus <Ezra.Sitorus@arm.com>; simark@simark.ca <simark@simark.ca>
Subject: Re: [PATCH v3 2/5] [PATCH 2/5] gdb: Improve SIGSEGV diagnostics for POE faults

On 22/07/2026 10:41, Matthieu Longo wrote:
> On 21/07/2026 21:30, Luis wrote:
>> On 14/07/2026 21:15, srinath.parvathaneni@arm.com wrote:
>>> From: Srinath Parvathaneni <srinath.parvathaneni@arm.com>
>>>
>>> diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
>>> index f11eccc1bc1..b8a02ab9972 100644
>>> --- a/gdb/aarch64-linux-tdep.c
>>> +++ b/gdb/aarch64-linux-tdep.c
>>>    @@ -2734,6 +2741,14 @@ aarch64_linux_report_signal_info (struct gdbarch *gdbarch,
>>>          uiout->field_string ("logical-tag", hex_string (ltag));
>>>        }
>>>        }
>>> +  /* For POE SEGSEGV, show additional information.  */
>>
>> Is this really supposed to be POE SEGSEGV or is it a typo?
>>
>
> For now, in my knowledge, AARCH64_SEGV_PKUERR is only used for POE.
> However, it will also be used soon for another upcoming feature.
> I would recommend to either simply eliminate the comment, or make it more clear like
>
> /* For memory permission faults, e.g. due to a permission overlay
>     restriction when feature POE is enabled.  */
>
> Matthieu

Sorry, I may not have been clear, but I was referring specifically to
the SEGSEGV. Should it be SIGSEGV instead?

[-- Attachment #2: Type: text/html, Size: 9143 bytes --]

  reply	other threads:[~2026-07-23  9:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14 20:15 [PATCH v3 0/5] gdb/aarch64: Add POR_EL0 register support for FEAT_S1POE srinath.parvathaneni
2026-07-14 20:15 ` [PATCH v3 1/5] [PATCH 1/5] " srinath.parvathaneni
2026-07-21 19:53   ` Luis
2026-07-25  6:20     ` Thiago Jung Bauermann
2026-07-25  7:37       ` Luis
2026-07-25 18:44         ` Thiago Jung Bauermann
2026-07-21 20:25   ` Luis
2026-07-23  9:29     ` Srinath Parvathaneni
2026-07-25  6:13       ` Thiago Jung Bauermann
2026-07-25  7:29         ` Luis
2026-07-14 20:15 ` [PATCH v3 2/5] [PATCH 2/5] gdb: Improve SIGSEGV diagnostics for POE faults srinath.parvathaneni
2026-07-21 20:30   ` Luis
2026-07-22  9:41     ` Matthieu Longo
2026-07-22 23:11       ` Luis
2026-07-23  9:03         ` Srinath Parvathaneni [this message]
2026-07-25  7:39           ` Luis
2026-07-14 20:15 ` [PATCH v3 3/5] [PATCH 3/5] gdbserver/aarch64: Add POR_EL0 register support srinath.parvathaneni
2026-07-14 20:15 ` [PATCH v3 4/5] [PATCH 4/5] gdb/aarch64: Add core file support for FEAT_S1POE srinath.parvathaneni
2026-07-21 20:14   ` Luis
2026-07-14 20:15 ` [PATCH v3 5/5] [PATCH 5/5] gdb/testsuite: Add FEAT_S1POE testcases srinath.parvathaneni
2026-07-21 20:38   ` Luis
2026-07-25  6:23   ` Thiago Jung Bauermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AS8PR08MB1009915869FFF60CBB8DA52679BC02@AS8PR08MB10099.eurprd08.prod.outlook.com \
    --to=srinath.parvathaneni@arm.com \
    --cc=Ezra.Sitorus@arm.com \
    --cc=Matthieu.Longo@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=guinevere@redhat.com \
    --cc=luis.machado.foss@gmail.com \
    --cc=simark@simark.ca \
    --cc=thiago.bauermann@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox