Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3285695pxk; Mon, 21 Sep 2020 09:42:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwnIJ+dRKrXzQilbdHNQlLSJsNbCeOlurqbj+p9oNNCkiouAKPs8IxKdYpTKfM9OMcz73g X-Received: by 2002:aa7:da48:: with SMTP id w8mr505822eds.165.1600706525954; Mon, 21 Sep 2020 09:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600706525; cv=none; d=google.com; s=arc-20160816; b=wNBPdU5kqpk/rVLPnA60q6ouFL9FMJ2qdoBVVPe+AYBdS3aVzVAryn0JPUTfdUMW7f vWbHVnZpS+qYywNxVwblbvC3HDkVLgVIvfyEplC2GtC/BSZxRNPfAZ+QhdEVHz9jFcAD XhBAgUajiAM9+aBlmiJNk3edHaj1FOdhxmUs/8V7MYZ5gm/J5ZX7ayTFDVFQa1cZKNEQ /eANURv6B/REagL0GHqzWzY2EP0JLFMvjnaIttmjyFYkckbQOhHYJZAP8GKuTu3OPgQC 8lfCM5nl6QTARs4YGLR0maS/6uRxbCcP+MofIpqxjSUuEuxRESzbMs4qtm7ODtA8JT5B 4c1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VHuYz38CD4ygCeFVPOIvK7h9DTV8cvxz5YJsI9DEJ6k=; b=fsJ8YZppMr58DYzcXqBl2TTFpPyxvKNv6qPIqujalYH2yni9ecyqSn922pRybrmnkw 8EPOqyXar4ZfpVxT+rF9pcg9ScgMTje45faRafTfcy8RhH38R1y0cjOJnh/EtqbOdRFk 6C2khR3Lb9QxEoi5PyKS1eHDFgnkwPM7HzOUzj90NZpa6krnGVIZqoLwbAPBcKGowsW5 2WKHumYQu9gyD6y2/BK6Y9x0c0Wh88mw/IVl52a/cJTxBfpOHjNsUzgjs1EIKSIsb8UP bp8rIFaTeei4Mzpt0I4lewnwXYk/ukY2Ujcz2hBL+FTPc785xclquNSeAKQ618dQGqZj 9KNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XKa6L80p; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si8219337ejt.286.2020.09.21.09.41.41; Mon, 21 Sep 2020 09:42:05 -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=XKa6L80p; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729169AbgIUQi1 (ORCPT + 99 others); Mon, 21 Sep 2020 12:38:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:38998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729134AbgIUQiH (ORCPT ); Mon, 21 Sep 2020 12:38:07 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 560DB2399C; Mon, 21 Sep 2020 16:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706286; bh=NQKH7qV+mvGMmdYVsn+drBg78YJ7yUGWecvlsGgCjo4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XKa6L80p7Ws/avnQ5MXtASZatVI0PNlBDcnY2KNuTHT2qR1I38U6cggJ5glkchjpp LJLIUiYqRncgp8E9obhH5dTt4UvNer3iOhl0dKdpImqRswiBo4haDSn7rO4mQAahBz WCahznH882qsGpMoGt/w8gUpXxQgHr4ARxEi0P/E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Leon Romanovsky , Linus Torvalds , Sasha Levin Subject: [PATCH 4.14 22/94] gcov: Disable gcov build with GCC 10 Date: Mon, 21 Sep 2020 18:27:09 +0200 Message-Id: <20200921162036.572377424@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162035.541285330@linuxfoundation.org> References: <20200921162035.541285330@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky [ Upstream commit cfc905f158eaa099d6258031614d11869e7ef71c ] GCOV built with GCC 10 doesn't initialize n_function variable. This produces different kernel panics as was seen by Colin in Ubuntu and me in FC 32. As a workaround, let's disable GCOV build for broken GCC 10 version. Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1891288 Link: https://lore.kernel.org/lkml/20200827133932.3338519-1-leon@kernel.org Link: https://lore.kernel.org/lkml/CAHk-=whbijeSdSvx-Xcr0DPMj0BiwhJ+uiNnDSVZcr_h_kg7UA@mail.gmail.com/ Cc: Colin Ian King Signed-off-by: Leon Romanovsky Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- kernel/gcov/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index 1276aabaab550..1d78ed19a3512 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -3,6 +3,7 @@ menu "GCOV-based kernel profiling" config GCOV_KERNEL bool "Enable gcov-based kernel profiling" depends on DEBUG_FS + depends on !CC_IS_GCC || GCC_VERSION < 100000 select CONSTRUCTORS if !UML default n ---help--- -- 2.25.1