From mboxrd@z Thu Jan 1 00:00:00 1970 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=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 A8B1AC43461 for ; Mon, 7 Sep 2020 16:50:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 668732080A for ; Mon, 7 Sep 2020 16:50:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599497451; bh=DB22npBu2O2pKFMcZz+E5GS8OgI6vRWAiz5SdllNUYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=siwJvPJGbPyVc86Wu0JUvSJ+PJ5Am/JoJtqOiV/fA2CXBUxkA6fJgE6pJk3PFAMpt CGNhw9CiPADFas9rEs4LghymP6kJ4roioGBn+fSRMhAqr4H9/WBKPi+H544b5XWBeI tWbs7o/KoalA0Chjlmmm4twsYaSYgrQ/abUi2QVo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731115AbgIGQuX (ORCPT ); Mon, 7 Sep 2020 12:50:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:48852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730800AbgIGQfA (ORCPT ); Mon, 7 Sep 2020 12:35:00 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5564821D90; Mon, 7 Sep 2020 16:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599496500; bh=DB22npBu2O2pKFMcZz+E5GS8OgI6vRWAiz5SdllNUYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rxUwaNv5TZUfTB3hZe+pfK27HqJvJqz7SlxlSjr7pOQ+rPT+DUak+rLsCj9W1wirv fNJJCD0NV+E5kbleNT6Duo+eEf4Fx5BuS96SceU3vX680yyR62sYGXfsWrZW0nv1y9 mLrW0VwcUBgZBJNVrzvYB4LzsGKqKxpCU/o2C7A8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Leon Romanovsky , Colin Ian King , Linus Torvalds , Sasha Levin Subject: [PATCH AUTOSEL 4.19 26/26] gcov: Disable gcov build with GCC 10 Date: Mon, 7 Sep 2020 12:34:26 -0400 Message-Id: <20200907163426.1281284-26-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200907163426.1281284-1-sashal@kernel.org> References: <20200907163426.1281284-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org 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 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--- -- 2.25.1