From: Yao Qi <qiyaoltc@gmail.com>
To: Walfred Tedeschi <walfred.tedeschi@intel.com>
Cc: palves@redhat.com, brobecker@adacore.com, gdb-patches@sourceware.org
Subject: Re: [PATCH V5 2/2] Add mpx-bnd-init-on-return set/show command for inferior calls.
Date: Tue, 26 Apr 2016 15:20:00 -0000 [thread overview]
Message-ID: <86potcflcw.fsf@gmail.com> (raw)
In-Reply-To: <1458310577-20021-1-git-send-email-walfred.tedeschi@intel.com> (Walfred Tedeschi's message of "Fri, 18 Mar 2016 15:16:17 +0100")
Walfred Tedeschi <walfred.tedeschi@intel.com> writes:
> When using the return command, execution of a function is aborted
> and present values are returned from that point. That can cause
> bound violations in the MPX context. To avoid such side-effects,
> a new setting ("mpx-bnd-init-on-return") was added to control
> the initialization of bound register when using the return command.
>
We need to investigate why does "return" cause bound violations. If the
violations are caused by the invalid or garbage return value, that is
expected, and it is a correct behavior to me. If the return value is
out of the bounds of registers settings, the violation is caused. Can we
tweak GDB to adjust the register settings to allow these memory accesses
in the "return"?
--
Yao (齐尧)
next prev parent reply other threads:[~2016-04-26 15:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-18 14:21 Walfred Tedeschi
2016-03-18 15:12 ` Eli Zaretskii
2016-04-26 15:20 ` Yao Qi [this message]
2016-04-26 15:38 ` Walfred Tedeschi
[not found] ` <572749D2.5040106@intel.com>
2016-06-13 15:18 ` Tedeschi, Walfred
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=86potcflcw.fsf@gmail.com \
--to=qiyaoltc@gmail.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=walfred.tedeschi@intel.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