Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2411938pja; Thu, 26 Mar 2020 14:55:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvWAHj+FDTcFVvxtl3WYCSbkxr+d738fr545iC4YOjEc25AtWnfhZ/P0/IFzL+/c26m4zgV X-Received: by 2002:aca:dc08:: with SMTP id t8mr1802684oig.135.1585259709928; Thu, 26 Mar 2020 14:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585259709; cv=none; d=google.com; s=arc-20160816; b=HEEsG0RxK7izib1RvGjg3wijG1oaUIUOvxtcF6Av/8Y1RrTaUJ2IGlSKyfwjbkyyQ+ jEDubRMmQgB0cZMWoXJxyoOm9f2IBnPbK5ikGkfgTvkeQmXRxk6/1LQxDh1NVcIqyC7u f9ttcMFBgVJR4m5g5n0Q496h4PqvHhIsztUsnOMnFjIuRfuIfnpm3bfav6WMHI0aONc5 WoSYyyVZeau7f0D1ebVRJkl45nqDcrqTHnHXCh3fQOIMs5AHa0bIZPTCf2AyPO5NTpaU iHXa3HYxIGhEeVTblh21BC0JaFZO9ySrLbdjNgOq7HeOjHh4IpqyuJLGSNwfenI/y8mq ghkQ== 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=zal3FrjurZiHcw9WdKQmPcZhZJKjctwYoXKlsjvqpgQ=; b=G8Mz8y/9XmNHSExL6QViMiHl+lTQOPmcUcOV7nFO+J3EshP3WKy3QCEV+xeVNgDsCN wH1Z5//G44vcab3rhVxWtHnc1JsPzjy9gh6aBmcKvqNri9L68ZHUUZsXRfRMPsNu7Xc3 zrpWK94eDa4adJhN07poij8pqlf6v8afyQ3GkVQuHofYZtpwdl+cPPXBcqLYKGLQ2J6a nH/PayUohq8GVR7hpiqtSGR8cnI4WWL93K1fp6lgvcvoPdgHrvs6b9/vNmY3aLTJ2rOz fycLp9aWFAiMxbDMIhjrmXLFVZM29hFQvDRhN+MjkuIDD+fDuzQMZDtwKvqjzzjuZg66 fefQ== 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 h9si1559726otr.176.2020.03.26.14.54.55; Thu, 26 Mar 2020 14:55:09 -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 S1727026AbgCZVyb (ORCPT + 99 others); Thu, 26 Mar 2020 17:54:31 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:49504 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726363AbgCZVyb (ORCPT ); Thu, 26 Mar 2020 17:54:31 -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 6847934F9E4; Thu, 26 Mar 2020 21:54:28 +0000 (UTC) Date: Thu, 26 Mar 2020 21:54:24 +0000 From: Sergei Trofimovich To: Borislav Petkov Cc: Jakub Jelinek , Peter Zijlstra , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Lutomirski , x86@kernel.org, Michael Matz Subject: Re: [PATCH] x86: fix early boot crash on gcc-10 Message-ID: <20200326215424.5f1851f3@sf> In-Reply-To: <20200325133137.GC27261@zn.tnic> References: <20200314164451.346497-1-slyfox@gentoo.org> <20200316130414.GC12561@hirez.programming.kicks-ass.net> <20200316132648.GM2156@tucnak> <20200316134234.GE12561@hirez.programming.kicks-ass.net> <20200316175450.GO26126@zn.tnic> <20200316180303.GR2156@tucnak> <20200317143602.GC15609@zn.tnic> <20200317143914.GI2156@tucnak> <20200317144942.GE15609@zn.tnic> <20200325133137.GC27261@zn.tnic> 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 Wed, 25 Mar 2020 14:31:37 +0100 Borislav Petkov wrote: > On Tue, Mar 17, 2020 at 03:49:42PM +0100, Borislav Petkov wrote: > > On Tue, Mar 17, 2020 at 03:39:14PM +0100, Jakub Jelinek wrote: > > > That is because the option is called -fno-stack-protector, so one needs to > > > use __attribute__((optimize("no-stack-protector"))) > > > > Ha, that works even! :-) > > > > And my guest boots. > > > > I guess we can do that then. Looks like the optimal solution to me. > > > > Also, I'm assuming older gccs will simply ignore unknown optimize > > options? > > Sergei, > > wanna send v2 where you add the function attribute to start_secondary() > only instead? Will attempt to write, test and send out the patch by tomorrow. -- Sergei