Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1281557ybz; Sat, 25 Apr 2020 15:21:56 -0700 (PDT) X-Google-Smtp-Source: APiQypLeyVnqx5TjuwP4NCGfeG0StBlwSKuec3+LjrpG1vRmBeCGFlfuRcQ7vvlFu8ikn+lJhhPo X-Received: by 2002:a05:6402:1713:: with SMTP id y19mr13640767edu.40.1587853316772; Sat, 25 Apr 2020 15:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587853316; cv=none; d=google.com; s=arc-20160816; b=ztiyeVBsOoj8+b4hBPYSxNx3566sMNpeBjM/qIyAPZ6qNN6Ko/tGSHBri2oR340KAw U7yNnf03j6frCLUGRDAd2jvBG4/99rtSg62pVwkkGWeZ3zzb7gUe/p2GzT92x23mYwrP 2Ef12d1BCdpC9hk0FKcECbNoFLWPtomp72y190EhSJMoch3gxe572SOS8F7dO5iwKIhr Cv8HSv98Z5v47IYBYiODgQq0gMgHuY39dGCAZ3Xev0NoHCKqGsaxyMzW3b27rW6Znn+9 och6m2kc2k7k14F1tzx7idSXSJKJZcWOHSzqkOzPKqtVOQ+9DGb2EOF3a4ZRYSwqNyb3 5F9A== 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=dL/4+F/i9p4Rl9Mx/xjx1nvt6QzxFIox9qHe7WXmyFs=; b=rCr74i/4LGUn6K/fFHCTUnhAOpsvrHeBHca/7wwzT+jG+qGxE+4lwWDbyl5a0OQn2l 6j+zprXDGBHJuu3UEliKFTtqzRpBNPOdcTWmpxHAEJor261qCShRnDvviIJHjG58lAvN 1e3e5yTgRBPXFRmzcKQXR+Z3h730+Zr6NFUZRIQjyPgWg69J6bP7LO5Vnz31yEd2enBm ftdiKXAMWYqHyB+GxZxv3TCdHLgSduAW1UPhDI5o205IKIBDCon4G/rBNFQAdQIrxK/e gzFav7wtPuMrPIka6WPuuEW6/YezxS/nB9Zp/wzlVKDyoqzUg/WfbsSuxhLof9AnJYJ5 hzkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=TblBEYYV; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si535057edd.207.2020.04.25.15.21.33; Sat, 25 Apr 2020 15:21:56 -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=@alien8.de header.s=dkim header.b=TblBEYYV; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726295AbgDYWRl (ORCPT + 99 others); Sat, 25 Apr 2020 18:17:41 -0400 Received: from mail.skyhub.de ([5.9.137.197]:54894 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbgDYWRl (ORCPT ); Sat, 25 Apr 2020 18:17:41 -0400 Received: from zn.tnic (p200300EC2F2A110011AF566E608DBC7E.dip0.t-ipconnect.de [IPv6:2003:ec:2f2a:1100:11af:566e:608d:bc7e]) (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 882CE1EC0CFA; Sun, 26 Apr 2020 00:17:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1587853059; 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=dL/4+F/i9p4Rl9Mx/xjx1nvt6QzxFIox9qHe7WXmyFs=; b=TblBEYYVBE117oRluNpJNENnYeOMCXqC/PfzHUdL+2vSRmqMvQy+meocoqlRkiQ6dm3Iwc L2W0F0ifdIT+uqXVrfbz3xnhSFDCv99NuSUY4gzMe4QZkhhdVsZeF9dp1iEu+D0o330Nwx iTAQdlLBKNKi+8JkcWTj55M/pDBeSUs= Date: Sun, 26 Apr 2020 00:17:28 +0200 From: Borislav Petkov To: Segher Boessenkool Cc: Arvind Sankar , Jakub Jelinek , jgross@suse.com, x86@kernel.org, Kees Cook , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, Michael Matz , Nick Desaulniers , LKML , Sergei Trofimovich , clang-built-linux , Ingo Molnar , Paul Mackerras , Andy Lutomirski , "H. Peter Anvin" , =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Pierret_=28fepitre=29?= , Thomas Gleixner , Martin =?utf-8?B?TGnFoWth?= , boris.ostrovsky@oracle.com Subject: Re: [PATCH] x86: Fix early boot crash on gcc-10, next try Message-ID: <20200425221728.GE24294@zn.tnic> References: <20200423125300.GC26021@zn.tnic> <20200423161126.GD26021@zn.tnic> <20200425014657.GA2191784@rani.riverdale.lan> <20200425085759.GA24294@zn.tnic> <20200425150440.GA470719@rani.riverdale.lan> <20200425173140.GB24294@zn.tnic> <20200425183701.GE17645@gate.crashing.org> <20200425185313.GD24294@zn.tnic> <20200425191549.GF17645@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200425191549.GF17645@gate.crashing.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, Apr 25, 2020 at 02:15:49PM -0500, Segher Boessenkool wrote: > My point is that you should explain at *every use* of this why you cannot > have tail calls *there*. This is very unusual, after all. > > There are *very* few places where you want to prevent tail calls, that's > why there is no attribute for it. Well, there is only one reason *why* so far - to prevent the stack canary cookie from being checked before returning from the function which set it. That could be explained once over the macro definition so that it can be looked up. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette