get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216499,
    "url": "http://patchwork.ozlabs.org/api/patches/2216499/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260326152733.344926-1-chan9yan9@gmail.com/",
    "project": {
        "id": 69,
        "url": "http://patchwork.ozlabs.org/api/projects/69/?format=api",
        "name": "QEMU powerpc development",
        "link_name": "qemu-ppc",
        "list_id": "qemu-ppc.nongnu.org",
        "list_email": "qemu-ppc@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260326152733.344926-1-chan9yan9@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-26T15:27:33",
    "name": "As reported in qemu-project/qemu#3324",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "650a42ea99d9e1144f4729ad1b84ab1046c1fa51",
    "submitter": {
        "id": 92979,
        "url": "http://patchwork.ozlabs.org/api/people/92979/?format=api",
        "name": "Zexiang Zhang",
        "email": "chan9yan9@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260326152733.344926-1-chan9yan9@gmail.com/mbox/",
    "series": [
        {
            "id": 497615,
            "url": "http://patchwork.ozlabs.org/api/series/497615/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/list/?series=497615",
            "date": "2026-03-26T15:27:33",
            "name": "As reported in qemu-project/qemu#3324",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497615/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216499/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216499/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-ppc-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 (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=mt8scnIw;\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-ppc-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 4fhT8J21sVz1yGD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 03:03:12 +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-ppc-bounces@nongnu.org>)\n\tid 1w5nAB-0005rY-S8; Thu, 26 Mar 2026 12:02:27 -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 <chan9yan9@gmail.com>)\n id 1w5mca-0002t5-AX\n for qemu-ppc@nongnu.org; Thu, 26 Mar 2026 11:27:44 -0400",
            "from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <chan9yan9@gmail.com>)\n id 1w5mcY-0005wb-Qh\n for qemu-ppc@nongnu.org; Thu, 26 Mar 2026 11:27:44 -0400",
            "by mail-pf1-x42c.google.com with SMTP id\n d2e1a72fcca58-829a27414a3so805443b3a.3\n for <qemu-ppc@nongnu.org>; Thu, 26 Mar 2026 08:27:42 -0700 (PDT)",
            "from localhost.localdomain ([36.33.26.5])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82c7d3f76e3sm3136924b3a.52.2026.03.26.08.27.37\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 08:27:40 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774538861; x=1775143661; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=L/XOeeZJbH562gwsN3ZvedpHu8ETHOSgikP+7Qk+gTY=;\n b=mt8scnIwOqXzAh2Yl8IunTQnTcjlLVqS8PgXIzRHjvVONrPnutijGjRUbPtzQCzB9A\n 1vjBF59nwTqx3bsstZmMG5jougl0r+kGMDTx6gGGX3i8KBEuEQP5Q6CyCDCdgLiNzDJ6\n yrPzexo/Me2mponq6ZSM3hljX0hzIMcRqwe5LVeTNwQVL2+Lg66VZqWhRJ7ZJppCaeNZ\n sqIPTgrXJpy/CHu5P3f3DcSjGAL8LtCKUbg4gfx7EK3O78TU3Wa23yJQYiexCotgswsV\n JjzDnDdDv8MpnWeirIZjr5U8UycDfMwzNOxvi8eVV8LBgDMAB1LHagJ3QeLqZ1+7fHmi\n PtFQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774538861; x=1775143661;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=L/XOeeZJbH562gwsN3ZvedpHu8ETHOSgikP+7Qk+gTY=;\n b=eza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n b0gD6OK9MuCHlpY5bVEAbUTRqiYyNdSL9NAZjkX0bW",
        "X-Received": "by 2002:a05:6a00:a21e:b0:82c:249d:d84f with SMTP id\n d2e1a72fcca58-82c6df87c4bmr7286991b3a.37.1774538861326;\n Thu, 26 Mar 2026 08:27:41 -0700 (PDT)",
        "From": "Zexiang Zhang <chan9yan9@gmail.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "adityag@linux.ibm.com, Nicholas Piggin <npiggin@gmail.com>,\n Harsh Prateek Bora <harshpb@linux.ibm.com>,\n qemu-ppc@nongnu.org (open list:sPAPR (pseries)),\n kiki <Chan9Yan9@gmail.com>, Zexiang Zhang <chan9yan9@gmail.com>",
        "Subject": "[PATCH] As reported in qemu-project/qemu#3324",
        "Date": "Thu, 26 Mar 2026 23:27:33 +0800",
        "Message-Id": "<20260326152733.344926-1-chan9yan9@gmail.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::42c;\n envelope-from=chan9yan9@gmail.com; helo=mail-pf1-x42c.google.com",
        "X-Spam_score_int": "-17",
        "X-Spam_score": "-1.8",
        "X-Spam_bar": "-",
        "X-Spam_report": "(-1.8 / 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 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-Mailman-Approved-At": "Thu, 26 Mar 2026 12:02:26 -0400",
        "X-BeenThere": "qemu-ppc@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<qemu-ppc.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-ppc>",
        "List-Post": "<mailto:qemu-ppc@nongnu.org>",
        "List-Help": "<mailto:qemu-ppc-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "From: kiki <Chan9Yan9@gmail.com>\n\nA malformed IVE value can result in an invalid server field being\npassed to icp_irq(). The function assumes the server id is valid and\nmay access invalid state otherwise, potentially leading to a crash.\n\nFix this by validating the server id before using it and ignoring\ninvalid values.\n\nReported-by: Zexiang Zhang <chan9yan9@gmail.com>\nSigned-off-by: Zexiang Zhang <chan9yan9@gmail.com>\n---\n hw/intc/xics.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/hw/intc/xics.c b/hw/intc/xics.c\nindex 1d40c4386d..25c7b0c8a5 100644\n--- a/hw/intc/xics.c\n+++ b/hw/intc/xics.c\n@@ -222,6 +222,13 @@ void icp_irq(ICSState *ics, int server, int nr, uint8_t priority)\n \n     trace_xics_icp_irq(server, nr, priority);\n \n+    if (!icp) {\n+        qemu_log_mask(LOG_GUEST_ERROR, \"XICS: invalid server %d for IRQ 0x%x\\n\",\n+                      server, nr);\n+        ics_reject(ics, nr);\n+        return;\n+    }\n+\n     if ((priority >= CPPR(icp))\n         || (XISR(icp) && (icp->pending_priority <= priority))) {\n         ics_reject(ics, nr);\n",
    "prefixes": []
}