Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2195113/?format=api
{ "id": 2195113, "url": "http://patchwork.ozlabs.org/api/patches/2195113/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260210133355.16093-4-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": "<20260210133355.16093-4-brian.cain@oss.qualcomm.com>", "list_archive_url": null, "date": "2026-02-10T13:33:53", "name": "[v3,3/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/20260210133355.16093-4-brian.cain@oss.qualcomm.com/mbox/", "series": [ { "id": 491673, "url": "http://patchwork.ozlabs.org/api/series/491673/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491673", "date": "2026-02-10T13:33:53", "name": "Handle some invalid encodings", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/491673/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2195113/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2195113/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=cenCmf9P;\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=isNjBOHc;\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 4f9MxH0ThKz1xtr\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 00:34:41 +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 1vpnsn-0005e2-LN; Tue, 10 Feb 2026 08:34:25 -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 1vpnsl-0005dj-QD\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 08:34:23 -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 1vpnsj-0001o0-Ni\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 08:34:23 -0500", "from pps.filterd (m0279869.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61AA9CJ41172867\n for <qemu-devel@nongnu.org>; Tue, 10 Feb 2026 13:34:20 GMT", "from mail-dy1-f197.google.com (mail-dy1-f197.google.com\n [74.125.82.197])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c7kftupev-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Tue, 10 Feb 2026 13:34:19 +0000 (GMT)", "by mail-dy1-f197.google.com with SMTP id\n 5a478bee46e88-2ba745f54c6so5133198eec.0\n for <qemu-devel@nongnu.org>; Tue, 10 Feb 2026 05:34:19 -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-2ba7e149c58sm2716162eec.26.2026.02.10.05.34.17\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 Feb 2026 05:34:17 -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 GPUiSXKwen3lJ7VamxwDEFzXupLyXqvuwOfovAsxzxc=; b=cenCmf9PEqGoI/ag\n n3OXdViCbmU2DoJsbzHCPUSZWSKYzEgXxX823dp3LFcP0j0ll4RBFt7kXqBsder9\n G7wobdfOZpRLGpT+WWRsFat+Zp17TbiM8ln19yV4aN3N3Q5nUhMUX2RSbqrcEmBv\n bYNBoMp5UMnjQwoKAu2BSLFYzYjgsrBcxijXYXEfyhda/5UXttsVpeiUioqM5iuU\n Z9ESXM3o0gMbikeIINLx4zfcsXYhGdenWM8/4oK1p8M/6VuvYgwZBcwIuKVbMinc\n GM2sMse4PUf5ohiWKmC5YlErUaWpQUwOjwXLSBA3iTlL5um91HnFvmKCDxdrH65s\n MIWGlw==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1770730459; x=1771335259; 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=GPUiSXKwen3lJ7VamxwDEFzXupLyXqvuwOfovAsxzxc=;\n b=isNjBOHck2j2laWH7x0K+jUkjtrSyB3d9WgX/7uOeoZWJe6B3lLRw9PxiwL5pX9BB8\n 1PO2UwedgPFktBiVwPMXhnZy5QQwlHAanHiPVe2EOTyrS4k8cN3kJX2rqcKZECGHMy0D\n 1PoTYEcqKVykxqswIcjZ/YDUQ/6w1gKJ6GdUKgtNv8AJ7MMeSKZ4GfMCCJHIuHPZymwa\n lBXm4cRi2Qb78D5HeCrvwjMi9SV53I/FeBxf6HiorSi+rNgjSBTO2U5eqAxsTkpP9xLK\n qOeQf6uGgkdJZLapoC3/mwe3TwvwzNceaMGXzlF1BYqC4PkvsuPEUnDTV5nkwJebIWU+\n bQaQ==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770730459; x=1771335259;\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=GPUiSXKwen3lJ7VamxwDEFzXupLyXqvuwOfovAsxzxc=;\n b=V0yDNtwedQbK2QA2S99DLbHvVS4KtMDHbub8MI82B2LZDI+/FxX6DME9AGGYNe0R1X\n XyvmuexcZksl90I3mUu19/6XZgn+SZSLBNXLb/hj3NUfEx0/JvhAJa/wZpuvSWIPYxd9\n psg5d63t+7GEmD+RI+V+ayzi0JCEiK9QvoMg6XflMs5kc/SozdYOpfiRksiH9jfzWtkQ\n cos4dF8E94+tso1SzMb6SsZ9yW+SKKtJm+J/56tJQukKeFYdR8fDDNsfCnTE9bLsL0Gf\n 5Jsk4mSSZPL3Pg0cVBwNaOsb3oSwl2dPtW38NmakKEbqk6gcko8pHsjTjL7ffktJR29P\n c2gw==", "X-Gm-Message-State": "AOJu0YzkdAvLUazRBAp539hcxlDkExIqR8+hHn5qSpkq4cZgDvrH4zuc\n q/OVQQgWoYYfJHsDiNKQ60XpPR5S7NFZV+M/uuHGBUiWhSfQ8AwJAYpGOtU/1nVYmSNlZ7rYWDR\n xLiNwZrRoblKqWgvHWa4kK5V3ENU2wMjk1ZAEXH8tSyZAMZU3BNonB5znvupuk+HCDA==", "X-Gm-Gg": "AZuq6aLncMveOaGOWpnOGh4+8mLXzToQXC4g3CxMz9JTfX9i34k+ee6c3zUGFRSy6LD\n ygfGjYgVKasiZPA5ueHlb1oZaKYffFvENTkxx2ZpCjmjsvrGga48keaGgkdJr857gLuYr7oJDFe\n GtL5xLtE1X2sLGXNxVcZ4ZqLcsdVIf+gQYLVuTP8JdH/l8aeQaoQKL87NY09IHpgPFiv0CCsf7U\n KAFZADwJhMs/29Riacby46sa3dQdrl/nXobLMFBSBfulw+XP7PcV9HBERKBmdpAj040Td07br/L\n Y5OBDg3vqrP76P/oNiZWGSseVECsHCgTzVk0LPmUWQemOzXHnrLX8VU1nvMdPteia/fOdUp42wu\n 2tkNehSJOtMjBpEF1GCfOiYSOQfKO1SCmoP4Y4FCal7qEh+B9Bp3SNu1cEMOfvy5G68Df6A==", "X-Received": [ "by 2002:a05:7300:c8d:b0:2ae:5bde:a5c5 with SMTP id\n 5a478bee46e88-2b8568311bcmr6489247eec.30.1770730458716;\n Tue, 10 Feb 2026 05:34:18 -0800 (PST)", "by 2002:a05:7300:c8d:b0:2ae:5bde:a5c5 with SMTP id\n 5a478bee46e88-2b8568311bcmr6489234eec.30.1770730458161;\n Tue, 10 Feb 2026 05:34:18 -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,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>", "Subject": "[PATCH v3 3/4] tests/tcg/hexagon: Handle SIGILL internally in\n invalid-slots test", "Date": "Tue, 10 Feb 2026 05:33:53 -0800", "Message-Id": "<20260210133355.16093-4-brian.cain@oss.qualcomm.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260210133355.16093-1-brian.cain@oss.qualcomm.com>", "References": "<20260210133355.16093-1-brian.cain@oss.qualcomm.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjEwMDExNCBTYWx0ZWRfX43pQALMuHlKi\n fxw23tZjEmryCjWAowj1BfVPApwXdCOEEC8v8LVeLRxdECWjDezftEJee+1wRwUyqTWyJup7CZT\n d5noqWBIEH9eZ4zo4C2lgtil8fXZzSkPHi5FQxCLnrlr5lfeQ5wi5GLC0dQOR/qwws8jSfxa/j9\n x+PcJmaXbUDRcfYKUSmtcTAFRBskg8MyPvO2TMmvKxeFJT6/ObgQf33c2WRAEa2583yUpI3cC2k\n MzEwdn+ZXx9tC2M9yrXj2WwPCoiLgYR4RdS5D8HFRhHd72QsIgxgsU5SpS3ccJ5tOKTwJoj5zH6\n iUUWavfQVyo9YnaSPyhLjsK0IyGnYf+9HSQthWyfI3DQ/m3pHoMglWL1W53i+XWfaARWiGcMGlO\n DUkSDdoJvp1HPMGHmZFBwJsSOIiQYZkOqwmHHpV8zdpBL/XfLXIzxl7/ek5OOpfQ5ZqHHpqL7qD\n OOtTT/b7+Sdsi/G99Lg==", "X-Proofpoint-ORIG-GUID": "l8AZOrP_juWl5SIsIUZvFx-iHmr4gAj1", "X-Authority-Analysis": "v=2.4 cv=XfuEDY55 c=1 sm=1 tr=0 ts=698b33db cx=c_pps\n a=Uww141gWH0fZj/3QKPojxA==: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=pGLkceISAAAA:8 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8\n a=F0Jt1ehG-eUF7qKHwFUA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22\n a=cvBusfyB2V15izCimMoJ:22", "X-Proofpoint-GUID": "l8AZOrP_juWl5SIsIUZvFx-iHmr4gAj1", "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-10_01,2026-02-10_02,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n clxscore=1015 adultscore=0 priorityscore=1501 lowpriorityscore=0\n impostorscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0\n bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound\n adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000\n definitions=main-2602100114", "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\nReviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>\nReviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>\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": [ "v3", "3/4" ] }