Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1421907pxk; Fri, 4 Sep 2020 09:01:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMf3loEP39v8GMVhZ1FAhg7bYKy8LOOwqfoFUp9m//9qgsXw2mEz3D4dwizH3E1pjH1ty6 X-Received: by 2002:a17:906:1513:: with SMTP id b19mr8335446ejd.537.1599235263610; Fri, 04 Sep 2020 09:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599235263; cv=none; d=google.com; s=arc-20160816; b=fPi/ro99DMO4Mz4Wb75txiexS/X1ZpoAAdPUIyeCn3GZcY33F49WXTav1p1deK0YIR rKugEK2ih7gI3VX07klAcfx5YUuJmzsvxne3qABo4H5BMRCS5cDUVSzeC56Vh2wjUnCN /zd5TwkDdRXkM4N+uLUGhvbnthi9vyXntVCkpM9f/12tfmjUi4kkfsAdhUZZqdKU5AT0 bwi8WFFww8z0zlhSTa90bEu5gbh6/W1PZIbORKZF4qPxvooX+hFZDRzYaF6yuuFFRTbJ JspOSzYVjWAS/r6jLTUOzh5Asq9lvzoWZCZpKn5q+SABedhlCk+i2mfTgto62s3s6cgU KBbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NBORlkPHcQ0ROSAEE97Rt4Lin9+avY6CRoVVHlwkvFE=; b=Vfyw01p3LZzy4ehpRzYGC7FOroeiU3pDJb/P3sjP0VvZ9PneeUcwcVc/hvXsdpRZHF bCvUpTLA0B4TJpiVyvEmR46QHSbK+xYLY8jSxRWnCMLGqj8EuPbKXId7FT/habjUcZMz EE1dvnho6r+pD49oIULFnk7sDIgQGK620uveGWMpAIfvGvkBA9LcNND0vyrTsjNS01QZ pyT8IhAAw6Nx7RQ+EsqPsvN36yE3HvqkkTppNT3JpQrZs2aVprxbcxamI4TaoVXaqvDs FZ1UuDHY+61whuY6fVV9OLzc62Eg+7nhEduka75c4EsJOstqJ5VzMbjP46C7iaJNH3nF OJ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CxiLcu+I; 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 gf25si4415705ejb.428.2020.09.04.09.00.39; Fri, 04 Sep 2020 09:01:03 -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=CxiLcu+I; 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 S1726267AbgIDP6Z (ORCPT + 99 others); Fri, 4 Sep 2020 11:58:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:48000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbgIDP6X (ORCPT ); Fri, 4 Sep 2020 11:58:23 -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 DA2CA20722; Fri, 4 Sep 2020 15:58:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599235103; bh=NAsK1sUFDlG4CiX9f4OB6b0xBhrLDeTgLHvblUMrtaM=; h=From:To:Cc:Subject:Date:From; b=CxiLcu+IavsmiFWc1grAlsJkcTXHw4K6ozpt2vBnh6R4XvrgV2X3QEICE/K0AVkcb d8WTjniGpJmbt4LqzmnCAg0v6srWri1CrBuTKxpJ4jYbvaV0yqF/8kD/inRqf3WqtK B4V36ETOe6xMXSoh8esmgZ2USCWKkz99piSAdOp0= From: Leon Romanovsky To: Linus Torvalds Cc: Leon Romanovsky , Peter Oberparleiter , Linux Kernel Mailing List , Colin Ian King , Andrew Morton Subject: [PATCH -rc v1] gcov: Disable gcov build with GCC 10 Date: Fri, 4 Sep 2020 18:58:08 +0300 Message-Id: <20200904155808.4997-1-leon@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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 GCOV built with GCC 10 doesn't initialize n_function variable. This produces different kernel panics as was seen by Colin in Ubuntu [1] and me in FC 32 [2]. As a workaround, let's disable GCOV build for broken GCC 10 version. [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1891288 [2] https://lore.kernel.org/lkml/20200827133932.3338519-1-leon@kernel.org Cc: Colin Ian King Signed-off-by: Leon Romanovsky --- As was discussed: https://lore.kernel.org/lkml/CAHk-=whbijeSdSvx-Xcr0DPMj0BiwhJ+uiNnDSVZcr_h_kg7UA@mail.gmail.com/ --- kernel/gcov/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index 3110c77230c7..bb4b680e8455 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -4,6 +4,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.26.2