Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp621032ybb; Wed, 25 Mar 2020 06:32:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vviV7CM2ihBH2TvAnshD4vMk/fB6JXEt4RFJU4HoCNYSYcPNBRsEnpuNbdrqvDTgokmLWpk X-Received: by 2002:aca:f4d0:: with SMTP id s199mr2496677oih.109.1585143165342; Wed, 25 Mar 2020 06:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585143165; cv=none; d=google.com; s=arc-20160816; b=DUfZqeYG9bkFAZHrJR34poLoN+NnMUJPWGkk3uNXYvcMeAO8XW9hSva2sqsJmuKq36 LDcOd5c4cfjoOWvX6anEACLoj+jeLiyqvQMCcgQrTsvNZ0p213UB012ooZSWLyQVRqWo Vt9CROCsmfduKaKEyLMJ0e8k7UiuUZ27zzWdyBkWE4bT1Av/9PH6J2CXPjaB1q+4XGlf BP3SZ+ff90OKh3izk7HQlLmOwOLmZXqYhpidKSKG1chuIjZvn4Iy/ludOnY22+t3N0oB oLSdP/y6EVG8TWHQheAVj8sDRM9Oxkb1vM7NAtLklpthQJdKfs2pwp6xjZ2se1X6UU7v 1QLA== 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:from:date:dkim-signature; bh=8kZyeaI5oOo91uXYyG7kPVenFF4gjZf+S4YQBpUAj8c=; b=yGAP/D32U2tJTCzETli82NR3QC3FYKvE5YYgV1w6OylbS2qui06Yp8sO5zqZ3AygOl fjloryxFzC6etDrex8WUmgNYvTyZTaXyb0WFZXAi8jmnfd+AJAbiQj3HzJxlMdRMr5Uo J4EVvg/oBBrYBY/9dlAR99aXje8EfWOxhhnt5bDlFAr6iGGjWTHqWXGMLwiFOJekuKjf n1fK9DcLxRV/aNPtRVWzV4Pm6vF/UYoh20Xken914+CdlqHnOamxbmMO6FKrATaB/S6G D1Iw4WVbE7lgjzGbvTLcXsVL+i/8YotddF5xa4enNnKdjRQGSuxVzU4FsVFdU0LXhCCM D3kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=O244h4YG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g129si1464095oob.1.2020.03.25.06.32.32; Wed, 25 Mar 2020 06:32:45 -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=pass header.i=@alien8.de header.s=dkim header.b=O244h4YG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727325AbgCYNbk (ORCPT + 99 others); Wed, 25 Mar 2020 09:31:40 -0400 Received: from mail.skyhub.de ([5.9.137.197]:60910 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727021AbgCYNbk (ORCPT ); Wed, 25 Mar 2020 09:31:40 -0400 Received: from zn.tnic (p200300EC2F0B060010E890E7BB95F8DC.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:600:10e8:90e7:bb95:f8dc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id CDD431EC0716; Wed, 25 Mar 2020 14:31:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1585143099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=8kZyeaI5oOo91uXYyG7kPVenFF4gjZf+S4YQBpUAj8c=; b=O244h4YGCltekNAcmTTxiV9SeigtjeyNTY5ZCESFQStvEZLOwRESjeBAnWUCDwyWZ3z/im pWO7PMStP7PPzrNLtD+nRY7c2Ll+nDy0EH/7JWCFK8Ulw5OoZa3x3y8dHJha8lxQ/8idok UPmfX3Kss5d7UXoutgSMBYLXn6+21ro= Date: Wed, 25 Mar 2020 14:31:37 +0100 From: Borislav Petkov To: Sergei Trofimovich 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: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200317144942.GE15609@zn.tnic> 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 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? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette