From patchwork Thu Jan 6 22:57:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 530356 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp1577127imp; Thu, 6 Jan 2022 14:58:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzklDozhy6DX9RoPgDBOdiYGfOvQQQj6mVjI/b7oG49zwvhQTGSoMkxdOrkd9kXuzof51tH X-Received: by 2002:a25:90a:: with SMTP id 10mr62044854ybj.407.1641509915083; Thu, 06 Jan 2022 14:58:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641509915; cv=none; d=google.com; s=arc-20160816; b=WSa0e/ykukGqUzm9PkPEA++HBY2eCrjrN/yX5K0hJUeLLssCWFaEdbRP1iZGd7YOB4 DqWGtqjSWZrcFLm8NMCJSGv2oWRcRVc5BgykLA+13n1LF/Sfy5dReeIehzMOd12VvWvj m3jnk4nkUMxGIAB3dYBikvnXNpinDNW62gxiQCiP4pIBJPAWwOWYi0dU5MqB/0C6Wk48 9b96o5DdCW0ZCeYUgqYkOKYwAJLbnijt2h2ErgnpYqydP02o6LXJbb+/NSiLgLeetTUO alGphEhDD03nysvrBp0JuK3QMtrm6MUkTkCbu9i+6a/I0lN+MaKfeeJKiVcm+2sMQiCy KxzA== 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=59sTGIBhkZUxdVU/3Jb3/NHZMJKwGa7GltMG/ts6cC0=; b=GeKEEpE1e9YhOVHOf6XudFqALdosA3Th/nv46MgJe3zUQtDygikBEFcuXTUURHDrkJ H52gDHnu9+Qv28C6tD5gr6baxAoDYEq9XuMzVHJXzM0EFYpBECiQhBjSHeW54kjul9zg kaJCQPoOaueVxO3mxjEWvSZ+I8DqlvXwzsmv9FrkVyqXQ6nznjEDv1CDCyDAMdTBPc+t R417YapJXv+o0WW3/iTc2HQ1z7kJtDmtei17YJRvigE/V/jXZU0f2xgfUqTEAqrfsR42 su2Wk08EVNYEgZupvbzLcyUqqRIn0CF0zgrEgXZZXhQfYWk5HlZhYA9kxHvoraktlwFB 6gZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PLsZ1cv6; 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 s7si3979174ybu.142.2022.01.06.14.58.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Jan 2022 14:58:35 -0800 (PST) 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=PLsZ1cv6; 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]:50780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5biM-00051k-Jr for patch@linaro.org; Thu, 06 Jan 2022 17:58:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5bhY-00051A-AK for qemu-devel@nongnu.org; Thu, 06 Jan 2022 17:57:44 -0500 Received: from [2607:f8b0:4864:20::102c] (port=35450 helo=mail-pj1-x102c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5bhW-0000Gm-Ij for qemu-devel@nongnu.org; Thu, 06 Jan 2022 17:57:43 -0500 Received: by mail-pj1-x102c.google.com with SMTP id r16-20020a17090a0ad000b001b276aa3aabso10222582pje.0 for ; Thu, 06 Jan 2022 14:57:42 -0800 (PST) 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=59sTGIBhkZUxdVU/3Jb3/NHZMJKwGa7GltMG/ts6cC0=; b=PLsZ1cv6BZMZLOI2grfrooPyO7FcScA4NoQl9ITpqc9S0v+pk2VfHoYVG3u37xfXeu S7Y8w0QMEbf9XaRMt/gQjVRU/BtkemNEN4a1ygtCWaExRPOXlMWPOLLKNlMe8QMe+JLZ ym1ZoZtlc8vX7bB04yyyhvkfWKnW8jg589wKpCJnzclu1KTFfQc7Q/JwKCBRCEYB+flW zLCOWU/0hEHao1rrrHc7Q1oJhoSWQ3E7rCSeQ6dVWoy02hMG+UOawY35iCrvBxPv2M+8 nSfCRKG2YnCjEqBsockSAF8KVQzMiJaSo0+Mtn/ZCe0ScBgZeh0fxI35Zsi2GShyRpEW kSvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=59sTGIBhkZUxdVU/3Jb3/NHZMJKwGa7GltMG/ts6cC0=; b=B+zUqnKoXXtk6TskfM/ru1uVp5l5kDBl3MU8tDZzRHtKLDTBLAmVUvw9Z5Iz92ctYo 2lHG/W4VNElNJKp1f/UqhPg1LEgFRGc37S6ceZdiOM8v6cwMjHrECOavLb7nCMw2LpAx h30iupKQDrzqtiI7CnPpCFKC4OTg3xxEB2V5vqHdnHlmes1IUAqdZuJU2mw4+g+VrWOn 9noAI8U/XduUkTE2zHK3GWnDbuSFpOmM24EMd8IKIuQKaqzhTmxlugpZL1hiaB5UZ24P kAz9+ddGxo2B0nGNnVwrTNppXjWvsdms5DcyzVpBismWbXBEgemlFdCoDghWYhb3Splo LEmQ== X-Gm-Message-State: AOAM5310+IDaV79rxVlUjo+tZvN5cSpTtEsnAN17n2r4dp42sMHbtGTE x7hr/f7U9SSYPiJnVi8FkX1iJQC/mqzn0Q== X-Received: by 2002:a17:902:7146:b0:149:537e:e35e with SMTP id u6-20020a170902714600b00149537ee35emr59780119plm.55.1641509861285; Thu, 06 Jan 2022 14:57:41 -0800 (PST) Received: from localhost.localdomain (174-21-75-75.tukw.qwest.net. [174.21.75.75]) by smtp.gmail.com with ESMTPSA id rj6sm5774687pjb.50.2022.01.06.14.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 14:57:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 3/4] linux-user: Implement PR_SET_PDEATHSIG Date: Thu, 6 Jan 2022 14:57:37 -0800 Message-Id: <20220106225738.103012-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220106225738.103012-1-richard.henderson@linaro.org> References: <20220106225738.103012-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9eb2fb2bb2..8495f5e08e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6450,6 +6450,9 @@ static abi_long do_prctl(CPUArchState *env, abi_long option, abi_long arg2, } return ret; } + case PR_SET_PDEATHSIG: + return get_errno(prctl(PR_SET_PDEATHSIG, target_to_host_signal(arg2), + arg3, arg4, arg5)); case PR_GET_NAME: { void *name = lock_user(VERIFY_WRITE, arg2, 16, 1);