get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194249,
    "url": "http://patchwork.ozlabs.org/api/patches/2194249/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260207180632.1042754-5-brian.cain@oss.qualcomm.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": "<20260207180632.1042754-5-brian.cain@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-02-07T18:06:32",
    "name": "[v2,4/4] tests/tcg/hexagon: Handle SIGILL internally in invalid-slots test",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "db3aeac0b8b0bbd3a2b687586a793dfa3f189171",
    "submitter": {
        "id": 89839,
        "url": "http://patchwork.ozlabs.org/api/people/89839/?format=api",
        "name": "Brian Cain",
        "email": "brian.cain@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260207180632.1042754-5-brian.cain@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 491391,
            "url": "http://patchwork.ozlabs.org/api/series/491391/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491391",
            "date": "2026-02-07T18:06:28",
            "name": "Handle some invalid encodings",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/491391/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194249/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194249/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=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=jnun3aeC;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=YS3/MiTI;\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 4f7f895qyWz1xvD\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 05:08:09 +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 1vomi5-0001UK-BB; Sat, 07 Feb 2026 13:07:09 -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 <brian.cain@oss.qualcomm.com>)\n id 1vomi1-0001U8-6l\n for qemu-devel@nongnu.org; Sat, 07 Feb 2026 13:07:06 -0500",
            "from mx0b-0031df01.pphosted.com ([205.220.180.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <brian.cain@oss.qualcomm.com>)\n id 1vomhv-0005Lq-5p\n for qemu-devel@nongnu.org; Sat, 07 Feb 2026 13:07:04 -0500",
            "from pps.filterd (m0279868.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 6174dYmK1051289\n for <qemu-devel@nongnu.org>; Sat, 7 Feb 2026 18:06:55 GMT",
            "from mail-dy1-f199.google.com (mail-dy1-f199.google.com\n [74.125.82.199])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c5xj1938w-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Sat, 07 Feb 2026 18:06:54 +0000 (GMT)",
            "by mail-dy1-f199.google.com with SMTP id\n 5a478bee46e88-2b866e72c00so474811eec.1\n for <qemu-devel@nongnu.org>; Sat, 07 Feb 2026 10:06:54 -0800 (PST)",
            "from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com.\n [129.46.96.20]) by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2b855c63152sm4002328eec.25.2026.02.07.10.06.52\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 07 Feb 2026 10:06:52 -0800 (PST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n JHhQq6zjjk1gW27nuetaXaeVBGetUzLOuDVqFptfOCA=; b=jnun3aeCuruGz43+\n DQwgtUbeeSfGO7/Iry86yDsCLhZE8GXeeO3ysXc0EilyAqwFfqG2+sW18oqvNZAW\n 1+vCq8RL/06yozCpZZ2SbcPEvhJB6kEoli1Qz4nIWU6vFQvsLByRUtQVqYHqgofF\n ebiIGwVvEaIc3LRZ4zYJx1BievKGXNI674peLq7e2LRmYB0LW/ZREvJwIuvo8hwS\n vRszy91wV1gO5TAx1BRL//b+GpPR6CcTX+wqiEPQK/TQU/I8Do6s0lR8IUSPgWzm\n rPn/epH48NFUKWglJ/8IbIbD5hZ82z+G7OEAvVBxEtHfrDfDlFAGOdQ0hIbRNvOy\n 5EU6UQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1770487614; x=1771092414; 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=JHhQq6zjjk1gW27nuetaXaeVBGetUzLOuDVqFptfOCA=;\n b=YS3/MiTI53lHOSdnlUKIFPTpZZCQndLwckQbbqT+h+xRRCa2SO2qWJmcqcIQLurUKq\n i8vG59g1lhNrpiyMAa+MVfxjhzOzSKYIIBlRIjgThFDWlC8g63F/0FmKwXZ6d0wN+vQW\n 9TLtXklrxrqOws8T1uaCX4w23Bel8uF25lBVMTEpGHBINbvKwGAf5Qk+HppZRFRL4tdO\n fiCgY9CMjLT4LtDAKI+Rvre+D+ZM4eof6cXpcP3ktH6tzE4VcTmzQw7gwsH6nEbY4hx2\n /OaoisbeueSfbcD0qr7bnLzMK7BqyJtiwJpV5s4rdQvQe8foANFpa3QPRyeYSStr309s\n 9oYw=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770487614; x=1771092414;\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=JHhQq6zjjk1gW27nuetaXaeVBGetUzLOuDVqFptfOCA=;\n b=gXmj86ETzochOr+HG+/t/WL6yj2H83pWk1WtHNNDIlMU4/7yo6weBzXLHUEyhMp8No\n 0ob84dgf8ji0qzemtcEbLZ+7hf76OLy9zaxWNDBVhWofI0+fnNl+R+NNyAsR8RYZHGeH\n Hdw90Y8KSMTf+eLP5YmKZsrHYu4oifEGj1KmhTRuzEJAEvfAoFs8yI6m+cQ/rlBSdxDD\n R9h3psgT6bQ2YknclKgx3MSIPRDPqw4kGcU4TVhv7OaQEFzpO/pKRju549d/raiv8Dv6\n iFh5uqd/jNQWHhcLOC+yMMATtTfq0lb8kCGkOIVZVRErN4VKab4gqvxFQLsVX3J9wSqS\n lzqw==",
        "X-Gm-Message-State": "AOJu0YxS2evHzelPDknl2S+i2QXnk3WGrxuVBB8SOpVPqTZKgWiSF0me\n 1QNIUhVA1W9qGZqenwKCDARGbxmqKhwH+mtxZQWzgd2mh8QV4Iwke5BT4eZzKYXEbiTn9+WIevP\n fRaVRMMS7Odj1dA5k3jZDcTBCOKAqeoKETJuTdISgNhlLDuwinHJ42sjNPe2F8PVozg==",
        "X-Gm-Gg": "AZuq6aI/+akQu3lGrjVp0p/xU022m0EKc4odYDvy9J1YP5ql6V4aP3CJrOI/DOHhajk\n 68Ys+R1Qd40f/Otz9cSJ0nZt0T9vw2OiobKexnbxkFZFyWVdL4yTPNcS2SpC/Rqh4d2E1ZiO1oP\n XTuI8bHI0gaQ7t8eFuECc8Qc7F+ttbDe9w7hmvp7JCkLzaBgtdQJ6ni/r+DVXmOotNwykY/zj2K\n 49y9exQYlrWMDYW3yFyvbW4TCEpNe0wOqVF6DnBtVC1+VFRTICzNEZJcPVUWIJmhrkz97RTkCtV\n UounufUEMns9k3+2zdaaVAK0+0i5E5aPV5Ad3wQhbTZ7N8pW1Lnj2um29MZ7OdKOJyfnYG/S5+P\n f2cSh+bcVVj1MLYheY34lOyRWIGGUXFISn8gPczerK/Y8qJBLmBckYOte7g==",
        "X-Received": [
            "by 2002:a05:7301:9bc6:b0:2b7:f0a0:c195 with SMTP id\n 5a478bee46e88-2b856830522mr3218967eec.31.1770487613791;\n Sat, 07 Feb 2026 10:06:53 -0800 (PST)",
            "by 2002:a05:7301:9bc6:b0:2b7:f0a0:c195 with SMTP id\n 5a478bee46e88-2b856830522mr3218960eec.31.1770487613209;\n Sat, 07 Feb 2026 10:06:53 -0800 (PST)"
        ],
        "From": "Brian Cain <brian.cain@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "brian.cain@oss.qualcomm.com, ltaylorsimpson@gmail.com, alex@alexrp.com",
        "Subject": "[PATCH v2 4/4] tests/tcg/hexagon: Handle SIGILL internally in\n invalid-slots test",
        "Date": "Sat,  7 Feb 2026 10:06:32 -0800",
        "Message-Id": "<20260207180632.1042754-5-brian.cain@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260207180632.1042754-1-brian.cain@oss.qualcomm.com>",
        "References": "<20260207180632.1042754-1-brian.cain@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "X-Proofpoint-GUID": "Ge683moFqg7ndnEpiMF54ybC7JcldLZQ",
        "X-Proofpoint-ORIG-GUID": "Ge683moFqg7ndnEpiMF54ybC7JcldLZQ",
        "X-Authority-Analysis": "v=2.4 cv=F/tat6hN c=1 sm=1 tr=0 ts=69877f3e cx=c_pps\n a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22\n a=mDV3o1hIAAAA:8 a=EUspDBNiAAAA:8 a=F0Jt1ehG-eUF7qKHwFUA:9 a=QEXdDO2ut3YA:10\n a=scEy_gLbYbu1JhEsrz4S:22",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjA3MDE0OSBTYWx0ZWRfXyMW4wHKFd8Uu\n jkq8gjUWcOhMWifYIOZxHkRkEHsFWmKqsMf5xF36Y5LK8qCWeC49AOnKIw2xQDJ6r3qz0YV5vYM\n H9jOeXvPpsLIoZbQ5Gq2S6oTk3dl4o8jVWzilfPqffTldj2CuiDLA5LFdY9kf3TMt3MpNeghyh/\n iou5MnI5lMKltdZ3ut4qq8otvCbZVhxd+xDUa38M2kFg+/HZZdkwABKI71tFnWw3uqeaTozO8tc\n UFGKRcR5+e/Oz7A0HKXDlLhvUHg+Iz/YZv5/LQGnSwBMiGfPRblYPmHacpzbKE+lSPmeoxJf+Rj\n nwpbNRhscGO8DZKdD3WadTzb5htaQ2VIxMxotVWpVjt5vMMHD3orQQp4AqrWrsT9CKHrhfJVV7z\n w0MBm1/j3BN6aGbIs0yDkDt5tf+mUlnXBvrutQK1HxUCMb8/poeXADXr8bDeBQShaDMBXlxVyvt\n Z9OLGUojPNiHGDblGsg==",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-06_05,2026-02-05_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n bulkscore=0 adultscore=0 clxscore=1015 malwarescore=0 priorityscore=1501\n suspectscore=0 spamscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602070149",
        "Received-SPF": "pass client-ip=205.220.180.131;\n envelope-from=brian.cain@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com",
        "X-Spam_score_int": "-27",
        "X-Spam_score": "-2.8",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.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 RCVD_IN_DNSWL_LOW=-0.7, 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": "Rewrite invalid-slots.c to catch and verify SIGILL using a sigaction\nhandler that modifies the ucontext, matching the pattern used by\ninvalid-encoding.c.\n\nSigned-off-by: Brian Cain <brian.cain@oss.qualcomm.com>\n---\n tests/tcg/hexagon/invalid-slots.c | 76 ++++++++++++++++++++++++-------\n tests/tcg/hexagon/Makefile.target |  6 ---\n 2 files changed, 59 insertions(+), 23 deletions(-)",
    "diff": "diff --git a/tests/tcg/hexagon/invalid-slots.c b/tests/tcg/hexagon/invalid-slots.c\nindex 366ce4f42f..607027f314 100644\n--- a/tests/tcg/hexagon/invalid-slots.c\n+++ b/tests/tcg/hexagon/invalid-slots.c\n@@ -1,29 +1,71 @@\n /*\n- *  Copyright(c) 2023 Qualcomm Innovation Center, Inc. All Rights Reserved.\n+ * Test that invalid slot assignments are properly rejected.\n  *\n- *  This program is free software; you can redistribute it and/or modify\n- *  it under the terms of the GNU General Public License as published by\n- *  the Free Software Foundation; either version 2 of the License, or\n- *  (at your option) any later version.\n- *\n- *  This program is distributed in the hope that it will be useful,\n- *  but WITHOUT ANY WARRANTY; without even the implied warranty of\n- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n- *  GNU General Public License for more details.\n- *\n- *  You should have received a copy of the GNU General Public License\n- *  along with this program; if not, see <http://www.gnu.org/licenses/>.\n+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n  */\n \n+#include <assert.h>\n+#include <signal.h>\n+#include <stdio.h>\n+#include <stdlib.h>\n+#include <string.h>\n+#include <unistd.h>\n+\n+static void *resume_pc;\n+\n+static void handle_sigill(int sig, siginfo_t *info, void *puc)\n+{\n+    ucontext_t *uc = (ucontext_t *)puc;\n+\n+    if (sig != SIGILL) {\n+        _exit(EXIT_FAILURE);\n+    }\n+\n+    uc->uc_mcontext.r0 = SIGILL;\n+    uc->uc_mcontext.pc = (unsigned long)resume_pc;\n+}\n+\n char mem[8] __attribute__((aligned(8)));\n \n-int main()\n+/*\n+ * Invalid packet with 2 instructions at slot 0:\n+ * - Word 0: 0xa1804100 = memw(r0) = r1\n+ * - Word 1: 0x28032804 = { r3 = #0; r4 = #0 }\n+ *\n+ * This should raise SIGILL due to the invalid slot assignment.\n+ */\n+static int test_invalid_slots(void)\n {\n+    int sig;\n+\n     asm volatile(\n+        \"r0 = #0\\n\"\n+        \"r1 = ##1f\\n\"\n+        \"memw(%1) = r1\\n\"\n         \"r0 = #mem\\n\"\n-        /* Invalid packet (2 instructions at slot 0): */\n         \".word 0xa1804100\\n\" /* { memw(r0) = r1;      */\n         \".word 0x28032804\\n\" /*   r3 = #0; r4 = #0 }  */\n-        : : : \"r0\", \"r3\", \"r4\", \"memory\");\n-    return 0;\n+        \"1:\\n\"\n+        \"%0 = r0\\n\"\n+        : \"=r\"(sig)\n+        : \"r\"(&resume_pc)\n+        : \"r0\", \"r1\", \"r3\", \"r4\", \"memory\");\n+\n+    return sig;\n+}\n+\n+int main()\n+{\n+    struct sigaction act;\n+\n+    memset(&act, 0, sizeof(act));\n+    act.sa_sigaction = handle_sigill;\n+    act.sa_flags = SA_SIGINFO;\n+    assert(sigaction(SIGILL, &act, NULL) == 0);\n+\n+    assert(test_invalid_slots() == SIGILL);\n+\n+    puts(\"PASS\");\n+    return EXIT_SUCCESS;\n }\ndiff --git a/tests/tcg/hexagon/Makefile.target b/tests/tcg/hexagon/Makefile.target\nindex 16669e04a8..d64aeba090 100644\n--- a/tests/tcg/hexagon/Makefile.target\n+++ b/tests/tcg/hexagon/Makefile.target\n@@ -54,12 +54,6 @@ HEX_TESTS += invalid-slots\n HEX_TESTS += invalid-encoding\n HEX_TESTS += unaligned_pc\n \n-run-and-check-exception = $(call run-test,$2,$3 2>$2.stderr; \\\n-\ttest $$? -eq 1 && grep -q \"exception $(strip $1)\" $2.stderr)\n-\n-run-invalid-slots: invalid-slots\n-\t$(call run-and-check-exception, 0x15, $@, $(QEMU) $(QEMU_OPTS) $<)\n-\n HEX_TESTS += test_abs\n HEX_TESTS += test_bitcnt\n HEX_TESTS += test_bitsplit\n",
    "prefixes": [
        "v2",
        "4/4"
    ]
}