Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1752pxk; Wed, 2 Sep 2020 12:39:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5NVj3S8cA6QGSWLxF2Q2k0RhwqekwSrsmSUy9jvq9UR4cp7lM4XuX2r1tLkXygYxvqMQx X-Received: by 2002:a17:906:4cc4:: with SMTP id q4mr1703671ejt.133.1599075586934; Wed, 02 Sep 2020 12:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599075586; cv=none; d=google.com; s=arc-20160816; b=ujRzItRrfmf0BSzUKAaE04bsuHKTEtWtZKZUjA13p/FCCgkBpprUJJez993LzV2gg1 iwYZUn/VGsV/ojKc1gKk5labS+WvLmUL3OgBk1qd6gJZB5iuQwHifEBL/f2anS1/4JGP 35yCl1v0DBF7YmpdYrgpRL+Ug8FYL6JhB/JueyPlgqxSBVT+Of0tMiYxBEgdC5x3YbT0 fFG1YlAFs2rGQulxjo6niwlup0hpXZZ2rMazJOHVq6N0wGMgw4JNWnw7LNijZ+Ff+Iuo HZAabijxncJH+sXS/cHPNrnV2BdcMptHuTolsTDaFC0haXDbjhQcJ4mgVt+5HOu7+CIK I6nQ== 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=oYKJj3xtzrhGCH2PElDohApzASPGGDeVQXh4/tgssSA=; b=AqEE4gu+9W45ge50OxImIBEUbLeIz7aZZu/c7Q7OYio5kTce3XLtsiTbG21CH/+4bx rbkBak4ZuxnDvuMduikubjfqF72sUGSgXMMl8ZDApbDPXFHVOWJt86KRtMtlqLWb9GFx XfJf++b5W0Lb/5dyio/6JE9ii6Ij0Cxe9Tg1HjtcWyXZ7I1fC2JkT5POCL0R0zzjagmC hLtG0bQfavjzdeNahGPpk47FPZn22tiudOt/9dSmrrTLd/6TU5dwcNA5gqTxzIhu2AYg nfI4qEd3KgKvUBbmJ243KBDs7IsSzCybfYUlbAf1go5i3HQYTZ+2tcis5IPgMNvrLU3A qyNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=exLqUnJQ; 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 v17si325264ejd.324.2020.09.02.12.39.24; Wed, 02 Sep 2020 12:39:46 -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=exLqUnJQ; 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 S1727853AbgIBRwr (ORCPT + 99 others); Wed, 2 Sep 2020 13:52:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:53068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgIBRwp (ORCPT ); Wed, 2 Sep 2020 13:52:45 -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 9354120758; Wed, 2 Sep 2020 17:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599069165; bh=noTD0k8/MFC/yiNgU4rAPB5R6c1yPo1FfMGbVeWC3Uk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=exLqUnJQUTQ+VEdSwsTwYy8ckH5wg5SYZC+MzjW67CXCN9ji3dCW/Y9mSOX/1i78a OS83BcXaA64zRrQlXkAA722IL6n4e0s/iuzCfB8OUI1SnYvcDgIz4yuhZ3+57iaLOm vt0A8VilIY0VMX2BM/6EFTIgPdzh9UfYRHWYSTsE= Date: Wed, 2 Sep 2020 20:52:41 +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: <20200902175241.GL59010@unreal> References: <20200902085513.748149-1-leon@kernel.org> 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 10:42:55AM -0700, Linus Torvalds wrote: > On Wed, Sep 2, 2020 at 1:55 AM Leon Romanovsky wrote: > > > > Bottom line, GCOV is broken on GCC 10.2. > > The patches don't really make sense to me. > > How about we just disable GCOV with the known-broken compiler version > instead? As mentioned in the replies to individual patches, it looks > like the "fixes" are random bandaids that don't _really_ fix anything. Right, as I wrote in RFC "solution is wrong", I knew it, just didn't get any feedback on how to do it correctly. 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 ~ Thanks > > Linus