Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7106914ybi; Wed, 5 Jun 2019 11:18:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/KXwgk6fw+s7QtdAU1Dvo0RqI0mAfcBK1WLTMbC1+luvaIOF9WM31QhYu1F/aymoP2cHX X-Received: by 2002:a17:90a:22c5:: with SMTP id s63mr4404574pjc.23.1559758728449; Wed, 05 Jun 2019 11:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559758728; cv=none; d=google.com; s=arc-20160816; b=dHLkA9Nl+U3TaoqCvf5zsewBaaGmbfKG4r9mz9lJVi7w9Dx/9z5OXMleEvBWnUOUGU pkIaUxgvkaEQQATVajN+GyRNzZeH3SytiPBt2PT/4hgF4iS3sIFUXRtdx+4LXDVAT/Mo eOudNXoKlexl/sxpFr+v8d4KrHtH/sFdCebqAy8FEb3KOwtmqc8p2t6t+y+ws9zrePp1 axcKQQTeuoUJ6M3ODC1Pi650CGzbAV/D4RswGeYepqSsNY0TJImvnQSghKIEMF3qB1Wa JOgoSGw7DUC9hhQELRIRkagGDlzOYp8uc/TfHJSINw4G8hsWBc+lFLgWYL7mUd6wtAKu pL/Q== 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=yy1+cFmii2s5Isli128YJK+bYVGL0e3pwrahCX2MG48=; b=TXconFCl/WjGRpeQXFxWfGseX52WGoqVCnYVCSqhFCDr+fuKV9mMNhjNUTdNBbJz4t RemCBSeD4573OuMq8tn6WQ1hWPSx1ZHmyRDPgdHeqqWYqgmUJ/XEOX5YTATUFoVLVXTc VRAaIpwe6R5CT+Jk6IY5zKyzJG2RPCG9ka8UPZSInNzlXnaM2BlKFbh2V3sFY2411U6D h/TpZ8M921xUsfk0B3nN9JXXr/XFvQ+Nojy7A3Vg4PMPpb2YUuRD7LtOFN4Ajjz2aY0X eDEtkbXgtHYTT+CnQYz+fyIURO+rpSbZKpoqCtTTO0Jmao6OpB9tpkrWil9J7+mKGOdT m4RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DlN1Tsnb; 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 z19si30246272pfa.260.2019.06.05.11.18.31; Wed, 05 Jun 2019 11:18:48 -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=DlN1Tsnb; 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 S1726613AbfFESQK (ORCPT + 99 others); Wed, 5 Jun 2019 14:16:10 -0400 Received: from mail-pf1-f178.google.com ([209.85.210.178]:35624 "EHLO mail-pf1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbfFESQJ (ORCPT ); Wed, 5 Jun 2019 14:16:09 -0400 Received: by mail-pf1-f178.google.com with SMTP id d126so15323506pfd.2 for ; Wed, 05 Jun 2019 11:16:09 -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=yy1+cFmii2s5Isli128YJK+bYVGL0e3pwrahCX2MG48=; b=DlN1TsnbsswLEz2RIlZoUU7bZzZiNk5nIu/5BXDfQsEC8J95oBMJ3ND4+PV2HOyATr AX30/lSOkXW5Qa76cUMRCpwyYOUfnNJhdgn8heG0L+oSDjw5K2DUIG/52D7Ei5By4cdg aJW2tjhAZYrBHj6xaEuCy2qAH0+lHLNUpXWs8= 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=yy1+cFmii2s5Isli128YJK+bYVGL0e3pwrahCX2MG48=; b=UjkuG/G/tWmvNy4r26dtSzwnPbPVjghHnUGgWBUidnhhZe0pC3+SYVma6UJiXA4iNP qJbClZktnA4R2oz+Hx+84qZD7MLxya7L9WSlUPYNcOgrPr/es5gT0uTn4ZhPJw1yj89H gWRFEzqapw6dsTKWXs5+J7OQvwSihyv0FFBHTofSaPR0Cr6bl+55hMVxEZiDL5XNPpi2 GpDL+WGw0lsuxlVRB/U84AcbdwDjPBjcrc+Q2MRYU+5ILoFOz/H7V1tsoHca3hhlbiKx TfRRnQTn0g9PHufRRH06/G/EP7flV+kgXvyjYaTvC8yjO5YEcoeRA8+DWdxxduUAgDkf bgxg== X-Gm-Message-State: APjAAAW+lNitVzkZfp10Zx1mTs4v1vWcazYcGYB8IURYhpAsy/dVrkNn An8/3P2QveF19edn/i37T3ILTA== X-Received: by 2002:a17:90a:d803:: with SMTP id a3mr46216673pjv.48.1559758568849; Wed, 05 Jun 2019 11:16:08 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id f21sm3575655pjq.2.2019.06.05.11.16.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 11:16:08 -0700 (PDT) Date: Wed, 5 Jun 2019 11:16:06 -0700 From: Kees Cook To: Alec Ari Cc: linux-kernel , x86@kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] x86/build: Move _etext to actual end of .text Message-ID: <201906051114.6DEF834@keescook> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 05, 2019 at 11:08:13AM -0500, Alec Ari wrote: > I'm having this problem too, build is failing: > > Invalid absolute R_X86_64_32S relocation: _etext > > I stayed on the 4.14 branch to help prevent these kind of breakages, > so much for that idea. Gentoo GCC 8.3.0. It seems to be a problem with the Gold linker. Using ld.bfd appears to work. I haven't narrowed down the problem, unfortunately. Greg, given that this change was only for special situations (Clang CFI), can you revert this for the stable trees? -- Kees Cook