From patchwork Thu Apr 22 23:02:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 425883 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp785563jao; Thu, 22 Apr 2021 16:03:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXeldugnBSjliWnsCiDyf93NqH2NKvm7GKogxHr+YghxGMlL9ArD+N1s3hq2w0AekLDXGd X-Received: by 2002:a92:cb51:: with SMTP id f17mr672456ilq.119.1619132624363; Thu, 22 Apr 2021 16:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619132624; cv=none; d=google.com; s=arc-20160816; b=aqz9be6tfxCzhd0YTqxco1RyC+pYO/zcQnilTYSgNvCGeqHj2yJ9x6QHMu8Nly0xSb HpePBKBN/pNZLwIeTpqhwjdyvjx2swB2U9H89ljaxrz4sJZjRGwhzTZDJzxyjbX/m98B vV4lrtjmkVI1GaVd5CCyWJfWZoWziKtM+Fat4YYeEgZ6Lj2Cqld6mmcqZqOPMf4BSlW2 lAcyCC2NeiykWwMivIRPIzz2iNmKesaTXEwLK52zjK+MaDsHZQLMJQPsF1IcsJDJOEd2 NfwMJ0kRSdLm2Mv9Mz2ErzOcm3gbPd06XX03R64lpl0c/sksOPSu9aGwmXHlUjFIaR0Y 1NwQ== 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:message-id:date:subject:to:from:dkim-signature; bh=iCIpDPfKFAAEZizr+/ttZJSp2BCLoqZ28R5GAq14Ksg=; b=fqFbCvwCq2IaxJIOzeJPTAUpGNUZLWDlaq1qSXD4IDc0D0CHtZ7go1JG5OCNdcojbo OCIE2dQgP5zKuJq0ze4xT1UUEeYExlO+4GFQKm5dwN8KrX74UXThPB6F/4Jfd5np0ubV KI702XfqxsO6F0Qja1jQZWivMy3sX5x46NHpO23UT5qWlQh56C+uyyRKjy3pYX+FrOCQ Dmvv+H+S075NjClbrvjEQB6gLfbmtyVygLuNwrtJqGXNFmNS2CuLQCCFkY9js0e/qRAV lq9Ig5E8rjJljc37Ffa+hKWIW52s7oAwyD+WwUyW//wv2ZifrfuNzjEl4ef6zEu9B5qk 8M2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PQkxiQgR; 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=pass (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 k10si4553135jav.5.2021.04.22.16.03.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Apr 2021 16:03:44 -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=pass header.i=@linaro.org header.s=google header.b=PQkxiQgR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZiMJ-0005Am-QT for patch@linaro.org; Thu, 22 Apr 2021 19:03:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZiLB-0005A7-NO for qemu-devel@nongnu.org; Thu, 22 Apr 2021 19:02:33 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:46871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZiL9-0007ot-Lv for qemu-devel@nongnu.org; Thu, 22 Apr 2021 19:02:33 -0400 Received: by mail-pj1-x102a.google.com with SMTP id u14-20020a17090a1f0eb029014e38011b09so216026pja.5 for ; Thu, 22 Apr 2021 16:02:30 -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:mime-version :content-transfer-encoding; bh=iCIpDPfKFAAEZizr+/ttZJSp2BCLoqZ28R5GAq14Ksg=; b=PQkxiQgREungswaBPrEh9k7AWFzef8JmFuPPxW0j2atKmJvtqEiWUWSB3vtpBpqTx/ BgS0zjHa0VX4vfVDemx1hhRl1vf8GkkKyAgbItEcyVSZB1sd7qNNq/4rq5dd8NlIxA2q V8prUomNf/RXTiatnnrkx8GkZn8zrQP4hJBlbp/nQHTMucn2NfmEPAU5Z1aTSo4L56K2 Ke/VbdI+mRzTFXo8JymfFhTvAdviXpY5+ZFy3gG9/XAjxCff+/FL8AJMPFG4ce/LtWwW 4um9qkPi16wce1Dmn707d1OJPQupd6oX46CZpvTdGuUka7KWgJcquzsw/TlKtQvkOpp2 MMcg== 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:mime-version :content-transfer-encoding; bh=iCIpDPfKFAAEZizr+/ttZJSp2BCLoqZ28R5GAq14Ksg=; b=OTh6VhNYqEElPDwz2XFt0aA0F5xeDBvV/9as8P/xlD7zXKzYog8MXyzfm+yVNzugYn lyJJQ5P4mRp30ER0aL5piWaSavkkVAYCMtotCZDzrHBEJ67S6jkg8VhA4orJM4Qa1Ejf M3BFhmfFNRlFhyVL9MC9H9khnt6/HMo2V3iwAycMbHsB8aJYCOew+YR6k91M7iFTKexr HxNYZO5qd6acIeroNEituNs2BJ907v8EvDXwrFYVlvbUk551W/Mgl3s2HIvgBKka1K0o Y+0XAkU0Ls0Qu3plkklPXAzX1uebBzEl5ECeI1+I9Mz2F0534XC5Ra5DAxkRl0gCwr86 II0Q== X-Gm-Message-State: AOAM5338gwHPhF9ITEWzvRhwdPNONZAO7soVS+MWQTNEcoMCq+++fZ/Y nNqKfpZ1fPrsiFrqUgtWKS1BljeHt1C3hg== X-Received: by 2002:a17:90b:812:: with SMTP id bk18mr1138317pjb.145.1619132549155; Thu, 22 Apr 2021 16:02:29 -0700 (PDT) Received: from localhost.localdomain ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id z12sm2930605pfn.195.2021.04.22.16.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 16:02:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 0/7] linux-user: sigaction fixes/cleanups Date: Thu, 22 Apr 2021 16:02:20 -0700 Message-Id: <20210422230227.314751-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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" Alpha had two bugs, one with the non-ka_restorer fallback using the wrong offset, and the other with the ka_restorer value getting lost in do_sigaction. Sparc had another bug, where the ka_restorer field was written to user memory. Version 2 splits patch 2 into 6. r~ Richard Henderson (7): linux-user/alpha: Fix rt sigframe return linux-user/alpha: Rename the sigaction restorer field linux-user: Pass ka_restorer to do_sigaction linux-user: Honor TARGET_ARCH_HAS_SA_RESTORER in do_syscall linux-user/alpha: Define TARGET_ARCH_HAS_KA_RESTORER linux-user/alpha: Share code for TARGET_NR_sigaction linux-user: Tidy TARGET_NR_rt_sigaction linux-user/alpha/target_signal.h | 1 + linux-user/syscall_defs.h | 29 ++------- linux-user/alpha/signal.c | 10 +-- linux-user/signal.c | 5 +- linux-user/syscall.c | 107 ++++++++----------------------- 5 files changed, 43 insertions(+), 109 deletions(-) -- 2.25.1