Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1143580ybz; Sat, 25 Apr 2020 11:58:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJ2R5vSrhosAKqoHAgNhpvcjbmDl7G69E++dF/CmY1AZxEzOWUAkNmTBUEjkkJsqmBmXkeO X-Received: by 2002:a17:906:374b:: with SMTP id e11mr13427987ejc.283.1587841098663; Sat, 25 Apr 2020 11:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587841098; cv=none; d=google.com; s=arc-20160816; b=U+Fc1KTpRJL5iYmTQRgrYffrVLXeWmqj/te/Pa9906rPxXZYhyc6ogkUy2SYIirQtu Xvcz9d15YbJt4uG/uYCdOKfsE4Q7AZnLt4A5dgV3IOoeqSa7U78/fJCHcv07M5aOB/yU 6aPHaGodE3+HKeRyWTtwcxWAzcf0IHsqqIWmktWPBgO9aMul/uC/9dady1yjQxYJjrwg UqHvDvYLWQ0MXA5RqpEuuQsO/rXA6BDg/E5K43GMDYqHZJfthCH9IFu+OxAxsQkGyXWc Vdpdmmszi/xwpzoRm3/MmZxErIw/nMAMhRCfbUE4Cz7iLeJLOf+Ra1sIkbdoDAFRHwXd 0/vA== 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=iTbPHyhUCYp1hsTKDTL6Rkak9xj3g4rssRfqZNkVLdA=; b=unn1DwEktzaQkQsgJ4v4AGy+J/vW1soOoXDqp4KvLMaGtVSMCfztwjqnslR+6ETxvY rV37jjbhFKZNa9PxqGREkMYf7/+n1AAq3TEcqx1xtiuD1tSVFy3i1sjociqjRXNoOQsp vkzpGmA3TwQvyMiWxL86Wo3e9RHCVUdAhH43nHwjwLZwIcHMmPpEJjyHl2r+ssoJAvLq oIRGqFm4myBI/8kK0vYiXKy/usX91RkaW2eIHOlcWfDZIMlYpk0mQ/L99a67qtv4pxN0 3iR9Y7WO3GxqtrHlHM4bY+FOKp2IcKf5SAiOJAyG8hq0/e3yBITh6v7eEU/pPPS+NR9K o0Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=J1HDIxyv; 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 d9si5632268ejb.387.2020.04.25.11.57.55; Sat, 25 Apr 2020 11:58:18 -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=J1HDIxyv; 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 S1726279AbgDYSxW (ORCPT + 99 others); Sat, 25 Apr 2020 14:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726145AbgDYSxW (ORCPT ); Sat, 25 Apr 2020 14:53:22 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 154A3C09B04D for ; Sat, 25 Apr 2020 11:53:22 -0700 (PDT) Received: from zn.tnic (p200300EC2F2A1100B46A3E12B0A6AFFD.dip0.t-ipconnect.de [IPv6:2003:ec:2f2a:1100:b46a:3e12:b0a6:affd]) (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 8527F1EC0C84; Sat, 25 Apr 2020 20:53:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1587840800; 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=iTbPHyhUCYp1hsTKDTL6Rkak9xj3g4rssRfqZNkVLdA=; b=J1HDIxyv/9Q6KrgTFyzUaS9MzUgSTqUl1CHKzxt9TsfuRWCgenOsqkBAUiSvooHmIFgoYR xTFg4Y4kCmZjWDIrRtDZdBKr0CU76/YyCxbHLM8CBk0vP11S/rVp9yFpSmoUqaXMTtJMbC uoQ0v7K3Cuy7iuezi+zng5kYLFXuv0o= Date: Sat, 25 Apr 2020 20:53:13 +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: <20200425185313.GD24294@zn.tnic> References: <20200422212605.GI26846@zn.tnic> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200425183701.GE17645@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 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(""). > but more seriously, you probably should explain why you do not want a > tail call *anyway*, and in such a comment you can say that is what the > asm is for. Yes, the final version will have a comment and the whole spiel. This diff is just me polling the maintainers: "do you want this for your arch too?" Well, the PPC maintainers only, actually. The other call in init/main.c would be for everybody. > I don't see anything that prevents the tailcall in current code either, > fwiw. Right, and I don't see a reason why gcc-10 would do that optimization on x86 only but I better ask first. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette