From: Walfred Tedeschi <walfred.tedeschi@intel.com>
To: Eli Zaretskii <eliz@gnu.org>,
"palves"@redhat.com, brobecker@adacore.com,
gdb-patches@sourceware.org
Subject: Re: FW: [PATCH V4 6/6] Intel MPX bound violation handling.
Date: Thu, 21 Jan 2016 17:34:00 -0000 [thread overview]
Message-ID: <56A11694.4000502@intel.com> (raw)
In-Reply-To: <AC542571535E904D8E8ADAE745D60B194452CD61@IRSMSX104.ger.corp.intel.com>
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Eli Zaretskii
> Sent: Thursday, January 21, 2016 5:23 PM
> To: Tedeschi, Walfred
> Cc: palves@redhat.com; brobecker@adacore.com; gdb-patches@sourceware.org
> Subject: Re: [PATCH V4 6/6] Intel MPX bound violation handling.
>
>> From: Walfred Tedeschi <walfred.tedeschi@intel.com>
>> Cc: gdb-patches@sourceware.org, Walfred Tedeschi
>> <walfred.tedeschi@intel.com>
>> Date: Thu, 21 Jan 2016 15:48:25 +0100
>>
>> --- a/gdb/NEWS
>> +++ b/gdb/NEWS
>> @@ -3,6 +3,21 @@
>>
>> *** Changes since GDB 7.10
>>
>> +* Intel MPX boud violation handler.
>> +
>> + A boundary violations is presented to the inferior as
>> + a segmentation fault having SIGCODE 3. In this case
> ^^ Two spaces between sentences, please.
ok!
>> + GDB displays also the kind of violation (upper or lower),
>> + bounds, poiter value and the memory accessed, besides displaying
> ^^^^^^
> "pointer"
>
>> + the usual signal received and code location report.
>> +
>> + As exemplified below:
>> + Program received signal SIGSEGV, Segmentation fault
>> + upper bound violation - bounds {lbound = 0x603010, ubound = 0x603023}
>> + accessing 0x60302f.
>> + 0x0000000000400d7c in upper (p=0x603010, a=0x603030, b=0x603050,
>> + c=0x603070, d=0x603090, len=7) at i386-mpx-sigsegv.c:68
> May I suggest to say
>
> accessing address 0x60302f.
>
> instead? That would be more clear, I think.
I will change it, yes, it is better.
>> --- a/gdb/doc/gdb.texinfo
>> +++ b/gdb/doc/gdb.texinfo
>> @@ -22267,6 +22267,57 @@ whose bounds are to be changed, @var{lbound}
>> and @var{ubound} are new values for lower and upper bounds respectively.
>> @end table
>>
>> +
>> +A boundary violation is presented to the inferior as a segmentation
>> +fault having SIGCODE 3. @value{GDBN} may display additional
> ^^ Two spaces.
>
>> +information is displayed in this case.
> "...may display additional information is displayed..."? One of the "display" and "displayed" is redundant here, I think.
I will change to "may display additional information "
>> + On @code{STOP} mode
>> +@value{GDBN} will also display the kind of violation: "upper" or
>> +"lower", bounds, pointer value and the address accessed.
>> +On @code{NOSTOP} no additional information will be presented.
> I suggest to say "In STOP mode" and "In NOSTOP mode". "In", not "On".
Right!
>
>> +The usual output of a segfault is:
>> +@smallexample
>> +Program received signal SIGSEGV, Segmentation fault
>> +0x0000000000400d7c in upper (p=0x603010, a=0x603030, b=0x603050,
>> +c=0x603070, d=0x603090, len=7) at i386-mpx-sigsegv.c:68
>> +68 value = *(p + len);
>> +@end smallexample
>> +
>> +In case it is a bound violation it will be presented as:
>> +@smallexample
>> +Program received signal SIGSEGV, Segmentation fault upper bound
>> +violation - bounds @{lbound = 0x603010, ubound = 0x603023@} accessing
>> +0x60302f.
>> +0x0000000000400d7c in upper (p=0x603010, a=0x603030, b=0x603050,
>> +c=0x603070, d=0x603090, len=7) at i386-mpx-sigsegv.c:68
>> +68 value = *(p + len);
>> +@end smallexample
> Why do we need to show here the output when no bound violation happened?
>
> Actually, why not move this description and the example to the "Signals" node? If I were a user who received such a notification, the "Signals" node is where I would look for the explanations first.
I will move it there. About the example I wanted to show where the
change will be placed. If you consider that this is superfluous, no
issue in removing.
Will the snippet bellow be better?
Program received signal SIGSEGV, Segmentation fault upper bound
violation - bounds @{lbound = 0x603010, ubound = 0x603023@} accessing
0x60302f.
> Thanks.
Thanks and regards,
-Fred
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
next prev parent reply other threads:[~2016-01-21 17:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-21 14:48 [PATCH V4 0/6] Intel MPX bound violation support Walfred Tedeschi
2016-01-21 14:48 ` [PATCH V4 3/6] Use linux_get_siginfo_type_with_fields for x86 Walfred Tedeschi
2016-01-21 14:49 ` [PATCH V4 6/6] Intel MPX bound violation handling Walfred Tedeschi
2016-01-21 16:23 ` Eli Zaretskii
[not found] ` <AC542571535E904D8E8ADAE745D60B194452CD61@IRSMSX104.ger.corp.intel.com>
2016-01-21 17:34 ` Walfred Tedeschi [this message]
2016-01-21 17:51 ` FW: " Eli Zaretskii
2016-01-21 18:06 ` Pedro Alves
2016-01-21 18:22 ` Eli Zaretskii
2016-01-22 8:38 ` Walfred Tedeschi
2016-01-21 14:49 ` [PATCH V4 4/6] Add bound related fields to the siginfo structure Walfred Tedeschi
2016-01-21 14:49 ` [PATCH V4 2/6] Prepararion for new siginfo on Linux Walfred Tedeschi
2016-01-21 15:05 ` Pedro Alves
2016-01-21 14:49 ` [PATCH V4 5/6] Adaptation of siginfo fixup for the new bnd fields Walfred Tedeschi
2016-01-21 14:49 ` [PATCH V4 1/6] Merge gdb and gdbserver implementations for siginfo Walfred Tedeschi
2016-01-21 15:05 ` Pedro Alves
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=56A11694.4000502@intel.com \
--to=walfred.tedeschi@intel.com \
--cc=brobecker@adacore.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).