Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1983227pxb; Mon, 13 Sep 2021 09:26:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7/M6a7Tau2iMfNHGF6A20hI4pinB7VSFmgj/3OVR4f0cc8coO4Ag2dWLBQi49396jOnZb X-Received: by 2002:a92:90c:: with SMTP id y12mr8879548ilg.276.1631550396985; Mon, 13 Sep 2021 09:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631550396; cv=none; d=google.com; s=arc-20160816; b=Ie+/Eiv37WSlInMHa2a9QMN15tu31bxO00hxPW2isx9w57/KyuvRMqqzYHv4/ilV97 70/+XYOfTQ/dUbHyM/mb3niKkM4F5h+fyl9ACoWhBwkNBHNnjqeJj2MF5/7NhJDpMdVJ 2KtnHDVaJPHu2ZJ2zzZWxDQM2hR3Lcl4hQGOC0Vam0Cz96lIlMBnHOHCWTAjD9Nh/yls aGp7kAqg9wUohNdxK3AUtQyv9sApGmTs19OAtamr9sJQTcM/GyKDEMkhz5VSD7gHzDJK eb08RrvC3TwAxSl4muxILvRmjetnX5f2im+IgPBODPkHr/UzpZcMZfBLQRsIlBOnV8jq iFig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2/RkgLMSeLMdfX+PInPfTpRLPSRgorj3I7Mh0Kf9swA=; b=MClCZRvGx2UFxIrcSuVtv7hSnhOWurDuwjY58/AWU/EhG8cgerLGeDDXjjI9+LCZWD kNbVhlCoJGH6tnZMvgi8GWfvcQpH7mL7rx2R8sKCqlCkHUV6Ur2ZX6SYMlmrCvETZWZ7 n3vJFby7HMZfYa1VUmFQjwEiFKugEU5xqv+swpNEImpEKid8Mae+xbPigilIBiY8xUaj n97nZMq1tp+FA1Bdudnt2PRVXH8/2JS6tCG9DrTzM+4mmNH5Qj7kc6D+YAhVcg27HnI+ BLla5psRFLBf3v1Hs/bmg4L5LB6J4F4hTC2+TGDiaGR9IodEOo4S0t+ZfSE0a+Rs9JhI qKQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="JmPq/ZgL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v17si6992664ilm.40.2021.09.13.09.26.22; Mon, 13 Sep 2021 09:26:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="JmPq/ZgL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236804AbhIMQZE (ORCPT + 99 others); Mon, 13 Sep 2021 12:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234182AbhIMQZD (ORCPT ); Mon, 13 Sep 2021 12:25:03 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB274C061762 for ; Mon, 13 Sep 2021 09:23:47 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id w19-20020a17090aaf9300b00191e6d10a19so422615pjq.1 for ; Mon, 13 Sep 2021 09:23:47 -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=2/RkgLMSeLMdfX+PInPfTpRLPSRgorj3I7Mh0Kf9swA=; b=JmPq/ZgLDL/FyAXQlzN3Pxt/6RHQBe1O37S+nQ61rkmBypwaNCBZrelrqFzD38G68y ayLL6KmmBeXGuHjWhRWlBTWLjOa1UNjPI0bNb+dmgGb0u2BkXyd5S68cDztZayVOnRQr NZSmhj83kn4QL3EQNMIVRoRdS0yiL5duqY1Q8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2/RkgLMSeLMdfX+PInPfTpRLPSRgorj3I7Mh0Kf9swA=; b=L0CJMat8LIoTxMjwuUIHMmZbK5ct99Nj6k/4ZgHeONZJPuuQ/W1GK8TyR00paLNj5m kH59G3g5SXmlZO0QzgsrZ0tFOJyLt0hx1pHj93dTIqvOCx7+Gd+8gzv0CI99+R113osG c8YwYxdbRhfj/mMUpNgF1JQuvPbfr+I2Tpklt7kMZhgLQn7FPMB+RxifzGx8lVbC3sbt wBtPDj++MKntDUZgCT9SyO1az2mN0c86/t7J7MpJPAO6J9eVxjJ98qqEmBkSqX36MZ8N uY1diGiPBFENXv2KfeH4qgGluRTfPaStUj1XVMpHVaEojC1hBdtqH0MEYe2fM2Axpga2 QPHw== X-Gm-Message-State: AOAM5305FWAVr2s7sUjyZGfWlIoLQRm1VI4W/R7qsC1LFWpGF9LrHj5u OCbq7gsZUQUF8HKE1rsT1LavsA== X-Received: by 2002:a17:90b:f08:: with SMTP id br8mr301973pjb.119.1631550227353; Mon, 13 Sep 2021 09:23:47 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d3sm7597340pjc.49.2021.09.13.09.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 09:23:46 -0700 (PDT) Date: Mon, 13 Sep 2021 09:23:45 -0700 From: Kees Cook To: Nick Desaulniers Cc: Andrew Morton , Linus Torvalds , Rasmus Villemoes , Nathan Chancellor , Masahiro Yamada , Joe Perches , Arnd Bergmann , Stephen Rothwell , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Subject: Re: [PATCH 05/10] riscv: remove Kconfig check for GCC version for ARCH_RV64I Message-ID: <202109130923.E294BFD5C@keescook> References: <20210910234047.1019925-1-ndesaulniers@google.com> <20210910234047.1019925-6-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910234047.1019925-6-ndesaulniers@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 04:40:42PM -0700, Nick Desaulniers wrote: > The minimum supported version of GCC is now 5.1. The check wasn't > correct as written anyways since GCC_VERSION is 0 when CC=clang. > > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Albert Ou > Cc: linux-riscv@lists.infradead.org > Signed-off-by: Nick Desaulniers Yeah, good catch for Clang too. Reviewed-by: Kees Cook -- Kees Cook