Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp168718ybi; Tue, 2 Jul 2019 18:24:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ2l+d4oRoCWIw9K9BU99lUFsAH4gYpa8kA8fwANmuvcuoJUzTekvSD+CKrYtnplRLs5a6 X-Received: by 2002:a63:2364:: with SMTP id u36mr24971114pgm.449.1562117096723; Tue, 02 Jul 2019 18:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562117096; cv=none; d=google.com; s=arc-20160816; b=q0gO7sVdwBCptI3vW5/Jj1Vief1gsaj41F05GFU08ERPo1r+n2EWg170o8o7CqkrRF Is15lbAtSN/z45/Sg3SvDn2BWHxDzhsG/nQxSWM3JoYnojpLz6IyfM96KmMGk8LHIHV3 zqDEqaM7+GWLH1Rs55YvLOxWm9b/vHKU5nE/Oopq3yaMMgaytNaBain08rVYt4WU3/Pz s1YQP90vQIfONfX8vFoUWwFuKT6LasfwvAU/9IpxKeb4d3PpawB712d/wU9tWgkZa4g8 8wwfTyRBYSDxbsvQzjp/dZrA2oOA+wwSHypYVx1irxJN+oRHGH2S2pCZtwBei9zVLUgp dsYw== 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=Tjr+kTCBfEIGCCG/hrV8Jjghn6dXfiu1H36R2Sz+qKs=; b=iBgpSWpBHJyNZ6zbmWZmAsh499Q45/IPJBHDMLq1aju5T3dLE+21om6xBIYzKRh/zt ADWWSvT1w9/A50OYn1mStDJaJH6GY7817V+G3wqiYIqEesbgEt9qbTa7+WWggPYdR8+z 4tIZlOfSBOVSoVPXKR4gARKTDBF0g2CurDMg7QeIPmQqw51IlvqYbG6xaFHGMjetGL4i mT2q8lBr2537vmcnX5DnJKlhcgwP23IeXrYrVX1tszhTqMfLaYpf+P1Sa2tX6qlON20J pdLx5uWWSlxqfrUntwkhVBjanYWGVqlJXf3ZXFwaisFRV1oYdL1KzYG9QasWO9zhIIdi p2yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CI3Iq2aA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si382308pfb.162.2019.07.02.18.24.40; Tue, 02 Jul 2019 18:24:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CI3Iq2aA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727420AbfGCBXz (ORCPT + 99 others); Tue, 2 Jul 2019 21:23:55 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:33084 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfGCBXz (ORCPT ); Tue, 2 Jul 2019 21:23:55 -0400 Received: by mail-oi1-f195.google.com with SMTP id u15so671431oiv.0 for ; Tue, 02 Jul 2019 18:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Tjr+kTCBfEIGCCG/hrV8Jjghn6dXfiu1H36R2Sz+qKs=; b=CI3Iq2aAqa6cTLPMphI0VdIANcgViK5iD5Lpd8O4rNHBubwk9KdlDQ9POIrvOviZza WE8pTGwDVFnrE9xAq9cBqRjuxTN8JpzczIec7ftooghgMuZjpGD5rqjeroZHxFl0NfKH unyq+yZB36NObk7atWWgkeW849JAneSR2EQr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Tjr+kTCBfEIGCCG/hrV8Jjghn6dXfiu1H36R2Sz+qKs=; b=ei3lOcwCOUSq0E1WzaAJiKH7DupZHMUJ3EbQ+Iy1gzlmmpWLKQsy0YO3COXMVPwYRk aDuq5yZKMx1hqxi1NCxLOe2HJuU+zwsT97wjwHFgFVFNNftUeYlVh4ZuCpu1+O5UCtFR t7k+S9Mnfmf1PfZQJUo04deH7Xh6w8JQ3CeEC49TIoSlEgcA1H+SaB0PwTKiUTOXUjLc ChLb26OuQvR6L/GdxDK1Qc/3LHxh829IJHvPB8oKCAHK+uJDGjfrQsYCiAHNLnKzDd+6 +61j8YvKbxMnmcU5kdN9vm0favSJaZStUHEdRSWdceen449WvBsYrX01Jgt4DgTpPLly Zm4g== X-Gm-Message-State: APjAAAVpcGQy2ncbHQgKhZWtTZawBZlCk+evdv0b9pqfZCwnrBixyIb0 yJUFaJiycFbaGNXsDK6EZYbTKX3PJnw= X-Received: by 2002:a63:755e:: with SMTP id f30mr24465931pgn.246.1562101453492; Tue, 02 Jul 2019 14:04:13 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id e20sm1431pfh.50.2019.07.02.14.04.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jul 2019 14:04:08 -0700 (PDT) Date: Mon, 1 Jul 2019 14:51:30 -0700 From: Kees Cook To: Ingo Molnar , Thomas Gleixner , Borislav Petkov Cc: linux-kernel@vger.kernel.org, Ross Zwisler , Ross Zwisler , "H. Peter Anvin" , x86@kernel.org, Johannes Hirte , Klaus Kusche , samitolvanen@google.com, Guenter Roeck Subject: Re: [PATCH] Revert "x86/build: Move _etext to actual end of .text" Message-ID: <201907011450.100092F32@keescook> References: <20190701155208.211815-1-zwisler@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701155208.211815-1-zwisler@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 01, 2019 at 09:52:08AM -0600, Ross Zwisler wrote: > This reverts commit 392bef709659abea614abfe53cf228e7a59876a4. > > Per the discussion here: > > https://lkml.org/lkml/2019/6/20/830 > > the above referenced commit breaks kernel compilation with old GCC > toolchains as well as current versions of the Gold linker. Revert it so > we don't regress and lose the ability to compile the kernel with these > tools. > > Signed-off-by: Ross Zwisler Acked-by: Kees Cook -Kees > --- > arch/x86/kernel/vmlinux.lds.S | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S > index 0850b5149345..4d1517022a14 100644 > --- a/arch/x86/kernel/vmlinux.lds.S > +++ b/arch/x86/kernel/vmlinux.lds.S > @@ -141,10 +141,10 @@ SECTIONS > *(.text.__x86.indirect_thunk) > __indirect_thunk_end = .; > #endif > - } :text = 0x9090 > > - /* End of text section */ > - _etext = .; > + /* End of text section */ > + _etext = .; > + } :text = 0x9090 > > NOTES :text :note > > -- > 2.20.1 -- Kees Cook