From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: new objtool warnings again...
Date: Fri, 23 Sep 2016 16:14:37 -0500 [thread overview]
Message-ID: <20160923211437.bnp6qqwafvyp5kek@treble> (raw)
In-Reply-To: <CA+55aFxewX-gBuo_=e2cfZ24WiE8X2oHqAdhVJD0LrSQ_AEqyA@mail.gmail.com>
On Fri, Sep 23, 2016 at 01:33:45PM -0700, Linus Torvalds wrote:
> Josh,
>
> the current F24 toolchain causes
>
> kernel/signal.o: warning: objtool: .altinstr_replacement+0x54:
> call without frame pointer save/setup
>
> during a regular allmodconfig build.
>
> Doing an objdump says:
>
> ...
> 54: e8 00 00 00 00 callq 59 <.altinstr_replacement+0x59>
> 55: R_X86_64_PC32 copy_user_generic_string-0x4
> 59: e8 00 00 00 00 callq 5e <.altinstr_replacement+0x5e>
> 5a: R_X86_64_PC32
> copy_user_enhanced_fast_string-0x4
> ...
>
> so it seems to come from the alternative_call_2() in copy_user_generic().
>
> It's somewhere in copy_siginfo_to_user(), so I assume it's just the
>
> if (from->si_code < 0)
> return __copy_to_user(to, from, sizeof(siginfo_t))
> ? -EFAULT : 0;
>
> case. Looking at the code generation, it looks like the frame pointer
> generation in that function has been moved down past this code, so the
> objtool warning seems to be correct, but this indicates that gcc has
> decided that we don't need a frame for that alternative_call_2()
> thing.
>
> So this code is clearly missing the magic to tell gcc that the asm
> needs a frame pointer.
>
> What was that magic again? Mind sending a patch?
Is this with your latest pushed master branch? I have F24, but I don't
see the warning.
In any case, I'll come up with a patch for you to test.
--
Josh
next prev parent reply other threads:[~2016-09-23 21:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 20:33 Linus Torvalds
2016-09-23 21:06 ` Linus Torvalds
2016-09-23 21:16 ` Josh Poimboeuf
2016-09-23 21:19 ` Linus Torvalds
2016-09-26 16:49 ` Arnaldo Carvalho de Melo
2016-09-27 17:58 ` Josh Poimboeuf
2016-09-23 21:14 ` Josh Poimboeuf [this message]
2016-09-23 21:18 ` Linus Torvalds
2016-09-23 21:49 ` [PATCH] x86/alternatives: add stack frame dependency to alternative_call_2() Josh Poimboeuf
2016-09-23 23:23 ` Linus Torvalds
2016-09-24 16:28 ` [tip:x86/asm] x86/alternatives: Add " tip-bot for Josh Poimboeuf
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=20160923211437.bnp6qqwafvyp5kek@treble \
--to=jpoimboe@redhat.com \
--cc=acme@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--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
all inboxes | Powered by JetHome®