From patchwork Mon Oct 4 07:44:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 515170 Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp1156016imy; Mon, 4 Oct 2021 01:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf1Sv5BUyc23wuFNzOfk+yrDVPpe5v6Acic7ZU00qJIKPYklp5RCnvIES3z+//K3hT7mwh X-Received: by 2002:a05:6638:d89:: with SMTP id l9mr10308213jaj.74.1633334997551; Mon, 04 Oct 2021 01:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633334997; cv=none; d=google.com; s=arc-20160816; b=Z5rgBuhFSvUJqJrgymzQtqvjX581pf/JBlRfTbFNx54LKBZ7VEtGiNPyB4AvJ2wvU0 QPGxXXcT6Lti5Iu7AxSSrwaTJnvq6/DAn2gAPG5tZp5R69IICe37V2wYcH3WoZ36XBDs nvPug4BP1SvS/jsnEqDuTeqKZ/R4tKf5aeO/KXNXJeb4HfG0lfbmVPK0dnLt87gdcI32 DjWM4uwrPEiQXWUUxUUY4ZNZU8X6x859olDRWc5rW9tt7ex2IpZQd6hjJeTtdgL+Xcgf Mjzvo/N1SWXs2WwaF66DaOjTDFjywXnoKXwij3aJ8H4uuM9SkoSDfAd3O7uq01j7edA8 obug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=FXaofohVMnMOytazr1ttGGrrDC1hm0PgR8Ca4N68CxU=; b=ulupochht0Ga8XWjE8rcaRtriTZOQb9wmQMo5yNsLu7kyn7bMMQ0FwvfrKswIJMoY2 t0PQW/muXn5FVj2pCGVP5pvpS/67v3ThHNT2j+pch8xU8umPdjXaPjIOi69bvqa1K6et tUC17Wr3ZPxbk2eXafrokdns2A3/4dOBW498M3G/PHumX23oeWvBSgjFfbeVe6+Kw+n1 tKi8m1Ip5UwZZ+H7euHQI3IJBH0+alszm4UGbpypBUFR2eeRosN0hgN5rkQfDWW4QrPM D9a0vAy9hnpv1Ka5FMSiMDR8hs80UF5hlecg/Jhg58nRUiYI4e+9E90zqR3+Pa3lqbjy y4QQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x8si17036618jaf.127.2021.10.04.01.09.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Oct 2021 01:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:52268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXJ2r-0000vk-1K for patch@linaro.org; Mon, 04 Oct 2021 04:09:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXIeP-0004IL-RR for qemu-devel@nongnu.org; Mon, 04 Oct 2021 03:44:43 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:54897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXIeM-0004sB-JK for qemu-devel@nongnu.org; Mon, 04 Oct 2021 03:44:41 -0400 Received: from quad ([82.142.3.114]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N6bHC-1mrXgw3HSA-0180yc; Mon, 04 Oct 2021 09:44:28 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 09/26] linux-user/hppa: Document non-use of setup_sigtramp Date: Mon, 4 Oct 2021 09:44:04 +0200 Message-Id: <20211004074421.3141222-10-laurent@vivier.eu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211004074421.3141222-1-laurent@vivier.eu> References: <20211004074421.3141222-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:H7hPEbc0/IcgVY0a7EXKCSa4CVlDmHMyMLX+19lYPv7g9ym74Wi O0w1/Ps/0N2WBAEFYTHQ8JEMODn42EcSL8alOtI15kY70k9/i3Zp6GqbhGTBtcotI0cfyFW pKlQ7cWrS2B8T/MIXcpbSbq2f0S6e7622MFpPHqY5qpaERZ4IKZIJyVO3yPyT0abBrJTZ/N HBTmADS+01QtCZn1llATA== X-UI-Out-Filterresults: notjunk:1; V03:K0:AEUs1Usz8F8=:sLi2/Qidxzbztmn4VwzvqR Mz/nIFl9fruobZ5UBmoabsUQZJis8qZs4NXIKtdC5cDm0hWyuMaOTldK2ywhsQzTtMRS6NOfk qwsDzKw36lwL1I7xUON7IDsIxCY1UEAJT3Z7yzEHN99lv4cJ+oY0DMS6i1d9vHW/ozmAjfqN5 dHFIvqNEYphXE6yEg93gGpAt9JFSdWLnqHRlYg6gM58lrR2jojZt0cYBhUohu6w/OjVE2A9TU 6qK1IbfU6yW6yf86oJP8W4CtsNGVQfpXC4xSsJ1e7J0iktmBKTlrFvt+yToVwVyszjBWd5gcv vRHLATzGBho6vEK54253P8pRFE1ScXjpZQAoYlD7e9TIZyC0gv8ZZCjmPBhozfr96I5AC/X3M Hg0CDIqo9Kx85aidtbHACNEWWDp1BQCivceuu3ESRvzdbMPSHZNEHNbnlHszp+MoACkTU4ZFD G+IXSQzC17/GmMfagq45KhKNo9cbSrs5zCgJKdgY8JQizEKX+k6vwejsPa52kiFSzhjOBA/E4 ozsbyaBdbcCP5oCBao8zwyKn1M1iM7WxJvQ94oDRXHQaePv327WFZCHSZ2TN5VsBAc4qIwHSC 6m+vmd5ijoJ10HEhV27PAUhGHMme5vbe/ie46m/xfeqQ2cY2YnjhP5xdzVD2bxgpFpcmnVRjf Xv4WpAyPuLKHS3vk+ryGVgxCdRqh8dGsOIuGQ46A2L9dY6iUksUkCoZyqG9Om1hijtDehEH+5 huve1FMkmsf/XzwuoUJMjIX+TRYGzqVrE2LcKA== Received-SPF: none client-ip=212.227.126.134; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson We cannot use a raw sigtramp page for hppa, but must wait for full vdso support. Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20210929130553.121567-10-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/hppa/target_signal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.31.1 diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signal.h index 7f525362e91a..d558119ee7bd 100644 --- a/linux-user/hppa/target_signal.h +++ b/linux-user/hppa/target_signal.h @@ -71,4 +71,18 @@ typedef struct target_sigaltstack { /* mask for all SS_xxx flags */ #define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM +/* + * We cannot use a bare sigtramp page for hppa-linux. + * + * Unlike other guests where we use the instructions at PC to validate + * an offset from SP, the hppa libgcc signal frame fallback unwinding uses + * the PC address itself to find the frame. This is due to the fact that + * the hppa grows the stack upward, and the frame is of unknown size. + * + * TODO: We should be able to use a VDSO to address this, by providing + * proper unwind info for the sigtramp code, at which point the fallback + * unwinder will not be used. + */ +#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 0 + #endif /* HPPA_TARGET_SIGNAL_H */