From patchwork Wed Jun 16 01:11:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 461319 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp101033jae; Tue, 15 Jun 2021 18:22:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOs/hsL8+hnb+lESeOdeGGLrFrGoPMq8EF5hYpKMUaZX2v1+jT4EmRn16A8Wjr9LLlby13 X-Received: by 2002:a05:622a:1046:: with SMTP id f6mr2479064qte.237.1623806569683; Tue, 15 Jun 2021 18:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623806569; cv=none; d=google.com; s=arc-20160816; b=rI+DCqBu/znZXyek2sm2hgqXFqTBcTUK3sBAgC2f72YIbefbwiCEOGs5L4lgF0bw2G 75gsAc5AUCbmX4NFgOjkkRbkD0GlQrk8WwSmStURgQlj0a8Yxa69lByRX0D630OFQTAe VP0MKd8iNGZ+59QWIpUK8G2FkFzPEHekH5nkkbaCMLi58N2GhuqLOC6orWN8Lvf7bPhc xMNTNJwDI7OuHkl3+dm7zNTB6PqfINs2qrVMjbW8j5uv2VQMOlXQZRJR6MA1GGVNk0yD 4U+8UbKDj+LHvZ4h0m1SxVioWXHZs2USJl5Gc1QQ4F7NY929Rfvr9IHbu719QvZNN3ej IInA== 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 :dkim-signature; bh=FJ88hjzMPCGkvsQLrCHEXf9qcVpoODBdkqIpV1aB2qU=; b=wNMSs/B0ujxfGMM5Cc8hl2iAjBzu8UicsMxyWFCcljHd2YkyC8YHQHelWKS/tuB6y2 idm9y8HwxOE6tbJ5SCgSnV1Do+BBpFy77IH5WFrpmICWdtc8kn+eL2g1rm4Q2UQhmghe aPpqMJX3gMr5r/FGj6jRiZI9TV2DVsG+AnHIHNjvgCnr+aQwhIJQdONFJ2qxRbjXfBR6 1MzEAERG6jkyJoQ9vCd81PIDEHJOB0iyI8Bo93AnocI6WHWkul5vbEmu+Li5JTqgR7Va giY+WhHSXUgezmMRJ54nJRb7Xd4CA8tVc0WcC/x+pBNmzSGHorS69VNok6TxKouKtNLG m9lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QGFgaaDc; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l23si406902qkk.182.2021.06.15.18.22.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Jun 2021 18:22:49 -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; dkim=fail header.i=@linaro.org header.s=google header.b=QGFgaaDc; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltKGX-000183-03 for patch@linaro.org; Tue, 15 Jun 2021 21:22:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltK6Q-0005PC-NE for qemu-devel@nongnu.org; Tue, 15 Jun 2021 21:12:22 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:35693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltK6L-0008Nx-01 for qemu-devel@nongnu.org; Tue, 15 Jun 2021 21:12:22 -0400 Received: by mail-pg1-x532.google.com with SMTP id v7so593949pgl.2 for ; Tue, 15 Jun 2021 18:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FJ88hjzMPCGkvsQLrCHEXf9qcVpoODBdkqIpV1aB2qU=; b=QGFgaaDcyTvM1hVoJGpb7bJ2+HaGfWLBYjhelO9M0wKD3OCtpEs8mnZANdkFVYsZZT I6/x2CsNq2nyX17DzaEjOKdy5oLvUeEHbOks6sC4MpLcs13y9xLYBTNN1n2gcU+XTId2 Tx73gHVaGPpidUA7UhHgv9g9HmWxQ7TAtaw/QVdzY9zUhSQa4yi8665rlFv3yzvz5fMm KXQ5zGKtO2v+1prBRm+lJSUx4Bw4heZKgFEEKmYDPCDi+YM1PN25au8qELaG9cgByasl dY6el2ir2402rkvSlcSmlQvhe9aeVCwQY/PYSnmf7faxk1cOyNko1llcqYaK2Ys7FLhr Xm2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FJ88hjzMPCGkvsQLrCHEXf9qcVpoODBdkqIpV1aB2qU=; b=XZmNunCgYsmhI83XLyE9MB6GfCxlmWqbElfk4NhPlhlXahk72nkscRMPLpUPCd71i4 4lU4eCZEovMU8K+1u8h+Pig/xzZvsk984uwUzG0jtrTWfYPmYCgw+DOcwNC6XYtOsqtB c0+e0QHT/pkbwvdR+nmxSNTH1ebaI2Mt+33xM2EjPXZTDRedtrHFxxppT9CyB56ciGG5 ZiWW+TK6HzpaGEb4jBxooRACLzm7sjq4k6fIcC/reAYY4mvWkOyFzRiI1KhDqKtgGtzu XiB8SYDk3y8fPxs9K5GNqFApC2h8CBQcKsOWJiEb5yaguh5e9xfHEUt5JKPpzEx5+Ljh yXIg== X-Gm-Message-State: AOAM53150dONjROBDSEVBtQhDjJfoTh/IokOYleHPcplomd2yR68YgqH Db5QN16LjMthpillauw50yIJlnwBzYpY9w== X-Received: by 2002:a63:6884:: with SMTP id d126mr2381817pgc.368.1623805935732; Tue, 15 Jun 2021 18:12:15 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id y18sm305297pgk.53.2021.06.15.18.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 18:12:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 08/21] linux-user/hppa: Document non-use of setup_sigtramp Date: Tue, 15 Jun 2021 18:11:56 -0700 Message-Id: <20210616011209.1446045-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210616011209.1446045-1-richard.henderson@linaro.org> References: <20210616011209.1446045-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We cannot use a raw sigtramp page for hppa, but must wait for full vdso support. Signed-off-by: Richard Henderson --- linux-user/hppa/target_signal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signal.h index 7f525362e9..d558119ee7 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 */