Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2876335ybh; Mon, 16 Mar 2020 11:22:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvopKm4u0pukPDPFnFhbnKX0djk1Jxw3SwsYdkShecpTO+7r60bwMkaD3/h0x3pmTGbY+Il X-Received: by 2002:a9d:1d07:: with SMTP id m7mr413364otm.167.1584382979190; Mon, 16 Mar 2020 11:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584382979; cv=none; d=google.com; s=arc-20160816; b=D1FBmr/8vAgubpvngDzxiadbzIpjiNAIOG023Vw2TKCVvskAMnZtTRUEw0xEOGGpFc SQtar9UhcUpl8bBazfDqZ8u/NLVEWk4HgRuZCtN2A5sLgcFU1jETNpEB5/x0cr/NASLW rlXRU587P0q8an/lV/5aZx5W0x9eWg2thJTBdlGx/IgA2KN29WKEluCJsnTsUA3F9d/O 1FeWq5lrgWrsdQfsGK++DwpGomfDwLME1pkbubgBeCkHEBPatBXpO1Igw9HlgFURuPLx 9DNTzGfk+xOBtrVVsXvoC2wpl52wtlVkqkG6DPqhhyMYv5gseXjj+JImWTxreQ5Zsk8B swIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=cQsSz1COC2dmrRLkEbIXNT1K1qMVZomosRljDS+mD6A=; b=HNZYBkOWqphueql3+2IunDOJB8/hN+BCo8drtL05b3G9917oh1fgUl9W74RHq3cv99 BAR+y0TUdIM+wcA7YV9hlB+OFMmkbh8zH64AvJAcqHHP4LQe/lTDJ6MJzp9gc1yFRdHD Ixrbb7kb1PTeF69F6Ezjs+1QMVDcF2+jeNBpxro48q7mAsIheyRBIt75zJPCCTbjeWQa /Jxc1GHOYVZI13jcu5l69EBhulNj6YOWnZgDq1Rf8/pOcf+T9YlDrl4XgaHm7iyRlVwh auVRFLIDbAMvWQ6fs0/BwpJlI6QYkpsK6Kb+OomsPttY1dZirtOHd36/Ndb+5gAQw2B3 Yf1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Hcy3ISR9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c84si347001oif.236.2020.03.16.11.22.46; Mon, 16 Mar 2020 11:22:59 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Hcy3ISR9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732345AbgCPSWM (ORCPT + 99 others); Mon, 16 Mar 2020 14:22:12 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38476 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732312AbgCPSWL (ORCPT ); Mon, 16 Mar 2020 14:22:11 -0400 Received: by mail-qt1-f195.google.com with SMTP id e20so15106866qto.5 for ; Mon, 16 Mar 2020 11:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cQsSz1COC2dmrRLkEbIXNT1K1qMVZomosRljDS+mD6A=; b=Hcy3ISR98V336uyttxciTMkX9Vxh+ToWZwB2MTvljw2GGRX7UhN6dSY0+Bf8CMNAi2 5XcIvIPZfGJOlLs7US4IKc/1TnB+l1NHz4udv3vpv1joRNk2BpvAVR33TrfPC2wJaAoG z91Z2zN9R6wZ8bnGtvQAiDx3FfuSqUqv8PoI77kZeqJTBLiJERZNwHGU/TJ3jSQpoiqa rEeHSY06RRLLCdRK0ZlOvFlczZawVj5VNnHI6uF1saQU/ymPf3DMbh953pZAGCM3VWjh 8IptN7djd2P/Hcm+OtbHKsqUYA/2gaxbbmGJi584m0Xxzs89ytE96l4wLBAn7+8enjdg DJTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=cQsSz1COC2dmrRLkEbIXNT1K1qMVZomosRljDS+mD6A=; b=k9LIJVVmBDx69YZKSJszm7wnl6W1iecZRCSK7yi/iPTaoQrR62rUxpwVncWrtu8G60 K3qupHnM8dmXSMFirdQhZgsHONFxZoLwKAbZTafq4ICb+T9Jq6XtUjRBMg+ZR0fYp1HG 06lIWkVw1ZIGxA+mieHRf1p/oKBOei8moq0bsiHuHYwu+AK6Rj1CwjizID0EsjfNIh/M 9MRfeXNIEqLSe2ByB9COQURO/ntt7hPVmgQSDY7xB9JNk5U424l1LlI7a4o5SEbtcYLN MWZ5wqME/vbq6c4A+NQlivHJ8XLlocmZkp5FZwh1CJHNojL/GkO9/KUzWQguHPDlDyZw /GfA== X-Gm-Message-State: ANhLgQ2h3r3J/rpbxzcL1fdhhwTKH+SepfXs1zBLVNIAabHhEHFfjQNK 0p4EJCR99i3h7yn+tY2ocfU= X-Received: by 2002:ac8:7a8a:: with SMTP id x10mr1424432qtr.77.1584382930479; Mon, 16 Mar 2020 11:22:10 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id z43sm352647qtb.92.2020.03.16.11.22.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 11:22:10 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Mon, 16 Mar 2020 14:22:08 -0400 To: Sergei Trofimovich Cc: linux-kernel@vger.kernel.org, Jakub Jelinek , 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: <20200316182206.GA354531@rani.riverdale.lan> References: <20200314164451.346497-1-slyfox@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200314164451.346497-1-slyfox@gentoo.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 14, 2020 at 04:44:51PM +0000, Sergei Trofimovich wrote: > arch/x86/kernel/Makefile | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile > index 9b294c13809a..da9f4ea9bf4c 100644 > --- a/arch/x86/kernel/Makefile > +++ b/arch/x86/kernel/Makefile > @@ -11,6 +11,12 @@ extra-y += vmlinux.lds > > CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) > > +# smpboot's init_secondary initializes stack canary. ^^^^ should be start_secondary? > +# Make sure we don't emit stack checks before it's > +# initialized. > +nostackp := $(call cc-option, -fno-stack-protector) > +CFLAGS_smpboot.o := $(nostackp) > + > ifdef CONFIG_FUNCTION_TRACER > # Do not profile debug and lowlevel utilities > CFLAGS_REMOVE_tsc.o = -pg > -- > 2.25.1 >