get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217709,
    "url": "http://patchwork.ozlabs.org/api/patches/2217709/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260330115017.256211-8-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": "<20260330115017.256211-8-pbonzini@redhat.com>",
    "list_archive_url": null,
    "date": "2026-03-30T11:50:11",
    "name": "[PULL,07/12] lsi53c895a: keep a reference to the device while SCRIPTS execute",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1d479b90c5edf65b2ba2a8758a8e49d494d1d8ab",
    "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/20260330115017.256211-8-pbonzini@redhat.com/mbox/",
    "series": [
        {
            "id": 498008,
            "url": "http://patchwork.ozlabs.org/api/series/498008/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498008",
            "date": "2026-03-30T11:50:04",
            "name": "[PULL,01/12] meson.build: remove i386-softmmu WHPX support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498008/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217709/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217709/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=PJpGkRk6;\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=Ci0t0xDI;\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 4fkqQ60xsnz1yG8\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 22:53:18 +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 1w7BAd-0005NU-MF; Mon, 30 Mar 2026 07:52:42 -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 1w7B8y-0003fF-Dp\n for qemu-devel@nongnu.org; Mon, 30 Mar 2026 07:51:03 -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 1w7B8s-0005wq-Dl\n for qemu-devel@nongnu.org; Mon, 30 Mar 2026 07:50:53 -0400",
            "from mail-wr1-f71.google.com (mail-wr1-f71.google.com\n [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-407-2ax8G-3fMhS-Xmi3FcN4aQ-1; Mon, 30 Mar 2026 07:50:39 -0400",
            "by mail-wr1-f71.google.com with SMTP id\n ffacd0b85a97d-43d034589d0so410910f8f.1\n for <qemu-devel@nongnu.org>; Mon, 30 Mar 2026 04:50:39 -0700 (PDT)",
            "from [192.168.10.48] ([151.49.85.67])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43cf24707f2sm19331948f8f.26.2026.03.30.04.50.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 30 Mar 2026 04:50:34 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774871440;\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=wJNY+f2TrbCPXZjzOHz0yYvcyj3qPpUKW0IeXPo8WUg=;\n b=PJpGkRk6m+ckCjm7v4iGcNaSWOiiFSh4yDcvyRiChekIUmx5yOYOLX/glBBwDSU8UZlWfS\n VGma9CNEGkd5mDuBBegzgJyIkHZzGMUD/9khEjkR3ThUQsd2woerE8Na++hH4/hF1d97cu\n nLNx9G4KegVu4R8iiPIweoBZiZQSTLM=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1774871438; x=1775476238; 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=wJNY+f2TrbCPXZjzOHz0yYvcyj3qPpUKW0IeXPo8WUg=;\n b=Ci0t0xDISiukipZsqHs56De+QYjUVZSHGQvWnYBk+eZCLwxGzS8F/NOzxhdxFb17Yg\n 2udnfpPn/+m7zEC+O+h4+ZdPBv1CVbq+YR2q/NYAqBr7bV5XGraYw2PwxXooucZjCkFQ\n PChqh044re1axdrO+yyjsW30zViK1uXMCluYWu5JdRudO32YtEKbnE1p1aPlZRc9llbK\n cna/PvBGX8oa5IfeLR/NzyFBtlQ6uSDl7+IpJO6FFtjJBqVcc6x3h5MhV+RbDo4kuTk9\n JbsM2MauFHdzzEee8Y8GPx+tt25NrL26vgaJbnfrMSBQIWjhRxAYH0NRjPQweJ+zhvug\n mnkg=="
        ],
        "X-MC-Unique": "2ax8G-3fMhS-Xmi3FcN4aQ-1",
        "X-Mimecast-MFC-AGG-ID": "2ax8G-3fMhS-Xmi3FcN4aQ_1774871438",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774871438; x=1775476238;\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=wJNY+f2TrbCPXZjzOHz0yYvcyj3qPpUKW0IeXPo8WUg=;\n b=Ljd7Ke101qhZ/P8GlGx0iEfrTMmnvbQ7GdAg+CvQ0kISLesayUzarEeWt8ogOAI3IL\n jxHgZo5iTytNPCn9VS1wJL6ByB3UHi+crcMCgfKR+6+EHCsErPVnTwSlMVlEYQbJd/uA\n gDYzIQHUzUpIX0DF0RVSmnn4MFrIOJQw4+5fedsM6Zr9Fzm5NELk0eApRUwn71IfitY+\n /cRf1qVK2pFxOgx/AJmNXRFiPV8IBNbu/hk623LfcNSDeZ9xx/lLxp3Z20prwT2TXghI\n /4vnK0dMXC0OL/uwP0a6xjXslYIQkSHFC2pO51yw6amIw0gPu+e1vcAYcRBXLUKhM1Wp\n nhkw==",
        "X-Gm-Message-State": "AOJu0YyVkaDbQEHXnunDYGXZzylvohRdlDyvJsl/w2ObMJHsaRlYDnBQ\n lqjGo00tzBR/+oFrSNxmGRZZcsoQagJQCNJKk7FgVYyfiCg2ioBy48o9RP75mYk/nyij7HWlU8s\n I5a05zcW2E0B4FISdXxgWzwl7M8EAQgVesp/6sMmAKqGGxeR1GNYvNy0+r51AJqsuaYAQG3zixd\n ncI2xut5DLq9DcdU5hmhBU9mzh3F9IRlr4bvwxyCAw",
        "X-Gm-Gg": "ATEYQzyyA5E38BZKKI21A5XOGEnHTGMG5pD6F9ZlmsEfO64lDfcFgxThpKP2FooD6yA\n MDfY8LiHrnzFlSDE/dQ0CeQGraH+cg2NXQbozWPsZN2pN0n98jojsCgIjsnn3zwENLrtUguRnjq\n 1DCq3LPBdCt23PhkSipSKI7iVarz8IQd80Ti9e4+c0ASMFpP6wPhXWmFsdm50U77bXAvptMLiHK\n eRXJ3ZsvjoEkbzjCb4Www1g+kbI11TNgnYwLPovw39CO3RLj22pFzcnAP7P8T6+arlHVOIIs+0U\n 7AeEZZZB3JCqAMsItMD7NiflxMJGwCMApmWlSXvTlpWbNb6JNw9SqSxn9XTa1jP5YZUwGzeTHvi\n +byD94ur5jsZXseWIs+r22+uPU2r6WzAfIAwK0zX+oYNp8bwUXqsM4K0+wImajvWGPUlKCaBVUo\n fQdaOdeTY2dAq3jbtGggGyS3Dx",
        "X-Received": [
            "by 2002:a5d:64e8:0:b0:43c:fde6:2126 with SMTP id\n ffacd0b85a97d-43cfde62295mr7316034f8f.37.1774871437534;\n Mon, 30 Mar 2026 04:50:37 -0700 (PDT)",
            "by 2002:a5d:64e8:0:b0:43c:fde6:2126 with SMTP id\n ffacd0b85a97d-43cfde62295mr7315970f8f.37.1774871436940;\n Mon, 30 Mar 2026 04:50:36 -0700 (PDT)"
        ],
        "From": "Paolo Bonzini <pbonzini@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "qemu-stable@nongnu.org",
        "Subject": "[PULL 07/12] lsi53c895a: keep a reference to the device while SCRIPTS\n execute",
        "Date": "Mon, 30 Mar 2026 13:50:11 +0200",
        "Message-ID": "<20260330115017.256211-8-pbonzini@redhat.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260330115017.256211-1-pbonzini@redhat.com>",
        "References": "<20260330115017.256211-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": "-5",
        "X-Spam_score": "-0.6",
        "X-Spam_bar": "/",
        "X-Spam_report": "(-0.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.54,\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_VALIDITY_CERTIFIED_BLOCKED=1,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=1, SPF_HELO_PASS=-0.001,\n 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": "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": "SCRIPTS execution can trigger PCI device unplug and consequently\na use-after-free after the unplug returns.  Avoid this by keeping\nthe device alive.\n\nResolves: https://gitlab.com/qemu-project/qemu/-/work_items/3090\nCc: qemu-stable@nongnu.org\nSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>\n---\n hw/scsi/lsi53c895a.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c\nindex 6f43e500b3c..90643b26ab8 100644\n--- a/hw/scsi/lsi53c895a.c\n+++ b/hw/scsi/lsi53c895a.c\n@@ -1163,6 +1163,7 @@ static void lsi_execute_script(LSIState *s)\n         s->waiting = LSI_NOWAIT;\n     }\n \n+    object_ref(s);\n     reentrancy_level++;\n \n     s->istat1 |= LSI_ISTAT1_SRUN;\n@@ -1182,6 +1183,7 @@ again:\n         s->waiting = LSI_WAIT_SCRIPTS;\n         lsi_scripts_timer_start(s);\n         reentrancy_level--;\n+        object_unref(s);\n         return;\n     }\n     insn = read_dword(s, s->dsp);\n@@ -1630,6 +1632,7 @@ again:\n     trace_lsi_execute_script_stop();\n \n     reentrancy_level--;\n+    object_unref(s);\n }\n \n static uint8_t lsi_reg_readb(LSIState *s, int offset)\n",
    "prefixes": [
        "PULL",
        "07/12"
    ]
}