Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1284965ybz; Sat, 25 Apr 2020 15:27:17 -0700 (PDT) X-Google-Smtp-Source: APiQypIqTQGkSI0Wu9ZfqUDFkFNIo3misQDFt2aKMRfm4P5/Ezf0/mgyR+wyIXCWPZgunb8hRHA/ X-Received: by 2002:aa7:d5d4:: with SMTP id d20mr13407519eds.369.1587853637743; Sat, 25 Apr 2020 15:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587853637; cv=none; d=google.com; s=arc-20160816; b=Ebo1YFj59YJvUT8gE/g/Zy670vLTYG3hm8Ieg/CPdSzk9+D2avdlDKgXc21Ss/2EgU jrO+fnlkp7vZ889Aoql1nMUjxSJMympMr13V4J+Fnt+d7rtXqU2caxjPd3AyzXc6vZ7W XPWd/8BH243JyxGGpmIpF9Vw8pYJJklw3sEF3NPRgtFyc8xNbEdiF91KAM9/HOJLbAsB i+aTTKeY+dswDspjboY9KrO1VNdv5qSjrIPqDz4BlbG0eSbnut5nH3Ly2xHs6dv5ogkr y28Smyoj7DT17SQvzE8NwZfhg31w6gcGQbe7QgJNH6NHVuWWewG3sVggent/LdSjP48X Dx/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=xuQcmX1KuUHGcvDHgPS1loxSumVbQobQeCIW/Qnf+WU=; b=nxtOiAF+mvH22R4q/HADPXNu0TuoKKxaFtIRBa/FxjdVTqvnPpE8rJLAwBBXndlEc6 M+aqzVo8k9JfutLEo1h4NP6ygBbJUnUnBprxnFLmm3tMCt9RCPuo5SR2dPRrzC6XuxH6 t+kHqIaVvtQNvPyTJR4HRXajE9H/J4gSGug23kYyhBaB7kopB4XGtqIuz/HZXNnfMmSe bQFkfwj9MWIDWhBvOGtc0UlV+B1x80Wzh1T6FrDu9d9txL57bxfn+GiEgYmL1EouzTMo GjrgbeEGJkBC1WJp/xWNA6rJKVBAlbayE3GWzBIDi8pEdpU/7zcTv8uwBonr2QfzwwJG On7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DUXzjlY0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b89si5334870edf.345.2020.04.25.15.26.53; Sat, 25 Apr 2020 15:27:17 -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=fail header.i=@gmail.com header.s=20161025 header.b=DUXzjlY0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbgDYWZJ (ORCPT + 99 others); Sat, 25 Apr 2020 18:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726232AbgDYWZI (ORCPT ); Sat, 25 Apr 2020 18:25:08 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57211C09B04F for ; Sat, 25 Apr 2020 15:25:08 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id b1so7520053qtt.1 for ; Sat, 25 Apr 2020 15:25:08 -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; bh=xuQcmX1KuUHGcvDHgPS1loxSumVbQobQeCIW/Qnf+WU=; b=DUXzjlY0Gb6oeL/I2LT28x1KTxIhrpTcB8nsZp0Bj6bBweC03HPMYVSwd8cOGoavMV pPZu+ng+/FIsmudg/jkmH4Mf1+sXsDntxyGjEnwqAsgLxmrJwdTKPuJvZk1vvlqSaUtF AI51Wt7EKHFOEqDfoSMQmAJto565MqJtsgyRSaWQK0yZkIADmeo0ZQ1B6MZ8POxeBqj6 rjBSjKWMF2C4sssgW/Qf+pinfy1pA9Gt47I6tK284HM1w3iGCELctfTm5+v+qfVN1rTf EGLW5NS/0jUXu10M22D0ezOtNRlTj3EF6BjOZStMkpD0mKCVbRLyMJgGRKuHxvuxFzoy NriQ== 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; bh=xuQcmX1KuUHGcvDHgPS1loxSumVbQobQeCIW/Qnf+WU=; b=f35mfBoZmRtlYiFKN4bzSLjcX437r4KmuPxCfHiWRanL3iQ9b4ohDdLfJ/ZD1N54S2 p/SWOolDV4iZNgyHbi4QpAl4liOmzpYabM4pQpcYlRpW549luh9WadgS9QhJes1wV6U6 aTT6rcP7KF6mQNj7/7fB/hHYQJpveEg7opR9EtAIff3SZkeGPRQlD+itJ8iJC00RMmif kkqYXPWu3Gvzrg3yE9zWwXOLNPxZAZVD3m5gCCV1BQADhbblNmzcOjdcve6LHi8rlbm/ mc0jzdacwdr6Db/P64WqRinMgyvEHBo3yUF+04/rGSMCfIFNyo6fSk1CuzvFCvIsIGRQ r2DQ== X-Gm-Message-State: AGi0PubWKNZoynEuSMbleAGxrwofiTOBqFcMoS7ev3/wcgIFUFsUpy7A Vd6cpQvqG9QDgJxRuiU04bY= X-Received: by 2002:aed:2de7:: with SMTP id i94mr16651310qtd.248.1587853506847; Sat, 25 Apr 2020 15:25:06 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id i5sm6631996qtw.97.2020.04.25.15.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 15:25:06 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Sat, 25 Apr 2020 18:25:04 -0400 To: Segher Boessenkool Cc: Borislav Petkov , 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: <20200425222504.GA1080319@rani.riverdale.lan> 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> 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: > On Sat, Apr 25, 2020 at 08:53:13PM +0200, Borislav Petkov wrote: > > On Sat, Apr 25, 2020 at 01:37:01PM -0500, Segher Boessenkool wrote: > > > That is a lot more typing then > > > asm(""); > > > > That's why a macro with a hopefully more descriptive name would be > > telling more than a mere asm(""). > > 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. > > > Segher Well, there is -fno-optimize-sibling-calls, but we wouldn't be able to use it via the optimize attribute for the same reason we couldn't use no-stack-protector.