linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Peter Zijlstra <peterz@infradead.org>
Subject: Re: linux-next: Tree for Apr 3 (objtool)
Date: Wed, 3 Apr 2019 15:53:05 -0500	[thread overview]
Message-ID: <20190403205305.tqqwttjytunzgtub@treble> (raw)
In-Reply-To: <d37e0909-cacc-7c6c-4376-33891fa69f53@infradead.org>

On Wed, Apr 03, 2019 at 08:02:43AM -0700, Randy Dunlap wrote:
> On 4/3/19 1:24 AM, Stephen Rothwell wrote:
> > Hi all,
> > 
> > Changes since 20190402:
> > 
> 
> on x86_64:
> 
> arch/x86/entry/entry_64.o: warning: objtool: .entry.text+0x909: unreachable instruction

Your .o file looks odd.  I can't recreate the issue when I build the
same object.

Did the issue only just now show up?  Can you bisect it?  What version
of binutils are you using?

Here's the disassembly:

------------------
     903:	e8 00 00 00 00       	callq  908 <interrupt_entry+0xc8>
			904: R_X86_64_PC32	trace_hardirqs_off_thunk-0x4
     908:	c3                   	retq   
     909:	eb 75                	jmp    980 <common_interrupt>
     90b:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     912:	00 00 00 00 
     916:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     91d:	00 00 00 00 
     921:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     928:	00 00 00 00 
     92c:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     933:	00 00 00 00 
     937:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     93e:	00 00 00 00 
     942:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     949:	00 00 00 00 
     94d:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     954:	00 00 00 00 
     958:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     95f:	00 00 00 00 
     963:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     96a:	00 00 00 00 
     96e:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
     975:	00 00 00 00 
     979:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)

0000000000000980 <common_interrupt>:
------------------

Where the heck does that "jmp 980" come from?  I don't see it in the
code:

------------------
ENTRY(interrupt_entry)
	....
	TRACE_IRQS_OFF

	ret
END(interrupt_entry)
_ASM_NOKPROBE(interrupt_entry)


/* Interrupt entry/exit. */

	/*
	 * The interrupt stubs push (~vector+0x80) onto the stack and
	 * then jump to common_interrupt.
	 */
	.p2align CONFIG_X86_L1_CACHE_SHIFT
common_interrupt:
------------------

Hopefully gas isn't inserting stray jumps for code alignments...

-- 
Josh

  reply	other threads:[~2019-04-03 20:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-03  8:24 linux-next: Tree for Apr 3 Stephen Rothwell
2019-04-03 15:02 ` linux-next: Tree for Apr 3 (objtool) Randy Dunlap
2019-04-03 20:53   ` Josh Poimboeuf [this message]
2019-04-03 22:29     ` Randy Dunlap
2019-04-04 17:16       ` Josh Poimboeuf
2019-04-04 20:51         ` Randy Dunlap
2019-04-05 20:53           ` Randy Dunlap
2019-04-03 15:20 ` linux-next: Tree for Apr 3 (acpi_dev_get_first_match*) Randy Dunlap

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=20190403205305.tqqwttjytunzgtub@treble \
    --to=jpoimboe@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=rdunlap@infradead.org \
    --cc=sfr@canb.auug.org.au \
    /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).