Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp652730yba; Thu, 16 May 2019 06:58:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9YBV1rewNVwnWrbmXSjV+0I48Nfn2tyJPyPxmGRTeEAcwzd+wfa2L2FbL8AHRt8/L37H3 X-Received: by 2002:a65:4105:: with SMTP id w5mr50154193pgp.260.1558015108855; Thu, 16 May 2019 06:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558015108; cv=none; d=google.com; s=arc-20160816; b=xCKu8eDHrYKiF/1E/pCnT1wToPaB/NvUxOQNOJ/qU+4f00Ry/FHZA7jfyhnCD1QUpz ZJwU6du+o9w2Y5KFlluIDUlHKyO4yjXw2Ka8CgltE6iafdJ5a+b8nXCQ9hRJcE4d8UrT N5fmxlVJRzfrAiMjjG/SNqY7SniPOLzAUn/WZKw1fbNzi/17NjiJWbgoiB33wFAFAFmp +tCyaW/pIQWlnHZx4pf/NRa8rRGBKccaleA2frsXrbYH5uJO4nQnh9yIFRV7ZY8u7nnI JxEiuIjOl57gpvFPmPEz8AiRuk9bQUmVLklEp7cq4vgO1oFmcbj810r22H+qoyV44Qfq qljA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZlXrYKoipsO2Jt1tajd5sxGvN8OzvfWUkoX4CmKpQMo=; b=ThHVX63hQM1tvBHhFTT11teOSpZaDs81hOAx2GCrfNk//D+5GtyQtYWYEXiUMTuiHR Ux2jOMV9Ic6NMhs/PG/7RR+LXdFS12hIDzep+pb4jAQpdt4i89a4DcpqBQt2cfi96N8B 1V6/PwqD+Lmu1/GRHpl303UDr3kRPcaajDmI96BSRKuou3gx5biNDjwszToKx+rLg8mz JvyyPrdT8GFvPVXNKjMdomoYSv87L8ft07GLAykGl7AJbot85b1HOktOngIfgA6xibMw WtGzh9IjTZzs94rd0pj508pcWIkMGULXeJ6/Sctc4uuDSvZdsyfG8l0SEStgBWD44q+E lSzw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cn10si5355178plb.270.2019.05.16.06.58.13; Thu, 16 May 2019 06:58:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727736AbfEPN4U (ORCPT + 99 others); Thu, 16 May 2019 09:56:20 -0400 Received: from freki.datenkhaos.de ([81.7.17.101]:44322 "EHLO freki.datenkhaos.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbfEPN4T (ORCPT ); Thu, 16 May 2019 09:56:19 -0400 Received: from localhost (localhost [127.0.0.1]) by freki.datenkhaos.de (Postfix) with ESMTP id 15E7C1304DF0; Thu, 16 May 2019 15:56:17 +0200 (CEST) Received: from freki.datenkhaos.de ([127.0.0.1]) by localhost (freki.datenkhaos.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L3mHx5NWz_9W; Thu, 16 May 2019 15:56:15 +0200 (CEST) Received: from probook (geri.datenkhaos.de [81.7.17.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by freki.datenkhaos.de (Postfix) with ESMTPSA; Thu, 16 May 2019 15:56:15 +0200 (CEST) Date: Thu, 16 May 2019 15:56:07 +0200 From: Johannes Hirte To: Kees Cook Cc: Borislav Petkov , Sami Tolvanen , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] x86/build: Move _etext to actual end of .text Message-ID: <20190516135606.GA25602@probook> References: <20190423183827.GA4012@beast> <20190514120416.GA11736@probook> <201905140842.21066115C5@keescook> <20190514161051.GA21695@probook> <201905151151.D4EA0FF7@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201905151151.D4EA0FF7@keescook> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019 Mai 15, Kees Cook wrote: > On Tue, May 14, 2019 at 06:10:55PM +0200, Johannes Hirte wrote: > > On 2019 Mai 14, Kees Cook wrote: > > > On Tue, May 14, 2019 at 02:04:21PM +0200, Johannes Hirte wrote: > > > > This breaks the build on my system: > > > > > > > > RELOCS arch/x86/boot/compressed/vmlinux.relocs > > > > CC arch/x86/boot/compressed/early_serial_console.o > > > > CC arch/x86/boot/compressed/kaslr.o > > > > AS arch/x86/boot/compressed/mem_encrypt.o > > > > CC arch/x86/boot/compressed/kaslr_64.o > > > > Invalid absolute R_X86_64_32S relocation: _etext > > > > make[2]: *** [arch/x86/boot/compressed/Makefile:130: arch/x86/boot/compressed/vmlinux.relocs] Error 1 > > > > make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.relocs' > > > > make[2]: *** Waiting for unfinished jobs.... > > > > make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2 > > > > make: *** [arch/x86/Makefile:283: bzImage] Error 2 > > > > > > Interesting! Can you send along your .config and compiler details? > > > > Tested with gcc-8.3 and gcc-9.1, both the same result. > > [...] > > gcc version 8.3.0 (Gentoo 8.3.0-r1 p1.1) > > Hm, I'm not able to reproduce this with any of the compilers I have > access to. The most recent I have is: > > gcc (Ubuntu 20180425-1ubuntu1) 9.0.0 20180425 (experimental) [trunk revision 259645] > > Various stupid questions: did you wipe the whole bulid tree and start > clean? No I didn't. And this fixed it now. After a distclean I'm unable to reproduce it. So sorry for the noise. -- Regards, Johannes