Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216502/?format=api
{ "id": 2216502, "url": "http://patchwork.ozlabs.org/api/patches/2216502/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260326152733.344926-1-chan9yan9@gmail.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": "<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-devel/patch/20260326152733.344926-1-chan9yan9@gmail.com/mbox/", "series": [ { "id": 497616, "url": "http://patchwork.ozlabs.org/api/series/497616/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497616", "date": "2026-03-26T15:27:33", "name": "As reported in qemu-project/qemu#3324", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497616/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216502/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216502/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 (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-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 4fhT8p2g5jz1yGD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 03:03:38 +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 1w5nA8-0005WV-C4; Thu, 26 Mar 2026 12:02:24 -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 1w5mcb-0002tF-Ev\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 11:27:45 -0400", "from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435])\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-0005wd-Ux\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 11:27:45 -0400", "by mail-pf1-x435.google.com with SMTP id\n d2e1a72fcca58-829a9d08644so594209b3a.1\n for <qemu-devel@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=UoRHLErYXCyrrYy2OeJj8c/nUYOPjzhYZpn8sBIwu523ziIqG9KplsGglI9akc/s53\n iN36l9PGB1lI4SJQ4+2AXYQ3GBmWjV8z77yZ4P7kvk0LxyHL5LT3YyV96pq1rkbQ8eZQ\n e+ljfYNFKVGhq0cklwBcEMSwG0Bp+RvvExK4gm58iP/4jHvMHq8ZIxiSpopP7XEUYHzJ\n M3FFd78Vre3Rc86R4PbynjoAj9UZTnG5xNPrVspxL2hO3WG2OOaxEvS8MRQlK4euHy//\n MTZowVDZdOiB12OQVS5cXZOyeAiBCJ2SmpkdVrwmgjDU0YXCjt72ziR9itXvCV11Si34\n bekA==", "X-Gm-Message-State": "AOJu0YzPnoQpFhNEjnWziL1Q3HWp1mtHwYJz+Zfo69OO0lXEV7zrquaM\n QeDRJAOmw60XCQ9zQIHzFGo+CgbSo4z2q8C2FeeivfyeP0TybBGr4xeVcwtn26sQOrmQSw==", "X-Gm-Gg": "ATEYQzzgfuy+L0X56R587jDzlVM72t5ncwjR2EMxHwLStalC/ClijfiNBqhFIDDV/HS\n oSgoN5I68UxQNY9h5BFQtzhQjB3SvBdEu++yUE/zT/5d0Nmnnk7/rL8NcZYMduVCc9c8qhkxaJ/\n taZjBEm/lgMm18UaeiHs+rwZuamqsKugEAf2SxNWWvv+9pZTG7tNlG1FpqRwlPbXxqr3LlOkGwJ\n hQQJfjVDcQj4ey/il8IyA0bMUTFEhb/EoB0BLNYoRvnm98l8xvWesGkcU084iwcOJJNxIERNBxz\n jhSy9FY4fvYQwNRZa/vI+YIXKqcfmY6F0Q9tcB/V5JJqyofH8TKGh9e96gdVf46YBj6UQBxrp1T\n eqE/908cvJPLAsJuNCiPjZA2gjf28RO5LQOi02Y3H66cj4JrTDyO/+uANvNcNObJXtV8a0AwDXw\n FjDsO7XiThcr+gaZ4TcArga+EwrRNNGBFXblLZ7Zm8", "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::435;\n envelope-from=chan9yan9@gmail.com; helo=mail-pf1-x435.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=unavailable autolearn_force=no", "X-Spam_action": "no action", "X-Mailman-Approved-At": "Thu, 26 Mar 2026 12:02:08 -0400", "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": "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": [] }