Received: by 10.223.185.116 with SMTP id b49csp1426485wrg; Sun, 11 Feb 2018 11:44:11 -0800 (PST) X-Google-Smtp-Source: AH8x224dcw/pabUPZdnjQxobxuCy1ff6jiPC0uVUdlFEstNCrdvAjGKzDteEpNLT04wqkAL22iLT X-Received: by 10.99.116.92 with SMTP id e28mr7700147pgn.227.1518378251139; Sun, 11 Feb 2018 11:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518378251; cv=none; d=google.com; s=arc-20160816; b=m42cXg/gAsCxMpMlrTI0K2luqB2heF+KKaUbQLFENXUpD2dUSb2y32q83hNHrTP0of J54wU8p0LjCFgb2aFFUdbB4y3C1n/B0LH5LmdQKUndjJYcatY16LzSuvrYoPI7wUlvMh nvC3GjDst0peyEJC39aiXONJsn3yGcAoZV/Rgr75+8/td6ATsDFQqxO9PNynBFbjrgbr qxhdXShZvsKkp+JsB2/b4w7pZ4CBpWRtsBGcY2eZF6j5l1s6yRUtjikIyN65p0+4aq79 p/g1iyVFqCgS7LsjIE2uvb9+NFtSjbzrTemJs633f2nT4R2lwuRRAtt8t9jpUN7ln7M1 agKA== 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 :arc-authentication-results; bh=LDa1JNbuG5vW64G7ctRJI7LC1Za01qvR5BhmjCGyfJs=; b=fhAeGwk65x0uvcijLY2ShGz919LBAH5it3XwFmj9HB+9jebokluW74Geu5FJbnpH6a SaU2GSxJZkGnVJ1pV0QT57Pmj1h4f9cubgelU6xzmOw92eUobh8srn5edNCU1/judcRA p6Q8H4lWRz+mL+8RelESeIaCDjnjDTXXQIpFOGXAM8XIFEMFlpqne/LhKEeZOAilqCXj J2Bsg76Cy7G9R+lHTMXjlhlOnDfqwkCNHzYEfxgfYNB8q3YWLXUZ1pJZJYFk/mpjfQzP TS4lo8MZ8ME1q9tGkDJMyiy/akn1vfW33hOHZLtypTRC9Snco1z7uByx5vqJN/GNlnqE F8CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=PWBpQM+S; 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 b14-v6si4601031pll.736.2018.02.11.11.43.57; Sun, 11 Feb 2018 11:44:11 -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=@gmail.com header.s=20161025 header.b=PWBpQM+S; 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 S932127AbeBKTms (ORCPT + 99 others); Sun, 11 Feb 2018 14:42:48 -0500 Received: from mail-it0-f46.google.com ([209.85.214.46]:33176 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753587AbeBKTmp (ORCPT ); Sun, 11 Feb 2018 14:42:45 -0500 Received: by mail-it0-f46.google.com with SMTP id u12so4266026ite.0; Sun, 11 Feb 2018 11:42:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LDa1JNbuG5vW64G7ctRJI7LC1Za01qvR5BhmjCGyfJs=; b=PWBpQM+SfF+gwuQYole0Y59JTD1idVdU65sTw3PcqB9iOgo/Z5AG8a+sYofRZv3ZDg PCm8/sWXDTMgCo8sqfv6a+mDNJyX1pcaai3aQ9znaSUdlTLPWcwv9GXlxoAfUpd+vMJ7 YzYADZgNvXXEb+Q+fp45AfGJhqr7kpGLnGCR68KyAf9Sfm68EHFhCqZ+G0ek2kDBmmFL 9wZzR7x0Qoga8fZLGoqzQGL6M1p+gQfsSJ1XTgWAsJ9NO2YIcXu6knrDy3QKgls8CoOM MDTyBDilzIavQsITWu2MWb3XR6+QEPfPs15cOKRYBaEZeGT+tYRNC5JU+Az5RYAO73Fe QgaA== 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=LDa1JNbuG5vW64G7ctRJI7LC1Za01qvR5BhmjCGyfJs=; b=RfzIiIzUAKkwB/1dwPs+F2iHovbP3VPt2wMpPAED50o2+UD3Cdk5Zy94xOHqU7mfSq mFecz//O3eZc5s9pFrFzxSf6FBsGfcxMQ59QIeXi3KSQKHnPRdPB52AdvN0+5Fc59Ju2 j9XJlxuzp8OWT56NJN76UIMlz00gVql9wCIo2v59JJoUUTK4Q2R2zCFwSjmBaCe7WEF/ m7zwB10wq3TPrGchX0fYPKGN0Y4NZzH6AVQNBQVE+j8oQKJLv6KvHEz+PT/DkjPSlvtC 2qK2ZeMTF49GTrbK62T1pP7OFI2ZnC2UYcOaLeJ/B50gwXyt6oMqqbSHLFCp/Ns5+SQN k7kw== X-Gm-Message-State: APf1xPAtlqmgxH5tNhaKBaAaxLAW0ENp7Ht14V8cMcwIs5+X2IcxxW1V +4U9z/Med8HamwG+IKgpcj8pYrzJC+KssIe14Q8= X-Received: by 10.36.94.199 with SMTP id h190mr2583008itb.21.1518378164811; Sun, 11 Feb 2018 11:42:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Sun, 11 Feb 2018 11:42:44 -0800 (PST) In-Reply-To: References: <20180210054843.z3g7wvcmlccvww3h@huvuddator> <20180210074924.3nhxsza5zdbaahxx@huvuddator> <20180210080556.mycqsjhxbaguwhay@huvuddator> <20180210085519.737ckf4bcl57h4g2@huvuddator> <20180211103432.pf2ot6nd7nbhdhsy@huvuddator> From: Linus Torvalds Date: Sun, 11 Feb 2018 11:42:44 -0800 X-Google-Sender-Auth: ZC4aLCQDT62G5qnYjzPBBkNB_aE Message-ID: Subject: Re: [RFC PATCH 4/7] kconfig: support new special property shell= To: Kees Cook Cc: 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" , Arnd Bergmann 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 10:13 AM, Linus Torvalds wrote: > > That actually sounds like we could just > > (a) make gcc 4.5 be the minimum required version > > (b) actually error out if we find a bad compiler Just to explain why that's different from what we do not (apart from the "error out" thing to actually actively discourage broken compilers): it simplifies things if we can just add a trivial check as part of the build process rather than as part of the configuration. If we don't have to make it part of the configuration, we can use all the normal Kconfig rules and build rules, and then we can add the error check to any number of places where we already do various object file munging. For example, it would be pretty trivial to do the "check that there's the right segment access" as part of link-vmlinux.sh or something. And that would allow us to just use all the regular config infrastructure, including the (hopefully by 4.17) "cc-option" thing at Kconfig time. Linus