Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4562462ybz; Tue, 28 Apr 2020 13:43:00 -0700 (PDT) X-Google-Smtp-Source: APiQypJNz8fX2Lk/GQQ4aLDO2NGlEM7LWE1Uv1cUDpGZUaHzUwyBCL3rbeccIe0ATsYRxqXFh/y1 X-Received: by 2002:aa7:cc92:: with SMTP id p18mr24201130edt.166.1588106580066; Tue, 28 Apr 2020 13:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588106580; cv=none; d=google.com; s=arc-20160816; b=Z9BezgVJY+P3ZWPPAIcsP+RHPqlIa4BZrsha3bd0kGMrOdav/9jhZm7WvVmES33C8O Z3DVwr+xoW8OdvXWXJHj8khlfokSMhY+CDid1cITfz53BEsnwsXXgqZ+A25XIQ48B+xj 4B8HBVlYmz+8cVDqAac2z9kea71S0QF1/6CLtTqv6u7v19vojGvXVST+mhZhOubQGt+A 3s4XClLkKNt4lSMjSZ/CujOFw3T6KKMOs0lww0EOzqn00Vf9dytxQsaPezcoIf/3Kc5Y hLlDtBbQaYkMYu1RQ2ccOmeJwttuThDjRFGSsUNKwHPHfHZouw/yF0a3Zvox6vuWWhpF Crfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AbPHY1AYpcEsQGK31HfahH54k0ELDBfLbhr3/3je0ok=; b=ygJNWU8bRmzXGr/uGN32Urc9aEhNx2aeH8iydhp8lOVwx7ATs1XEIeP1SgPI1J25mU fwBPneh6unv08bqbxZ7qARul8b6RAq0CZBhH/OucVv+CHt1cd7+9DOSDdxDz6ZHfmdam dw0tkwj0l8r4S2QF/s8gw/91swSN8wzkdEyTxSrgpkmbZiD/4TkvCW7XhHQKJLMWrnsn kGea9GrnVZ4jUMbzuveGRhyR84DTSdXm6jcGy+gnleUK4zlNNMTNGXVIP3iNaU5wP3z3 S+8odgeh89soC5G0rNGIGP7N5VzpspA5tVVUd0Y1kkCP1/e6GD3a2PyqGyGEMFfbCWX7 Bt7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZxryyFHs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si2318069edr.566.2020.04.28.13.42.37; Tue, 28 Apr 2020 13:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZxryyFHs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbgD1UjD (ORCPT + 99 others); Tue, 28 Apr 2020 16:39:03 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:47464 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726291AbgD1UjC (ORCPT ); Tue, 28 Apr 2020 16:39:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588106341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AbPHY1AYpcEsQGK31HfahH54k0ELDBfLbhr3/3je0ok=; b=ZxryyFHsKgeAGkiGQVVB1cZ2ANsrVC4B5MiEIsFtcUpFfOFUMm8+DqVbvAJ5F4KwI7oLLR F3C3hE87mJQeRMJAu/g8c+5vKc44seRxAHOgwtPrT+vuNZXir1DKuPBVN6MpAc/N4cBac+ fEVstAvU1v1fyzVtzkZoBfilFQ/4dzg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-420-fWpzP96SOdKWRtcRNLDKPw-1; Tue, 28 Apr 2020 16:38:59 -0400 X-MC-Unique: fWpzP96SOdKWRtcRNLDKPw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E6E47800685; Tue, 28 Apr 2020 20:38:57 +0000 (UTC) Received: from treble (ovpn-112-209.rdu2.redhat.com [10.10.112.209]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 358365D710; Tue, 28 Apr 2020 20:38:57 +0000 (UTC) Date: Tue, 28 Apr 2020 15:38:55 -0500 From: Josh Poimboeuf To: Arnd Bergmann Cc: Peter Zijlstra , the arch/x86 maintainers , Linux Kernel Mailing List , Kees Cook Subject: Re: Remaining randconfig objtool warnings, linux-next-20200428 Message-ID: <20200428203855.zapf6jhcp6mbft7i@treble> References: <20200428161044.caamvx67t2z4t6vd@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2020 at 10:19:46PM +0200, Arnd Bergmann wrote: > On Tue, Apr 28, 2020 at 6:10 PM Josh Poimboeuf wrote: > > On Tue, Apr 28, 2020 at 04:49:15PM +0200, Arnd Bergmann wrote: > > > ==> build/x86/0xFD7B7323_defconfig/log <== > > > arch/x86/entry/entry_64.o: warning: objtool: .entry.text+0x991: unreachable instruction > > > > This warning looks correct, did you make a change to entry_64.S? > > I bisected my local patches and found that I had a local hack that turned > off CONFIG_RETPOLINE for testing something unrelated. I can reproduce > it on linux-next with this patch: > > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -447,8 +447,7 @@ config GOLDFISH > depends on X86_GOLDFISH > > config RETPOLINE > - bool "Avoid speculative indirect branches in kernel" > - default y > + def_bool n > select STACK_VALIDATION if HAVE_STACK_VALIDATION > help > Compile kernel with the retpoline compiler options to guard against Thanks, that worked. This one makes no sense to me. It looks like the assembler is inserting a jump as part of the alignment padding??? WTH. 0000000000000980 : 980: 48 83 04 24 80 addq $0xffffffffffffff80,(%rsp) 985: e8 00 00 00 00 callq 98a 986: R_X86_64_PLT32 interrupt_entry-0x4 98a: e8 00 00 00 00 callq 98f 98b: R_X86_64_PLT32 smp_spurious_interrupt-0x4 98f: eb 7e jmp a0f 991: eb 6d jmp a00 993: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 99a: 00 00 00 00 99e: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9a5: 00 00 00 00 9a9: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9b0: 00 00 00 00 9b4: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9bb: 00 00 00 00 9bf: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9c6: 00 00 00 00 9ca: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9d1: 00 00 00 00 9d5: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9dc: 00 00 00 00 9e0: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9e7: 00 00 00 00 9eb: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 9f2: 00 00 00 00 9f6: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 9fd: 00 00 00 0000000000000a00 : a00: 48 83 04 24 80 addq $0xffffffffffffff80,(%rsp) -- Josh