mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org, mbenes@suse.cz
Subject: Re: [Linux v5.8-rc4] objtool warnings with gcc-10
Date: Mon, 6 Jul 2020 10:39:00 +0200	[thread overview]
Message-ID: <20200706083900.GC4800@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <CA+icZUVgJFXJ3C_iYK8HrsuhAy3R9U1RDB6mPkOS52JcnU4mDQ@mail.gmail.com>

On Mon, Jul 06, 2020 at 09:09:55AM +0200, Sedat Dilek wrote:
> [ Please CC me I am not subscribed to this mailing-list ]
> 
> Hi Josh and Peter,
> 
> today I switched over from Linux v5.7.y to Linux v5.8-rc4 and built
> the first time with GCC version 10 on Debian/testing AMD64.
> 
> $ cat /proc/version
> Linux version 5.8.0-rc4-1-amd64-gcc10 (sedat.dilek@gmail.com@iniza)
> (gcc-10 (Debian 10.1.0-4) 10.1.0, GNU ld (GNU Binutils for Debian)
> 2.34) #1~bullseye+dileks1 SMP 2020-07-06
> 
> I see these objtool warnings (which are new to me):
> 
> $ grep warning: build-log_5.8.0-rc4-1-amd64-gcc10.txt | sort
> arch/x86/kernel/cpu/mce/core.o: warning: objtool: mce_panic()+0x118: unreachable instruction
> drivers/atm/horizon.o: warning: objtool: interrupt_handler()+0x19f: unreachable instruction
> drivers/message/fusion/mptbase.o: warning: objtool: mpt_Soft_Hard_ResetHandler()+0x33a: unreachable instruction
> drivers/scsi/aic7xxx/aic79xx_core.o: warning: objtool: ahd_intr.part.0()+0x10f: unreachable instruction
> drivers/scsi/pcmcia/aha152x_core.o: warning: objtool: run()+0x4c0: unreachable instruction
> fs/btrfs/backref.o: warning: objtool: btrfs_backref_finish_upper_links()+0x309: unreachable instruction
> fs/btrfs/extent_io.o: warning: objtool: __set_extent_bit.cold()+0xc: unreachable instruction
> fs/btrfs/relocation.o: warning: objtool: update_backref_cache.part.0()+0x1de: unreachable instruction
> kernel/exit.o: warning: objtool: __x64_sys_exit_group()+0x14: unreachable instruction
> net/core/skbuff.o: warning: objtool: skb_push.cold()+0x15: unreachable instruction

That's more CONFIG_LIVEPATCH=y wreckage I expect. The problem is that
GCC -flive-patching= thing wreck the propagation of the noreturn.

This really is a compiler issue and we've not managed a sensible
work-around in objtool.

  reply	other threads:[~2020-07-06  8:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06  7:09 Sedat Dilek
2020-07-06  8:39 ` Peter Zijlstra [this message]
2020-07-06  8:43   ` Sedat Dilek
2020-07-06  9:02     ` Sedat Dilek
2020-07-06 10:37       ` Sedat Dilek
2020-07-06 18:14   ` Sedat Dilek

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=20200706083900.GC4800@hirez.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=jpoimboe@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbenes@suse.cz \
    --cc=sedat.dilek@gmail.com \
    --cc=x86@kernel.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®