From patchwork Tue Sep 15 14:13:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "gregkh@linuxfoundation.org" X-Patchwork-Id: 263811 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DA4AC433E2 for ; Wed, 16 Sep 2020 00:24:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E3B542076B for ; Wed, 16 Sep 2020 00:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600215880; bh=DB22npBu2O2pKFMcZz+E5GS8OgI6vRWAiz5SdllNUYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=J6j1V+3reXQJ9UzL0hjKzFdm2SbRJHsvJ//LnXAtxu1K0GKqtozpIUAzprbPbB8dl WhfCvn/k+Qh6QLHgikAbPUEt5uhKc4FayIQerevJKXWvVhAJMkemIDiaDt6cdqcF/N 7CSo/MLwbl1V15GHisaeg1e3ZUqr7IjufYCzEmJk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726911AbgIPAYe (ORCPT ); Tue, 15 Sep 2020 20:24:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:60436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgIOOTx (ORCPT ); Tue, 15 Sep 2020 10:19:53 -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 EFAF92222A; Tue, 15 Sep 2020 14:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179384; bh=DB22npBu2O2pKFMcZz+E5GS8OgI6vRWAiz5SdllNUYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mg7QqEvQTONpWvXze2xsW7LRPSkNv2q8mG1Q5Q+FAoxAne8AQ5WY1ZtanwxSRu1b/ G41ueP2/u9Gdo9m+wVDYIas9yL9OohifuYH6q0JUwoAhe4KxOxF00ky417auvBYz9g ajsxNHepXXPuAeSF2HDxUEbtJeduOf8bCiiuR0d4= 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.19 39/78] gcov: Disable gcov build with GCC 10 Date: Tue, 15 Sep 2020 16:13:04 +0200 Message-Id: <20200915140635.544588956@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140633.552502750@linuxfoundation.org> References: <20200915140633.552502750@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 1e3823fa799b2..bfb6579a19d07 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---