Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2228172/?format=api
{ "id": 2228172, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228172/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260425155140.50186-14-deller@kernel.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/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": "" }, "msgid": "<20260425155140.50186-14-deller@kernel.org>", "date": "2026-04-25T15:51:39", "name": "[PULL,13/14] linux-user: Use abi_int for imr_ifindex in ip_mreqn struct", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "3da09a37f0f35ab2a1c3ec98b9461d47d949804c", "submitter": { "id": 87076, "url": "http://patchwork.ozlabs.org/api/1.1/people/87076/?format=api", "name": "Helge Deller", "email": "deller@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260425155140.50186-14-deller@kernel.org/mbox/", "series": [ { "id": 501448, "url": "http://patchwork.ozlabs.org/api/1.1/series/501448/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501448", "date": "2026-04-25T15:51:29", "name": "[PULL,01/14] MAINTAINERS: Add myself as maintainer for linux-user", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501448/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228172/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228172/checks/", "tags": {}, "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=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=uVUgxrIq;\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=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.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 4g2vVd4XB6z1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 01:52:57 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wGfIn-00086m-Lg; Sat, 25 Apr 2026 11:52:17 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <deller@kernel.org>) id 1wGfIi-000844-2m\n for qemu-devel@nongnu.org; Sat, 25 Apr 2026 11:52:12 -0400", "from tor.source.kernel.org ([172.105.4.254])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <deller@kernel.org>) id 1wGfIg-00017d-7A\n for qemu-devel@nongnu.org; Sat, 25 Apr 2026 11:52:11 -0400", "from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by tor.source.kernel.org (Postfix) with ESMTP id A687D600CB;\n Sat, 25 Apr 2026 15:52:08 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id EDC63C2BCB0;\n Sat, 25 Apr 2026 15:52:06 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1777132328;\n bh=srPndtwvrTUYJ7OM9qm9DxiqBEi9dXm+PHtlQXIamDI=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=uVUgxrIqCXvRTxOCZubUbaR2+OGtt/yhIBc/0TJc0laKxyuQh1uIuXOTrA0QTbIF2\n dpsjt+4xYPMsW/USokswPOvHgZbuiP/jnLwIpdYdRVOaNYAj39wSXucHF4OnyMGDuF\n 5PG8aZaIiwNPxOboi+Yw1IhoJwhbNHsPlWB91K49yFKDnlYOZiBXQAie0qADOzWlzy\n 5oZgoMW2WdFbDHW+IUYF/pYaiKRBlGMev46TP2l7d2egPZfKaIPIE/ylkDyPwIQve+\n tbKYkb4I3Bc/aIN+d3yUC4eCxnqOF7N2WTwg487olB7kTqkf/Osh1+x9cboB5CRBPY\n 4El9FqU4ohBEA==", "From": "Helge Deller <deller@kernel.org>", "To": "qemu-devel@nongnu.org", "Cc": "Helge Deller <deller@gmx.de>, Jiaxun Yang <jiaxun.yang@flygoat.com>,\n Laurent Vivier <laurent@vivier.eu>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>, =?utf-8?q?Philippe_Mathieu-?=\n\t=?utf-8?q?Daud=C3=A9?= <philmd@linaro.org>", "Subject": "[PULL 13/14] linux-user: Use abi_int for imr_ifindex in ip_mreqn\n struct", "Date": "Sat, 25 Apr 2026 17:51:39 +0200", "Message-ID": "<20260425155140.50186-14-deller@kernel.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260425155140.50186-1-deller@kernel.org>", "References": "<20260425155140.50186-1-deller@kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=172.105.4.254; envelope-from=deller@kernel.org;\n helo=tor.source.kernel.org", "X-Spam_score_int": "-20", "X-Spam_score": "-2.1", "X-Spam_bar": "--", "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n SPF_HELO_NONE=0.001, 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": "From: Helge Deller <deller@gmx.de>\n\nPeter Hartley noticed, that in the qemu code the imr_ifindex member of\nstruct target_ip_mreq needs to be of type \"int\" instead of \"long\", which\nis what the Linux kernel uses on all architectures.\n\nAdjust the type accordingly, and add a QEMU_BUILD_BUG_ON() checker to\nprevent such issues in the future.\n\nThis change should fix multicast issues when using hosts and guests with\ndifferent endianess or bit size.\n\nReported-by: Peter Hartley <peter@talesfromthearmchair.net>\nResolves: https://gitlab.com/qemu-project/qemu/-/work_items/2553\nSigned-off-by: Helge Deller <deller@gmx.de>\n---\n linux-user/syscall.c | 2 ++\n linux-user/syscall_defs.h | 2 +-\n 2 files changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/linux-user/syscall.c b/linux-user/syscall.c\nindex 910a4da0a6..4594909242 100644\n--- a/linux-user/syscall.c\n+++ b/linux-user/syscall.c\n@@ -2161,6 +2161,8 @@ static abi_long do_setsockopt(int sockfd, int level, int optname,\n \n QEMU_BUILD_BUG_ON(sizeof(struct ip_mreq) !=\n sizeof(struct target_ip_mreq));\n+ QEMU_BUILD_BUG_ON(sizeof(struct ip_mreqn) !=\n+ sizeof(struct target_ip_mreqn));\n \n if (optname == IP_MULTICAST_IF) {\n min_size = sizeof(struct in_addr);\ndiff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h\nindex 6967306be4..5799769f83 100644\n--- a/linux-user/syscall_defs.h\n+++ b/linux-user/syscall_defs.h\n@@ -210,7 +210,7 @@ struct target_ip_mreq {\n struct target_ip_mreqn {\n struct target_in_addr imr_multiaddr;\n struct target_in_addr imr_address;\n- abi_long imr_ifindex;\n+ abi_int imr_ifindex;\n };\n \n struct target_ip_mreq_source {\n", "prefixes": [ "PULL", "13/14" ] }