get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2194958/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2194958,
    "url": "http://patchwork.ozlabs.org/api/patches/2194958/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/mvmldh19bja.fsf@suse.de/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<mvmldh19bja.fsf@suse.de>",
    "list_archive_url": null,
    "date": "2026-02-10T09:46:01",
    "name": "linux-user: fix matching ioctl numbers in print_ioctl",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "358b7c9c8f66b1f41a2b3cc6a73c525823eca424",
    "submitter": {
        "id": 37,
        "url": "http://patchwork.ozlabs.org/api/people/37/?format=api",
        "name": "Andreas Schwab",
        "email": "schwab@suse.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/mvmldh19bja.fsf@suse.de/mbox/",
    "series": [
        {
            "id": 491636,
            "url": "http://patchwork.ozlabs.org/api/series/491636/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491636",
            "date": "2026-02-10T09:46:01",
            "name": "linux-user: fix matching ioctl numbers in print_ioctl",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491636/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194958/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194958/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=KmO39hqS;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=905G1jty;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=iYHm19Sm;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=9VRzTLzo;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)",
            "smtp-out2.suse.de;\n\tnone"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f9Gst4C3lz1xvb\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 20:46:26 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vpkK5-0002qk-8P; Tue, 10 Feb 2026 04:46:23 -0500",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <schwab@suse.de>) id 1vpkJt-0002iZ-EO\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 04:46:11 -0500",
            "from smtp-out2.suse.de ([195.135.223.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <schwab@suse.de>) id 1vpkJp-0006KJ-C2\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 04:46:07 -0500",
            "from hawking.nue2.suse.org (unknown [10.168.4.11])\n by smtp-out2.suse.de (Postfix) with ESMTP id 132905BCD3;\n Tue, 10 Feb 2026 09:46:02 +0000 (UTC)",
            "by hawking.nue2.suse.org (Postfix, from userid 17005)\n id 04C764A0A2A; Tue, 10 Feb 2026 10:46:02 +0100 (CET)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1770716763;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=fZSqrlvkWiCmxgzf/P0uEo5wzC8ItzFC/hD3xRCaDSQ=;\n b=KmO39hqSfX+tTr1dh/cglacBIIzN7bPuB2iyOSrSmARTpXdRpf05uZZeiSKnUCMOghAE11\n rzVLs4HK8sYGleaYUuzDSRLujtt3Vsi4Tx8g0X/ljgFfYxSaGTPxigOGVXSl5QZFri2qNl\n NTkH6yc/QqAhIkOn7UgxL0bZEaNr07M=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1770716763;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=fZSqrlvkWiCmxgzf/P0uEo5wzC8ItzFC/hD3xRCaDSQ=;\n b=905G1jtyjnq6Huqdlrcym+VOfYya/K7FMttBS1F0nO9Hfhd/zvzj//sjjHraelfBGlwdA3\n it6eDh3BAYcdXmBg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1770716762;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=fZSqrlvkWiCmxgzf/P0uEo5wzC8ItzFC/hD3xRCaDSQ=;\n b=iYHm19SmOwQy1cdOhbE48z+o8IfGA3oEZFXe2sAuqUcLeP1dGWys6cmlVUg1XdVXx7IcnZ\n eiJllbiggHKtJmb+XV3ignj0Cjuebfp9wpRw4ZqT2zVY/8YBHiZ9RGAXgM+6kTyMgK+O8T\n gIiB2mFoxeHOz+qT57Nobb85/nbAAwY=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1770716762;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=fZSqrlvkWiCmxgzf/P0uEo5wzC8ItzFC/hD3xRCaDSQ=;\n b=9VRzTLzoWZG5wZfePAMlbSsl5siqir1AG36DlCo7qIsqCThQttxYLIxidCqPlxHBTspW6x\n TPx7mdtBEdVEoPBQ=="
        ],
        "From": "Andreas Schwab <schwab@suse.de>",
        "To": "Laurent Vivier <laurent@vivier.eu>",
        "Subject": "[PATCH] linux-user: fix matching ioctl numbers in print_ioctl",
        "CC": "Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-devel@nongnu.org",
        "Date": "Tue, 10 Feb 2026 10:46:01 +0100",
        "Message-ID": "<mvmldh19bja.fsf@suse.de>",
        "User-Agent": "Gnus/5.13 (Gnus v5.13)",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Spamd-Result": "default: False [-4.20 / 50.00]; BAYES_HAM(-3.00)[99.99%];\n NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-0.990]; RCVD_NO_TLS_LAST(0.10)[];\n MIME_GOOD(-0.10)[text/plain];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n FROM_HAS_DN(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[];\n TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3];\n RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[];\n FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[hawking.nue2.suse.org:helo, suse.de:mid,\n suse.de:email]",
        "X-Spam-Score": "-4.20",
        "Received-SPF": "pass client-ip=195.135.223.131; envelope-from=schwab@suse.de;\n helo=smtp-out2.suse.de",
        "X-Spam_score_int": "-43",
        "X-Spam_score": "-4.4",
        "X-Spam_bar": "----",
        "X-Spam_report": "(-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,\n 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.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "target_cmd in struct IOCTLEntry is a signed int.  Make sure the ioctl cmd\nargument in the syscall is converted to int when matching, so that it\nworks correctly with an ioctl cmd that has bit 31 set.\n\nSigned-off-by: Andreas Schwab <schwab@suse.de>\n---\n linux-user/strace.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/linux-user/strace.c b/linux-user/strace.c\nindex ca67cfd09d..8e026e5d8e 100644\n--- a/linux-user/strace.c\n+++ b/linux-user/strace.c\n@@ -1017,12 +1017,12 @@ print_syscall_ret_ioctl(CPUArchState *cpu_env, const struct syscallname *name,\n         int target_size;\n \n         for (ie = ioctl_entries; ie->target_cmd != 0; ie++) {\n-            if (ie->target_cmd == arg1) {\n+            if (ie->target_cmd == (int)arg1) {\n                 break;\n             }\n         }\n \n-        if (ie->target_cmd == arg1 &&\n+        if (ie->target_cmd == (int)arg1 &&\n            (ie->access == IOC_R || ie->access == IOC_RW)) {\n             arg_type = ie->arg_type;\n             qemu_log(\" (\");\n@@ -4338,7 +4338,7 @@ print_ioctl(CPUArchState *cpu_env, const struct syscallname *name,\n     int target_size;\n \n     for (ie = ioctl_entries; ie->target_cmd != 0; ie++) {\n-        if (ie->target_cmd == arg1) {\n+        if (ie->target_cmd == (int)arg1) {\n             break;\n         }\n     }\n",
    "prefixes": []
}