Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5719171ybl; Tue, 14 Jan 2020 13:51:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzMtjgAmYKuItbzXvfbiwTMaXUnJs4814c9uvERGmkUO2SbdWgIHmpAsgVAD9BMP9THlSSC X-Received: by 2002:aca:5083:: with SMTP id e125mr18780259oib.96.1579038718715; Tue, 14 Jan 2020 13:51:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579038718; cv=none; d=google.com; s=arc-20160816; b=LLS1qF4NrDO2ZsyTBsQb+7YBTapIfsYB+KXgoKkxgUO3jegDgAAS+B8ewO7mn+Gd41 SOTk5WXNeM1XEloH/0J6Fkv2D0KfWn86vgaqen8qGIBZ3RqCLCV8Q8UTcjHFG8jwrTtB F55aI/jmLfIY8/t6YWtU4bnTsyJEuCDHjMzOx7eTtNtBLZ7xGXpxXQ+xr09i8tlNeNty cIbUwC7ZQHXrfrYDoWPJ8D7SWbFSJjECnX4NkyHjI+ouTSXtdza8Vs2eFGaaToh1K1Pi stgCNSMBJhhwt1ZfCnGwQBuxE+FobZlcYvxIWwYuVlydQnhqYDwKQY6XeqpSwdL/6b31 6+Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:dkim-filter; bh=rkeRfPFHTc+5NL7sN3HZXzTblD/s00mMdjqcm9nyKTE=; b=PdeEEU1Un3NQq8DkxOxSlhMQQ5LKjIZRwsMRou2nr3nTqizYfgGuGm9QVz5Gr9vDQA vjTp1Cj2qgHkVGEXylUVTxrI0kHlnuGU83tohDs3kQTn/Y3S/3RypipKONVEeQCiIXUi pmP5+rFkFbeZyTGueeFk92iQygaf7VoYUHPlmJZSlkhFZLFKKkq2iO1Unpe9fVb1vNZu jPPqeG6uZ5WUUlhfU9sLBAAz4zN8feiiur9pZrzhAK4hVrDR5MbmcXMiQ7Bw+7k7qilR BR5KEIHnfudz3ScdSOSn2vDOjP9bOmCrnVHNbTMga482/CKmsAVAXw/BzNiIz2TcM7nu qHaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2019122001 header.b=MhwLj8NJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si9707678otk.86.2020.01.14.13.51.46; Tue, 14 Jan 2020 13:51:58 -0800 (PST) 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=fail header.i=@zytor.com header.s=2019122001 header.b=MhwLj8NJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728791AbgANVuu (ORCPT + 99 others); Tue, 14 Jan 2020 16:50:50 -0500 Received: from terminus.zytor.com ([198.137.202.136]:47809 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbgANVuu (ORCPT ); Tue, 14 Jan 2020 16:50:50 -0500 Received: from [IPv6:2601:646:8600:3281:c828:41c1:36f7:c8af] ([IPv6:2601:646:8600:3281:c828:41c1:36f7:c8af]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 00ELoEPA1898256 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 14 Jan 2020 13:50:17 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 00ELoEPA1898256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019122001; t=1579038620; bh=rkeRfPFHTc+5NL7sN3HZXzTblD/s00mMdjqcm9nyKTE=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=MhwLj8NJBq/4aXiBEyWRAf+M/jxazntx81jl8BrhzHqKRSLAVhAbsw12nppjHcdlp p5Tmr8oJBYG2sx3rZ9AM8tekXY3RQTpjhHZwTkeovdhY4QYZIajmw2Y+Ct7KmQzjhs OdEG0T72VP2hqvrGCvTlg117aERn0MI+ERapr3uzvgQ6DLGzxjZPLKsz6fLsCPBfcF eonoKZvL6QmMwVYewD6pOMj4Z7o/wTahjANZKX0vdwySuBInnmucnJlBdlMSkejB1I uxcjG4Vwasthi+L01CoMwRKO+9RbtZuKoQDsXYYHiuDZuWkhFfAv/+Z1VR3Cx/BjGu evChH3KtVTBDA== Date: Tue, 14 Jan 2020 13:50:05 -0800 User-Agent: K-9 Mail for Android In-Reply-To: <20200114165135.GK31032@zn.tnic> References: <20200113161310.GA191743@rani.riverdale.lan> <20200113195337.604646-1-nivedita@alum.mit.edu> <202001131750.C1B8468@keescook> <20200114165135.GK31032@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v3] x86/vmlinux: Fix vmlinux.lds.S with pre-2.23 binutils To: Borislav Petkov , Kees Cook CC: Arvind Sankar , Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Lendacky , Mauro Rossi , Michael Matz From: hpa@zytor.com Message-ID: <27433E59-971A-4885-B74C-2D6844372FE6@zytor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On January 14, 2020 8:51:35 AM PST, Borislav Petkov wrote: >On Mon, Jan 13, 2020 at 05:53:32PM -0800, Kees Cook wrote: >> NAK: linkers can add things at the end of =2Etext that will go missing >from >> the kernel if _etext isn't _outside_ the =2Etext section, truly beyond >the >> end of the =2Etext section=2E This patch will break Control Flow >Integrity >> checking since the jump tables are at the end of =2Etext=2E > >Err, which linkers are those? Please elaborate=2E > >In any case, after reading the thread, I can't help but favor the idea >of us bumping min binutils version to 2=2E23=2E > >Michael (on Cc) says that the 2=2E21 was kinda broken wrt to the symbols >fun outside of sections, 2=2E22 tried to fix it, see > >fd952815307f ("x86-32, relocs: Whitelist more symbols for ld bug >workaround") > >which Arvind pointed out and 2=2E23 fixed it for real=2E > >Now, 2=2E23 is still very ancient=2E I'm looking at our releases: openSUS= E >12=2E1 has the minimum supported gcc version 4=2E6 by the kernel and >also the minimum binutils version 2=2E21 which we support according to >Documentation/process/changes=2Erst > >Now, openSUSE 12=2E1 is ancient and we ourselves advise people to update >to current distros so I don't think anyone would still run it=2E > >So, considering that upping the binutils version would save us from all >this trouble I say we try it after 5=2E5 releases for a maximum time of a >full 5=2E6 release cycle and see who complains=2E > >Considering how no one triggered this yet until Arvind, I think no one >would complain=2E But I might be wrong=2E > >So what do people think? hpa? I'm all for dumping support for an ancient, known buggy binutils=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E