get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216005,
    "url": "http://patchwork.ozlabs.org/api/patches/2216005/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260325164453.72127-3-pbonzini@redhat.com/",
    "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": "<20260325164453.72127-3-pbonzini@redhat.com>",
    "list_archive_url": null,
    "date": "2026-03-25T16:44:36",
    "name": "[PULL,02/19] tdx: fix use-after-free in tdx_fetch_cpuid",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e50a6d4a6176868edb105722bf3e401d0fa35953",
    "submitter": {
        "id": 2701,
        "url": "http://patchwork.ozlabs.org/api/people/2701/?format=api",
        "name": "Paolo Bonzini",
        "email": "pbonzini@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260325164453.72127-3-pbonzini@redhat.com/mbox/",
    "series": [
        {
            "id": 497473,
            "url": "http://patchwork.ozlabs.org/api/series/497473/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497473",
            "date": "2026-03-25T16:44:34",
            "name": "[PULL,01/19] tests/functional: preserve PYTHONPATH entries",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497473/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216005/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216005/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=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=DrWtnHDA;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=J1LqJ/SZ;\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)"
        ],
        "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 4fgt7g42j3z1xy3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 03:45:35 +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 1w5RLw-0004n7-8v; Wed, 25 Mar 2026 12:45:08 -0400",
            "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 <pbonzini@redhat.com>)\n id 1w5RLu-0004ls-TG\n for qemu-devel@nongnu.org; Wed, 25 Mar 2026 12:45:06 -0400",
            "from us-smtp-delivery-124.mimecast.com ([170.10.129.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>)\n id 1w5RLs-0004Tl-CN\n for qemu-devel@nongnu.org; Wed, 25 Mar 2026 12:45:05 -0400",
            "from mail-wm1-f72.google.com (mail-wm1-f72.google.com\n [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-81-8NyrhWJaPJ2jie9HJ83ohA-1; Wed, 25 Mar 2026 12:45:01 -0400",
            "by mail-wm1-f72.google.com with SMTP id\n 5b1f17b1804b1-486ff4498b2so3455965e9.0\n for <qemu-devel@nongnu.org>; Wed, 25 Mar 2026 09:45:01 -0700 (PDT)",
            "from [192.168.10.48] ([151.49.85.67])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43b91943312sm1151883f8f.12.2026.03.25.09.44.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Mar 2026 09:44:56 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774457103;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=S5fb9/cmDwJkn7K10LCL+lrCPa12NqyLNGdwwl5js44=;\n b=DrWtnHDAyzWqED2GAARVSxjPMNvp16jsNy8QDqSr7bKhh+dtzKE/EhlbWNsdni46QOaFK1\n w5ATNPKnt2o3kChoEJHV0Qv0Vttq5KKz6Yv4YmTpN8COcv1Hn/Y4/LdI3ITQzUvKbcQgWp\n VQ/0MhezEhGNXjy7HfG4svk//B5lMp4=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1774457100; x=1775061900; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=S5fb9/cmDwJkn7K10LCL+lrCPa12NqyLNGdwwl5js44=;\n b=J1LqJ/SZT6gCeCVv54fBOVWoY+XJFNJQESxHSRobpxsr4qhd6sg94Cydrx8EOz/Qvx\n mfTnABIK/ek2aPb5SMisCwArY5mfsAH1/uwbFUtwf4DDtLGA6COttxU+QW7oOllOSKWQ\n 5HMeAeZYGWicRj8oVSTSWKRkRqHeUHUKNrYwT2mSzvnAb4x4FJt5FPGJaNEkEoYei4qE\n Fimx2Bo/G9lpjhd2MJYjJVGN/A4uJ+tZKG1dDIoJ5wf7zIObWw1vGyBcqH0da96RFDLJ\n s7pzqx8/DTPRthIZrm17JREzskcibZhVcBmZUs7e3PuyK0hcSyx8XLBpzkOUCN3L8GmI\n GvlQ=="
        ],
        "X-MC-Unique": "8NyrhWJaPJ2jie9HJ83ohA-1",
        "X-Mimecast-MFC-AGG-ID": "8NyrhWJaPJ2jie9HJ83ohA_1774457100",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774457100; x=1775061900;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=S5fb9/cmDwJkn7K10LCL+lrCPa12NqyLNGdwwl5js44=;\n b=tD2EMhRK2raKg7UVFizuX+H3RCVk6oDICP8fRqrEZQ7mMU06vd2oCfJP6c961AOaRf\n CFYhmbtu3E7rXHdNrEZeqqGj3B5sMW4Aj9GO1NsAegQRgl7qNmcKHYVhUWIo+2LJcuV6\n UbiXgoyZYro27hv1re26xiUAMbq+39aJ3cPryB9ghWUApGuSjLGFTYVGOBEG4EUZaoKH\n 1KoJJmN5fDsKXe4F1ZV2/fmbQH016sfyYjHnMicbsdqG40mL3IqK2OLvkBfWtKnA0yw4\n Cq6GzQ3iIE9w3YWOSkKb+mgdH3EbOM+jaiu15u80DNVSGRewCTfAmdJRQj6qj+eCezvf\n XhUw==",
        "X-Gm-Message-State": "AOJu0YxBHJ1PA33/H6m1DpefLcozvyudtuepBGDnpS9HhR7714UJwakb\n zkiRSClT/ewHTyuXvidc3JhI7hjtIhBp4HlaNty6VpGgeV1nlHsc18Rx0b7I/pbgEU3hFr0l9Zz\n elgXrxN2rPMaOVNa7FE/JES/aties0zKsvlKLFStiyz9EzygRhFcc4KF88jkF6anchpDj1c4yTg\n CRnQ9Y8qn4lLMb2d6EPTjZ41qgq+lUf6rT4i6Qxa6B",
        "X-Gm-Gg": "ATEYQzzknwkVrTrS3sIjQCK0wWfmSFkkCYYgV1mobcJ8Qk/27rePROn9iX9o/NnmUJD\n XI1BbCzi3GoDXY7JmjNpBqBGgD0U32HiSFAs3pUL4+xSRtX8cAazDl/YCPwg4Skd05aPqbKug9J\n lCAuThzoE3PAXLGDh9GaDms0WJV5PK1wcd7ZBsb2oR1ffHZuIXb4OLhEmCqUDqwU0iHQkL3vEub\n IB85X6cG2SDcaK4X5AXnRZap9rZjHrtFxG/Gg9NJyT5RbAdp0k6+NFYky8wfgQmv1d3T3mnegdK\n +WNMSxP6ZRRd2Hj7W6y2ovEJRbV0FxUpI6L3rIWANMHHfsWvq8jAmW+E2ztygJD2ngcKBgfXyo+\n Qy24Zv9rxWvTEH1tDwHLspQRApH2GVUb9v+yzC1bGGgt5Yx77D3g390iYwf4z3hV9aZYocxPeYL\n hJifL2SETtfKmumJEE5DatKS13",
        "X-Received": [
            "by 2002:a05:600c:350f:b0:485:4278:24fb with SMTP id\n 5b1f17b1804b1-487160afca2mr60589245e9.32.1774457099771;\n Wed, 25 Mar 2026 09:44:59 -0700 (PDT)",
            "by 2002:a05:600c:350f:b0:485:4278:24fb with SMTP id\n 5b1f17b1804b1-487160afca2mr60588475e9.32.1774457099040;\n Wed, 25 Mar 2026 09:44:59 -0700 (PDT)"
        ],
        "From": "Paolo Bonzini <pbonzini@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Stefan Weil <sw@weilnetz.de>,\n\tqemu-stable@nongnu.org",
        "Subject": "[PULL 02/19] tdx: fix use-after-free in tdx_fetch_cpuid",
        "Date": "Wed, 25 Mar 2026 17:44:36 +0100",
        "Message-ID": "<20260325164453.72127-3-pbonzini@redhat.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260325164453.72127-1-pbonzini@redhat.com>",
        "References": "<20260325164453.72127-1-pbonzini@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=170.10.129.124;\n envelope-from=pbonzini@redhat.com;\n helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001,\n SPF_PASS=-0.001 autolearn=unavailable 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": "This is mostly harmless right now because the \"if\" is never\nhit, but the code as written makes no sense.\n\nReported-by: Stefan Weil <sw@weilnetz.de>\nCc: qemu-stable@nongnu.org\nSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>\n---\n target/i386/kvm/tdx.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/target/i386/kvm/tdx.c b/target/i386/kvm/tdx.c\nindex 4cae99c281a..4714c9d514e 100644\n--- a/target/i386/kvm/tdx.c\n+++ b/target/i386/kvm/tdx.c\n@@ -848,7 +848,7 @@ static struct kvm_cpuid2 *tdx_fetch_cpuid(CPUState *cpu, int *ret)\n         r = tdx_vcpu_ioctl(cpu, KVM_TDX_GET_CPUID, 0, fetch_cpuid, &local_err);\n         if (r == -E2BIG) {\n             g_free(fetch_cpuid);\n-            size = fetch_cpuid->nent;\n+            size *= 2;\n         }\n     } while (r == -E2BIG);\n \n",
    "prefixes": [
        "PULL",
        "02/19"
    ]
}