Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp667750pxk; Wed, 2 Sep 2020 11:33:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVfDQ8XpGeVGZBlilROib9uh7hOm3IqvIujoTHoDxkJpaudcLJvKIlDiX0hjtQ/+WrkkMV X-Received: by 2002:aa7:da10:: with SMTP id r16mr1385613eds.333.1599071605767; Wed, 02 Sep 2020 11:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599071605; cv=none; d=google.com; s=arc-20160816; b=M/Bc8hCNg629dom+DFD0Pp1r34l/YHzbOUS5ijZmH4qtJI7y9bNmU0wNN7yem9qcji 6HxllR8lSwnKDBMa1/w6QZiIoV7PkCjMoK/9FLWo+SnDyLPh19R7G7ByLUpGRXQn1Mlf uuCtbBbh4Wld3Pbk31WwALdRrjOUfeaXD2KOQIJWXfwCIw17vXw3jxaKWv/pAKtdXsfK wBHPKUSMxzTosznfgMrIS1Jz+7sTRLi1tswinhmJt3AwyZ80sxSf6YJ+7mc7kPu245EH gON1xgJ1FUYGKedac2IokUAGR2Fb0q/9RM42NWxO3KQTyhS2YKo1dpl1HcplnERLcZeM 4HXA== 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=SjI10/h9soxxE9QLADRN8Xe4sxms+6qeJekDvJE8sRY=; b=xCJ4mEeIdhGNOmNspucuoztkklunV8RtIwlGuohPnHyTb6jxD09bwtC17z12O+qfYX MVWeMnqw7XrXZwN6xlHswlUI9Pcx1ah0lK1QsLfg84S2Q+tbYxiCNFJdu+rriHcE0P+K gOyqPouXJ3ffvOvfpFn9RWV6AVQKsMSmfI8D5tdYFerdEBS8XVwbMB7c+GN6WxmrPuhk blYPBmSZkRm6XlZAX9OvHcCX0NPMn9RChO9BGQ8EGJbc1IYDIOCGH2vEbu/i7vBgMh7k 4nSZbihfgwdix2J6NUxFHxBa6GPA6szU8XTf8ylvRXvjQftFpv4Ijr6N4qZb3g7/wZcL 6elA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O6WBXSdU; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si83edr.402.2020.09.02.11.33.01; Wed, 02 Sep 2020 11:33:25 -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=@kernel.org header.s=default header.b=O6WBXSdU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728061AbgIBS2K (ORCPT + 99 others); Wed, 2 Sep 2020 14:28:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:41662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbgIBS2J (ORCPT ); Wed, 2 Sep 2020 14:28:09 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C2754207EA; Wed, 2 Sep 2020 18:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599071289; bh=J4PlY6rRpkwbzfD6ImMwfCIe/YcqYI4thsAa35s0dgs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O6WBXSdUwE00qp1j+UJwCwePf9dtUIBDg4Ov4z9CvrWMU/OYDKMlQhbY1cjyNU6H9 hRGONKzsEq6GW6joWkr348vBCA6iHGO290CjvthQziTAncUKXn7EMiU8Gd9PmZ6rsN LR0PeeEi/tScoLRDY7bbyrqh0SM6OqBVRDzvvF90= Date: Wed, 2 Sep 2020 21:28:05 +0300 From: Leon Romanovsky To: Linus Torvalds Cc: Peter Oberparleiter , Linux Kernel Mailing List , Colin Ian King , Andrew Morton Subject: Re: [PATCH -rc 0/4] Protect from GCC garbage input in GCOV Message-ID: <20200902182805.GM59010@unreal> References: <20200902085513.748149-1-leon@kernel.org> <20200902175241.GL59010@unreal> 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, Sep 02, 2020 at 11:24:50AM -0700, Linus Torvalds wrote: > On Wed, Sep 2, 2020 at 10:52 AM Leon Romanovsky wrote: > > > > Are you suggesting something like this? > > > > diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig > > index 3110c77230c7..bc0e355f64aa 100644 > > --- a/kernel/gcov/Kconfig > > +++ b/kernel/gcov/Kconfig > > @@ -3,7 +3,7 @@ menu "GCOV-based kernel profiling" > > > > config GCOV_KERNEL > > bool "Enable gcov-based kernel profiling" > > - depends on DEBUG_FS > > + depends on DEBUG_FS && (GCC_VERSION >= XXX && GCC_VERSION < YYY) > > select CONSTRUCTORS if !UML > > default n > > help > > Yes. Except please don't mix it up with DEBUG_FS. Just add a new > "depends on" line. They are separate issues. Thanks, I'll do and resend. > > Linus