Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1198693pxb; Fri, 21 Jan 2022 12:04:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfFe+YMk0SA6P+VcwXNOHG12boObB5b1g9e0rg5JetniNt3O5t/Pc40QPsfsUYEdoTsveg X-Received: by 2002:a17:90b:23c2:: with SMTP id md2mr1864271pjb.238.1642795470236; Fri, 21 Jan 2022 12:04:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795470; cv=none; d=google.com; s=arc-20160816; b=f5hXOlQLUa2gdU5ct7m2meEfh42NMc/QCfDUiRo2fsgK+bbTn8jFgCfRQ8IYSNCWLn kAByGlD6Icq74eSydVGJBrMhfESCnWqv23Evmofq5swv3evecpoE4HH3arobYUFaCD/K W2A4dHcWsmZqYkWA+W26dM+p1HvH28bKmUQ+hqPCkyL/8Mjswxebrp9Rt9YoTYMbwTp4 2+iiYeaHScf20drWMMgFvS9QyNygoKCyHhG4suXnFDs2K7QJ0YY9IeMNKiBjnDVU8Yuh a1imWidxue1d2n82ffk8YSEsAx06JYgYBVLnhm4QLZ43oSngXdstif9sY33aa7862znI JH1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=rWdb1EnfEWJtK7C1+v3T9v0VpURwLRgil94L4W+YrkU=; b=yolN2bEWVOj3vbZx4GqzeP8PehYBXk2qJ9dy0HEPwZLILu5+qjl4pvW2YvQvAgxFbp RsCRmpv+vEO7VwHT0mb5ZGBgx4bt07h1gE4bn3bNudqsysL+sFM5zjrblj/0IYBELh2j 2X/u++iROBCpECayK+C8FOaZStRaZWlTTzfg05z73Dhjpw3eZJbf9WG59T2D2WdLWQ7b sman/lnGu67sydX0aTZMvezgskPnpt5GoXDhvw7iYHVw7iBMj2vwM2gR8pJDbMdMzdJ3 9+vWpm2Qk3bflIJJ3Lo8wQyT1uXKmrVZqU8Iv67LkLTUjbQDHkyIV0gphBhFLuyfnu5e p9uA== ARC-Authentication-Results: i=1; mx.google.com; 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 il6si8197066pjb.62.2022.01.21.12.04.18; Fri, 21 Jan 2022 12:04:30 -0800 (PST) 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; 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 S245718AbiASVHp (ORCPT + 99 others); Wed, 19 Jan 2022 16:07:45 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:55296 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbiASVHm (ORCPT ); Wed, 19 Jan 2022 16:07:42 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4JfJBN5hcHz1qwyD; Wed, 19 Jan 2022 22:07:40 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4JfJBN54Cfz1qqkB; Wed, 19 Jan 2022 22:07:40 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id fa2MReFuQDWV; Wed, 19 Jan 2022 22:07:39 +0100 (CET) X-Auth-Info: a+k5wgMBRWkntvg+3VX7x/EHIpisGRCFgjaQ+T+kj0Njbe4vckVflYo3aArUijhP Received: from igel.home (ppp-46-244-165-91.dynamic.mnet-online.de [46.244.165.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 19 Jan 2022 22:07:39 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 74A832C36EC; Wed, 19 Jan 2022 22:07:39 +0100 (CET) From: Andreas Schwab To: Jessica Clarke Cc: Changbin Du , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv , linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: eliminate unreliable __builtin_frame_address(1) References: <20220117154433.3124-1-changbin.du@gmail.com> <87v8yg6lhf.fsf@igel.home> <8735lj78wu.fsf@igel.home> <8F8D535F-3637-4BC7-8853-B709EC5D14C9@jrtc27.com> X-Yow: Uh-oh!! I forgot to submit to COMPULSORY URINALYSIS! Date: Wed, 19 Jan 2022 22:07:39 +0100 In-Reply-To: <8F8D535F-3637-4BC7-8853-B709EC5D14C9@jrtc27.com> (Jessica Clarke's message of "Wed, 19 Jan 2022 20:48:48 +0000") Message-ID: <87y23b5t9g.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jan 19 2022, Jessica Clarke wrote: > My point is that the only thing that can possibly read the incoming > frame pointer of a leaf function is the leaf function itself, and since > it knows where it’s putting it then there is no ABI issue, it just > remembers where it put it and loads it from there. llvm sidesteps that issue by always saving ra when creating a frame, even in a leaf function, so it can use a constant offset. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."