Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2233170/?format=api
{ "id": 2233170, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2233170/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505201324.932323-1-peter.maydell@linaro.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": "<20260505201324.932323-1-peter.maydell@linaro.org>", "date": "2026-05-05T20:13:24", "name": "net: mark struct ip6_header as QEMU_PACKED", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "497c4ae23b18ef23b538045a3e0c49d8b7c398b7", "submitter": { "id": 5111, "url": "http://patchwork.ozlabs.org/api/1.1/people/5111/?format=api", "name": "Peter Maydell", "email": "peter.maydell@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505201324.932323-1-peter.maydell@linaro.org/mbox/", "series": [ { "id": 502894, "url": "http://patchwork.ozlabs.org/api/1.1/series/502894/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502894", "date": "2026-05-05T20:13:24", "name": "net: mark struct ip6_header as QEMU_PACKED", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502894/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2233170/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2233170/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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=JdlgvYEV;\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 4g98qd15PBz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 06:14:19 +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 1wKM96-0005nz-7u; Tue, 05 May 2026 16:13:32 -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 <peter.maydell@linaro.org>)\n id 1wKM94-0005mg-8s\n for qemu-devel@nongnu.org; Tue, 05 May 2026 16:13:30 -0400", "from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wKM91-0006gS-LL\n for qemu-devel@nongnu.org; Tue, 05 May 2026 16:13:29 -0400", "by mail-wm1-x32c.google.com with SMTP id\n 5b1f17b1804b1-48d102471a4so24083415e9.2\n for <qemu-devel@nongnu.org>; Tue, 05 May 2026 13:13:27 -0700 (PDT)", "from lanath.. (wildly.archaic.org.uk. [81.2.115.145])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a81ed69fasm497360205e9.3.2026.05.05.13.13.24\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 05 May 2026 13:13:25 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1778012006; x=1778616806; 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=3bT1N3L6mxkj0r/8gWcaM12TxdrLt6HiffbP0SCzhlI=;\n b=JdlgvYEVaW1FkjFmAEG8lxQHoy+bdtMWrZByKBK6EWietfhCBPu6j7k+Me+gQwyftN\n vfCsooWDBrYw1vXDrytu2GOtsbYdj9SrAc3Dv04fi8UtSemAcCNcsCwTVl6Lp+OQuEIc\n hOCFk4e8SZA1gfECdez+CRH+Li5vy577m/Gy0/shppjICkvI6amM48tFemk5bJLVrB50\n F8ZZO/DL8/M1zeS4QcFP5PJAwuzBJJTAkNnkrVqwK0bblyUT4Joqw7K+lc/ESpF+YE81\n W0dP9P5wvpk9enMoOjRG3TNzY3R+j2wd9FmvKaZdWljqD8lEsOxymBbgcXoa0gE37NTy\n ZfVg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778012006; x=1778616806;\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=3bT1N3L6mxkj0r/8gWcaM12TxdrLt6HiffbP0SCzhlI=;\n b=bp/fEpVQP9B1W0SZWOLXq3lsQu3PD/x8raQBk0n5saC6BpBcc/SriQkCOvvcyFWCED\n vwfChV70V1Z87bAd3fFgaRutxdv3c09aJ0daSfQCGkIaRJ+e8Cr/X8ErOSR1YHR8pBJ7\n Jj6IVLc4yTfRbg5IetU8g7rqU0pGeeQrlcKjlliUclQcWNwtCtKyj8ZKWjdT9TTh3Wbm\n LItO9DySTKv5OQs7Bt6IxlwsZwbu77A9Ggnt+YWrJIW9u1+3Ne9ml70xHFBxrbfBRvYz\n jb+PXIMO6hCfyerwx9WePohFU/02tx6yz5Bs1D2VhZ1of8C15ExbkZbMZhTWPAqQtZW8\n opTw==", "X-Gm-Message-State": "AOJu0Yz8XOIzEWI8AvRrw4Qj8KZUrV3v0w6Wp3D1bMvq3gG0RsJ2MjHJ\n dzElYTJvy0beOHXR1cB7hf4iNMHMC8rYACplBXVFD+lYFt7eyeuXxajEopVYEdmxLnXebCR3TPD\n u2Opf", "X-Gm-Gg": "AeBDieurLcWXtRaMEclUXCuaYusgm7inNCvzD0AnfYW6JksK9ZbjhtYAf4X2JgUl3CI\n bnjdXSaW7nMwtyOOt/5rq4HZrYpBSxPcHJotlJ7FC92Tcf7HtF2raDKYMjpjL+UqCWEpSRh3hLs\n nMttB+3jH0r+C52JfPX7/9ME7oXhoGBWW2V096arjbA2okQkBIUSzDyKyfb8Aj4toKHjen6LTGU\n YuE4axF7HMUkKHnHf+6NNqgUA4RadpiaxTCakOPnyVfajjkzqIzpbl55Rg/Y5W3re+B8y5nmZmn\n E2AlqVo8umIXIzDWZ5Q3ek3axjcnpTSDnnPq9DM6aFsghNc+Y4+LNhtcyxMk0ZF1A1/BWoy5hoy\n O6xiRYu489LglQQgRHy3qWVTAC3DDHcINDPnIqndv6UXgz7xtbVeRa8kT3m7QiJ3n+/ZjzjbG5k\n MUDV11MHUuAIDF6+fnRp2CwBKvu+AU4fSSmA9hhRQ6pykAfBIZgyx3HRlmBhXtIZhjCk7+YXn0c\n USZWRb7+6UHZuLCO7F77lInOn1jyCeoq31JZcAlwA==", "X-Received": "by 2002:a05:600c:a305:b0:489:2005:b36e with SMTP id\n 5b1f17b1804b1-48e51f444e4mr7504975e9.19.1778012005811;\n Tue, 05 May 2026 13:13:25 -0700 (PDT)", "From": "Peter Maydell <peter.maydell@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "Dmitry Fleytman <dmitry.fleytman@gmail.com>,\n Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>,\n Jason Wang <jasowang@redhat.com>", "Subject": "[PATCH] net: mark struct ip6_header as QEMU_PACKED", "Date": "Tue, 5 May 2026 21:13:24 +0100", "Message-ID": "<20260505201324.932323-1-peter.maydell@linaro.org>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2a00:1450:4864:20::32c;\n envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32c.google.com", "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, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\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-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": "The ip6_header is often used by network devices to examine structures in\npacket data, and it's not guaranteed to be aligned. This manifests as\nerrors from the clang sanitizer like this one:\n\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../hw/net/rocker/rocker_of_dpa.c:321:37\n../../hw/net/rocker/rocker_of_dpa.c:730:33: runtime error: member access within misaligned address 0x742970fe7ecd for type 'struct ip6_header', which requires 4 byte alignment\n0x742970fe7ecd: note: pointer points here\n 00 00 02 81 00 60 00 00 00 00 38 3a ff fe 80 00 00 00 00 00 00 00 00 00 00 00 00 00 02 ff 02 00\n ^\n\nFix this by marking the ip6_header struct as QEMU_PACKED, the way we\nhave done to handle similar problems involving tcp_header, ip_header,\netc.\n\nSigned-off-by: Peter Maydell <peter.maydell@linaro.org>\n---\nFound this one while I was working on a rocker bug.\n\n include/net/eth.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/include/net/eth.h b/include/net/eth.h\nindex efe270dbfe..46dc9ed5ac 100644\n--- a/include/net/eth.h\n+++ b/include/net/eth.h\n@@ -119,7 +119,7 @@ struct ip6_header {\n } ip6_ctlun;\n struct in6_address ip6_src; /* source address */\n struct in6_address ip6_dst; /* destination address */\n-};\n+} QEMU_PACKED;\n \n typedef struct ip6_pseudo_header {\n struct in6_address ip6_src;\n", "prefixes": [] }