Received: by 10.223.185.116 with SMTP id b49csp1489423wrg; Sun, 11 Feb 2018 13:20:51 -0800 (PST) X-Google-Smtp-Source: AH8x2265aKPeSJBs1rPty9mqRVR3890wx3NnWEKs2LN1DoK9WQa4ETrRTcmbmHpteh4YgcZu4DXq X-Received: by 10.99.50.66 with SMTP id y63mr7062417pgy.207.1518384051843; Sun, 11 Feb 2018 13:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518384051; cv=none; d=google.com; s=arc-20160816; b=x9A5qlsvBrGXOd0zyFtnmJVk4jIhNco/7q2hMOulU50nZsxXsmehXUy1tn053WovJB mNeWKgDsY/jbqNxgVa5yQcjOls3Z3LNECQKA+OjwwQHMyj1+7QjNqbtaZ9mbbBboDwEM HJxtfxe9MOxZR+h5XTpGTdns9vJiZbdqFi7IvAKSfMtk1KvAyW29TlCSuzp81GgJleHw EF3dNP7p0PMHUs4TW9m8i8gFKUfuny9HtJR6s/wiFcFIH4mALxZBOwSY1lqffxE3zTLX yhfWq6nk2LdtiCgKYbOWTgnFYhfnUOVmMy5SWpKybu4wrAS6lzu6izangy+kXGRz1CHT yDyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=E4upVd9LOZb4cnqKo7RdEVCrn20gYwmowIX6bhjZVm0=; b=AMxrkRXdS3/XQiMsCHIfynAyvkwYHS8Nhi6428Xym5lB2bK606bPX4UP2/yNxUDnmZ uJgvaB57QoPMqdI+gHmw6Lpujv5re9MUNzdUx76Mr45QSUgKxm+F2428crcP/0G2UsIr /DtDNGOcTZtz+dMJJvfz+YyiW6KH9ugScbXb30OHInvwbP0lEUP9uLwKg3eszxrEvL+m T1ql5Z4mIFtsCTAHOhX16lUtberMK7d6Ysni8+BdNB8NvRnoYKeICSakr3N6BbXv+pQu MUb0HEW1mKzDgrWIZnHeKFuREJfeyEhlOV0Uj1/YZdafLiVAH3b1vcU0Pdqrw/wdKMAr ELXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=pxKxL7yM; dkim=fail header.i=@chromium.org header.s=google header.b=WNHICy79; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a62si2138934pgc.650.2018.02.11.13.20.37; Sun, 11 Feb 2018 13:20:51 -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=@google.com header.s=20161025 header.b=pxKxL7yM; dkim=fail header.i=@chromium.org header.s=google header.b=WNHICy79; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753766AbeBKVT7 (ORCPT + 99 others); Sun, 11 Feb 2018 16:19:59 -0500 Received: from mail-ua0-f194.google.com ([209.85.217.194]:33892 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752882AbeBKVT4 (ORCPT ); Sun, 11 Feb 2018 16:19:56 -0500 Received: by mail-ua0-f194.google.com with SMTP id g5so8349797uac.1 for ; Sun, 11 Feb 2018 13:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=E4upVd9LOZb4cnqKo7RdEVCrn20gYwmowIX6bhjZVm0=; b=pxKxL7yMB+pLbMALglE9Nv0mg7/sys9njI297MzambwPNuYbljB5/btozOE0e1XO4O kMS8ttuaFCpl2hIaX5ciFKNEnZ9mCS+Sryq+r60YzTtUXi+allUlgmNP2oMfVMm+TXUs PuZ2/Lmu2egxfpWK3yVYARVX9u8PVdSYvVHrEHVMGE7rh0P5zKfww/b7TkGSSoC/mLqj 4dZrKZaCOto2JtNNmAS2I3u3SNKDZXTEGdqE7GiWt0/hjfDToJSuvOIvEFVUFAEChGi8 GPdrlLQZeV6nQZZLJT1VHnAnNhW2otyo+MPLQt+eRt+2Fjue2WYK4E8X0Olwg8uB4znt Ma6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=E4upVd9LOZb4cnqKo7RdEVCrn20gYwmowIX6bhjZVm0=; b=WNHICy79qO5U+CRPpag3qHFneuxhrTU+w3wOAoI+9v/AZKICbt12WNGduskZe+rdOz sQevymwpEEQFNQ0ciMZBQoGvB+eK6h3vukLN3fZjliNxRxGvRPlyKJg1YcFjpVXPh8Qk qzVOQNd4vQ5z2LYuV5DJ4Nhdn/etRIRFo/New= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=E4upVd9LOZb4cnqKo7RdEVCrn20gYwmowIX6bhjZVm0=; b=qEbqVrxO6CTP51lxeG9RyLu0mGb3NewuYcoJAF4tswdy5cNbRntlNlGvOmad84iOY7 PMG5feP38btKphLK1O8Q6XGGgosXja6dwr37SwLb2T+VQm3AK9S96MwTjnxCYd/eXFRl F/NizxBENxYOvNcXBxEZvpm/C79jfd6fAt+y753VICHV4qfO3t74ZJNGo5B8G33ilSXF EcEF4c0NVp2sZyisjzmXC8yR1UbXxLiWP57TLmWuun5K81ALVuCMO/2Y/2W6/VnS3Q7X a8Q43U8U6NVK/M8oS259vdaiHgA5v6k/QXEz3ejf5mFOMBXh57rfZO+bybWgJLa8Izko HbpQ== X-Gm-Message-State: APf1xPBU5Gx1eXQ1AVkz4GDQxPtofZEV4mQ2nRtwu7PLwEcnP2oNnRQU oyBfhP8AS3juYv92vqD+xBu/dhCXMiOfuJEx7hhi0A== X-Received: by 10.176.76.43 with SMTP id l43mr9604429uaf.155.1518383995761; Sun, 11 Feb 2018 13:19:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.67.196 with HTTP; Sun, 11 Feb 2018 13:19:54 -0800 (PST) In-Reply-To: References: <20180210054843.z3g7wvcmlccvww3h@huvuddator> <20180210074924.3nhxsza5zdbaahxx@huvuddator> <20180210080556.mycqsjhxbaguwhay@huvuddator> <20180210085519.737ckf4bcl57h4g2@huvuddator> <20180211103432.pf2ot6nd7nbhdhsy@huvuddator> From: Kees Cook Date: Sun, 11 Feb 2018 13:19:54 -0800 X-Google-Sender-Auth: -s67sCmW7Lbvwwe0SMG07mVIKLA Message-ID: Subject: Re: [RFC PATCH 4/7] kconfig: support new special property shell= To: Arnd Bergmann Cc: Linus Torvalds , Ulf Magnusson , Masahiro Yamada , Linux Kbuild mailing list , Greg Kroah-Hartman , Andrew Morton , Nicolas Pitre , "Luis R . Rodriguez" , Randy Dunlap , Sam Ravnborg , Michal Marek , Martin Schwidefsky , Pavel Machek , linux-s390 , Jiri Kosina , Linux Kernel Mailing List , Tejun Heo , Ingo Molnar , "Van De Ven, Arjan" , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 11, 2018 at 1:10 PM, Arnd Bergmann wrote: > On Sun, Feb 11, 2018 at 9:06 PM, Linus Torvalds > wrote: >> On Sun, Feb 11, 2018 at 11:53 AM, Linus Torvalds >> wrote: >>> >>> Well, it's still not a very *big* bump. With modern distros being at >>> 7.3, and people testing pre-releases of gcc-8, something like gcc-4.5 >>> is still pretty darn ancient. >> >> ... it's worth noting that our _documentation_ may claim that gcc-3.2 >> is the minimum supported version, but Arnd pointed out that a few >> months ago that apparently nothing older than 4.1 has actually worked >> for a longish while, and gcc-4.3 was needed on several architectures. >> >> So the _real_ jump in required gcc version would be from 4.1 (4.3 in >> many cases) to 4.5, not from our documented "3.2 minimum". >> >> Arnd claimed that some architectures needed even newer-than-4.3, but I >> assume that's limited to things like RISC-V that simply don't have old >> gcc support at all. > > Right. Also architecture specific features may need something more recent, > and in some cases like the 'initializer for anonymous union needs extra > curly braces', a trivial change would make it work, but a lot of architectures > have obviously never been built with toolchains old enough to actually > run into those cases. > > Geert is the only person I know that actively uses gcc-4.1, and he actually > sent some patches that seem to get additional architectures to build on > that version, when they were previously on gcc-4.3+. > > gcc-4.3 in turn is used by default on SLES11, which is still in support, > and I've even worked with someone who used that compiler to build > new kernels, since that was what happened to be installed on his > shared build server. In this case, having gcc-4.3 actively refused to > force him to use a new compiler would have saved us some > debugging trouble. > > In my tests last year, I identified gcc-4.6 as a nice minimum level, IIRC > gcc-4.5 was unable to build some of the newer ARM targets. For reference, the original discussion started here: https://lkml.org/lkml/2016/12/16/174 I thread-necromancied it here: https://lkml.org/lkml/2017/4/16/276 Modern analysis of compilers vs versions here: https://lkml.org/lkml/2017/4/24/481 and seeming conclusion was here: https://lkml.org/lkml/2017/4/25/66 Quoted: >> - To keep it simple, we update the README.rst to say that a minimum >> gcc-4.3 is required, while recommending gcc-4.9 for all architectures >> - Support for gcc-4.0 and earlier gets removed from linux/compiler.h, >> and instead we add a summary of what I found, explaining that >> gcc-4.1 has active users on a few architectures. >> - We make the Makefile show a warning once during compilation for >> gcc earlier than 4.3. But yes, if Linus wants 4.5 over 4.3, I would agree with Arnd: let's take it to 4.6 instead. -Kees -- Kees Cook Pixel Security