public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Jeff Law <law@redhat.com>
Cc: Jan Hubicka <hubicka@ucw.cz>, GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: PING: [PATCH] i386: Add TARGET_INDIRECT_BRANCH_REGISTER
Date: Thu, 22 Feb 2018 17:33:00 -0000	[thread overview]
Message-ID: <CAMe9rOrbDF=VjJ5Xv71c5Ag2XRTEbB0YwZnnkB=DepOP3mRYCw@mail.gmail.com> (raw)
In-Reply-To: <c594d313-1401-54d3-42ff-efb64859e22e@redhat.com>

On Thu, Feb 22, 2018 at 9:10 AM, Jeff Law <law@redhat.com> wrote:
> On 02/22/2018 07:38 AM, Jan Hubicka wrote:
>>>>>
>>>>> Hi Jan,
>>>>>
>>>>> https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02233.html
>>>>>
>>>>> Is OK for trunk?
>>>>
>>>> I see that using register makes the problem go away and pushing address to stack
>>>> seemed bit odd anyway. However how does this work on other types of thunk?
>>>
>>> Kernel only uses  -mindirect-branch=thunk-extern.  I am working on a proposal
>>> to use -mindirect-branch=thunk-extern in user space to support CET in a single
>>> binary.  So at the end of the day, only
>>> -mindirect-branch=thunk-extern will be used.
>>
>> OK, so it is about the fact that we do not really want to support all
>> -mindirect-branch options in the future? If we don't want to support the correctly,
>> I wonder why we are including them at all.  Shall we at least output warning/sorry
>> when user tries other thunk type with stack unwinding enabled?
>> (does Kernel use it?)
> A few notes.
>
> 1. It's not even clear at this time that retpolining user space binaries
> makes any sense at all.   SO before doing anything to make this easier
> I'd like to see a justification for why it's really needed.

Hi Jeff,

Which part were commenting? My patch to add TARGET_INDIRECT_BRANCH_REGISTER
or removing -mindirect-branch choices?

> 2. On the other hand, the existing thunk options do make it easier to
> test independent of hte kernel.  ie, I can turn on inline thunks by
> default and test things in user space (ie, do thunks generally work
> properly).

It sounds reasonable.


-- 
H.J.

  reply	other threads:[~2018-02-22 17:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-08 18:05 H.J. Lu
2018-02-22 14:29 ` Jan Hubicka
2018-02-22 14:34   ` H.J. Lu
2018-02-22 14:38     ` Jan Hubicka
2018-02-22 16:34       ` H.J. Lu
2018-02-22 17:10       ` Jeff Law
2018-02-22 17:33         ` H.J. Lu [this message]
2018-02-23 20:53           ` H.J. Lu
2018-02-28  9:39         ` Steve Beattie
2018-02-28 15:58           ` Jeff Law
2018-02-26 15:47       ` Jan Hubicka
2018-02-26 16:22         ` H.J. Lu
2018-02-26 16:54           ` Jan Hubicka
2018-02-27 12:49             ` H.J. Lu
2018-02-27 13:10               ` Jan Hubicka

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='CAMe9rOrbDF=VjJ5Xv71c5Ag2XRTEbB0YwZnnkB=DepOP3mRYCw@mail.gmail.com' \
    --to=hjl.tools@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=law@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).