Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp4045286ybh; Tue, 17 Mar 2020 11:11:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vubpSvkKXoyIG5a4F9gRo8SDpyDezGP3mfVU82il62TY43qIW/FWRWpLFOJ5ILg534/QFmY X-Received: by 2002:a9d:336:: with SMTP id 51mr461496otv.202.1584468660036; Tue, 17 Mar 2020 11:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584468660; cv=none; d=google.com; s=arc-20160816; b=tjfrdnvfsJNFjxgnAyGpWYeqsNlPXc7jKsDKnQDc5e9ZG9xVxI31y1DwTdA428w2pA HOojZ14OLeVzoAXWTb9KsbpmBCfMRBGbUadOHkuH4EYYkT6OtGykTtcJxUdWhqiAj18w dEAkrJjoJ+lSiaFzGJ0ESj9gh2wriOKrslmp5dRu+k0O/YDOm68s39QKGGTcd9lUAC7f KGUwrlFlYsRNyyOjVTyjyi/z2TFGh1LFu3uyohs7jO+3qpYmlUSAq0/OBYUBsX5pWvbM zTk7CpzORRjJIqG7YWHXxWXDUoNv7K3B77rQ57Tl32ttarHnQC8xkDyELYY1FfogBPRT S5lQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=L2kDhHbFItvmW7t9RQXKAd0ix/NpEhhzcRwh5VwsGjE=; b=nwjc4hWGUX5RH0n4RGufOk8YyAqAGAtnG0EegqJfEPSnetci+iFlK1W85oH233Qfcd eZLRlQ4xZg1AOTtoyfGE2F/dOaJfYl9Y9j0MHz3h2uPJjMo3cwtZMEgMAB62cBoDULrE qdQzC8UMIh0tSB2cmsj6Gamw0bx9ZZnZveGGOKhyE1ppiZ5zVB0QDwdCmjOKZYqLkWV8 ojaBWmX89MPHYTSGOetLO8E0hR8leCPb24QusPZY2IaRs1OpH92rvwD27emsn2MF5NZd 0zTemOdyV3yEQMeoV8UEeKOBYOn3TwbsO9yKH/SP8Y9NZtTfJDebEtkIqdReEv7Veu/b 72DQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si2348405otk.39.2020.03.17.11.10.47; Tue, 17 Mar 2020 11:11:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbgCQSKZ (ORCPT + 99 others); Tue, 17 Mar 2020 14:10:25 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:42580 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbgCQSKZ (ORCPT ); Tue, 17 Mar 2020 14:10:25 -0400 Received: from sf (tunnel547699-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:3e6::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: slyfox) by smtp.gentoo.org (Postfix) with ESMTPSA id 913C434F0C3; Tue, 17 Mar 2020 18:10:22 +0000 (UTC) Date: Tue, 17 Mar 2020 18:10:16 +0000 From: Sergei Trofimovich To: Jakub Jelinek Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Andy Lutomirski , x86@kernel.org Subject: Re: [PATCH] x86: fix early boot crash on gcc-10 Message-ID: <20200317181016.0b39bf91@sf> In-Reply-To: <20200317114605.GG2156@tucnak> References: <20200314164451.346497-1-slyfox@gentoo.org> <20200316130414.GC12561@hirez.programming.kicks-ass.net> <20200316132648.GM2156@tucnak> <20200316221251.7b4f5801@sf> <20200317114605.GG2156@tucnak> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Mar 2020 12:46:05 +0100 Jakub Jelinek wrote: > So, a few comments. > > One thing I've noticed in the command line is that > --param=allow-store-data-races=0 > got dropped. That is fine, the parameter is gone, but it has been replaced > in https://gcc.gnu.org/PR92046 by the > -fno-allow-store-data-races > option. Like the param which defaulted to 0 and has been enabled only with > -Ofast this option is also -fno-allow-store-data-races by default unless > -Ofast, but if kernel wanted to be explicit or make sure not to introduce > them even with -Ofast, I'd say it should: > # Tell gcc to never replace conditional load with a non-conditional one > KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) > +KBUILD_CFLAGS += $(call cc-option,-fno-allow-store-data-races) > in the toplevel Makefile. Yeah, I noticed it yesterday as well and sent out exactly the same change: https://lkml.org/lkml/2020/3/16/1012 I also checked that flag does not change code generation on -O2 for smpboot.c -- Sergei