From: Greg KH <gregkh@linuxfoundation.org>
To: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
ak@linux.intel.com, dave.hansen@intel.com, jikos@kernel.org,
keescook@google.com, luto@amacapital.net, peterz@infradead.org,
pjt@google.com, riel@redhat.com, tglx@linutronix.de,
tim.c.chen@linux.intel.com, torvalds@linux-foundation.org,
stable@vger.kernel.org, stable-commits@vger.kernel.org
Subject: Re: Patch "objtool: Allow alternatives to be ignored" has been added to the 4.9-stable tree
Date: Mon, 15 Jan 2018 18:46:42 +0100 [thread overview]
Message-ID: <20180115174642.GA24122@kroah.com> (raw)
In-Reply-To: <20180115170054.6baepkgihtla4nub@treble>
On Mon, Jan 15, 2018 at 11:00:54AM -0600, Josh Poimboeuf wrote:
> On Mon, Jan 15, 2018 at 12:55:11PM +0100, David Woodhouse wrote:
> > On Mon, 2018-01-15 at 10:06 +0100, gregkh@linuxfoundation.org wrote:
> > > This is a note to let you know that I've just added the patch titled
> > >
> > > ����objtool: Allow alternatives to be ignored
> > >
> > > to the 4.9-stable tree which can be found at:
> > > ����http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
> > >
> > > The filename of the patch is:
> > > �����objtool-allow-alternatives-to-be-ignored.patch
> > > and it can be found in the queue-4.9 subdirectory.
> >
> > Hm... they aren't being ignored entirely.
> >
> > arch/x86/crypto/camellia-aesni-avx2-asm_64.o: warning: objtool: .altinstr_replacement+0xf: return instruction outside of a callable function
> >
> > Josh?
>
> This should fix it (to be applied on top):
>
> ----
>
> From: Josh Poimboeuf <jpoimboe@redhat.com>
> Subject: [PATCH] objtool: Fix retpoline support for pre-ORC objtool
>
> Objtool 1.0 (pre-ORC) produces the following warning when it encounters
> a retpoline:
>
> arch/x86/crypto/camellia-aesni-avx2-asm_64.o: warning: objtool: .altinstr_replacement+0xf: return instruction outside of a callable function
>
> That warning is meant to catch GCC bugs and missing ENTRY/ENDPROC
> annotations, neither of which are applicable to alternatives. Silence
> the warning for alternative instructions, just like objtool 2.0 already
> does.
>
> Reported-by: David Woodhouse <dwmw2@infradead.org>
> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
> ---
> tools/objtool/builtin-check.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Wonderful! Thanks so much for this, it works great for me, now queued up.
greg k-h
prev parent reply other threads:[~2018-01-15 17:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-15 9:06 Patch "objtool: Allow alternatives to be ignored" has been added to the 4.9-stable tree gregkh
2018-01-15 11:55 ` David Woodhouse
2018-01-15 17:00 ` Josh Poimboeuf
2018-01-15 17:46 ` Patch "objtool: Fix retpoline support for pre-ORC objtool" " gregkh
2018-01-15 17:46 ` Greg KH [this message]
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=20180115174642.GA24122@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=ak@linux.intel.com \
--cc=dave.hansen@intel.com \
--cc=dwmw2@infradead.org \
--cc=jikos@kernel.org \
--cc=jpoimboe@redhat.com \
--cc=keescook@google.com \
--cc=luto@amacapital.net \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=riel@redhat.com \
--cc=stable-commits@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=tim.c.chen@linux.intel.com \
--cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).