get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196612,
    "url": "http://patchwork.ozlabs.org/api/patches/2196612/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-um/patch/20260215142803.1455757-2-maci.stgn@gmail.com/",
    "project": {
        "id": 60,
        "url": "http://patchwork.ozlabs.org/api/projects/60/?format=api",
        "name": "User-mode Linux Development",
        "link_name": "linux-um",
        "list_id": "linux-um.lists.infradead.org",
        "list_email": "linux-um@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260215142803.1455757-2-maci.stgn@gmail.com>",
    "list_archive_url": null,
    "date": "2026-02-15T14:28:03",
    "name": "[2/2] um: avoid struct sigcontext redefinition with musl",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b4a74026b16dcc379c7fdf52622c9c7ebbda79f4",
    "submitter": {
        "id": 92646,
        "url": "http://patchwork.ozlabs.org/api/people/92646/?format=api",
        "name": "Marcel W. Wysocki",
        "email": "maci.stgn@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-um/patch/20260215142803.1455757-2-maci.stgn@gmail.com/mbox/",
    "series": [
        {
            "id": 492220,
            "url": "http://patchwork.ozlabs.org/api/series/492220/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-um/list/?series=492220",
            "date": "2026-02-15T14:28:03",
            "name": "[1/2] um: fix address-of CMSG_DATA() rvalue in stub",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492220/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196612/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196612/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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 secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=k+6c6X2+;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=k5Ql++5r;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fDSv66CDXz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 16 Feb 2026 01:28:30 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vrd6l-00000005RRK-3IXw;\n\tSun, 15 Feb 2026 14:28:23 +0000",
            "from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vrd6i-00000005RQe-46Ty\n\tfor linux-um@lists.infradead.org;\n\tSun, 15 Feb 2026 14:28:22 +0000",
            "by mail-pl1-x629.google.com with SMTP id\n d9443c01a7336-2a929245b6aso26014115ad.0\n        for <linux-um@lists.infradead.org>;\n Sun, 15 Feb 2026 06:28:20 -0800 (PST)",
            "from speedy3.lan ([116.197.216.237])\n        by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2ad1ace5bd1sm45617415ad.90.2026.02.15.06.28.18\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 15 Feb 2026 06:28:19 -0800 (PST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help\n\t:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding:\n\tMIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:\n\tReply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=+ABeDiezQDLnVh+YeCRm+MqNQxddgh777bvsSpmm8Jk=; b=k+6c6X2+li9z5Wg+JXNfxea7yP\n\tIzOEqc6x7JflLyjdAH97Z/LzSLJMIaPn6kYNPV0GPkc7N2jNdTJNUzsmcoHsWQ9AQyLrzpwZYdy/K\n\ttAQE1kOiRkiFFAj4d4bET+YWDlf6/hBTNlYJtptl9pWlLBSyl7ZnTostuJ42SxPX69wPcUmwBUC65\n\tyBKA5vLOqNPvTmhyv5ZFjMEZlfEDbNwFGhLk6epwONgxZei9HLXibOGbgY9FrRHbUXXs9+sG7bx0a\n\tIBDb72HOi6WBm+b6sOkk5wErpWvHTXU1HrEVpUTt+MX5TkzQrTguy6AkN/WUetM3fksoX1HDJmfFZ\n\tWNz++2LA==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20230601; t=1771165700; x=1771770500;\n darn=lists.infradead.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=+ABeDiezQDLnVh+YeCRm+MqNQxddgh777bvsSpmm8Jk=;\n        b=k5Ql++5rcinf/9O5FK1gW2drP9T6NRbH53biI9O1sKSoP84fRexOYru1wiq8oAO2gT\n         Pq7GFRaIIB7hYQQVdGCnLJCmHVV6YTPdqmy36LnKZvbw+L7TGor6il3Ii2izgDEUH3UH\n         dP20lJGFPWNchTNo1xJybbJvvxcEO8Bdf+s3mDB7/CnQHQfSKGcewRIFKB3ti7SsgLoK\n         TbZqnHlXOeQfZXp9a5ZH7jRkZ99OoR/FhJG7FFnI3r1uiWGqsl4IXD2TeUI3KvAuD5Ik\n         yOqZ/tRB6k0FtMJZbvB9s2oio3aSI3NbtIxHQ+JhI/oIay7GVqjT3IUSs5cCJG10tUIY\n         KbhQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1771165700; x=1771770500;\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=+ABeDiezQDLnVh+YeCRm+MqNQxddgh777bvsSpmm8Jk=;\n        b=PMRF4het8Smh8ktHEzbDMiKF+ecQ5XYkIyeeA6PuphAF4VyYgwop0z4aepD2BI8fKe\n         rcGYAvZOGwCAX6XbGkrH7XN1vtc2Lz/9ou76ORQaOpP8wrYrOm98ZIfTyUv9MUxxGHrt\n         2n4y0Muk0MGWZK6wSA672hHVneqiEuhXx4DUZ+0uy+E8vUActcLwvvP4Hq3EdyPtyRX7\n         gFB4wsP7YbeBAdA6l1kV5d2N3rKQwTLANX7oplP41QpfbrzyaWaXoRCJXGQZfs9cplkt\n         bJqyZdx3J0ulsx0MOt52ULVvWB1MXiBnH3KJ0cWxkLWs+vd9PIClK1UkiiOy700yheKE\n         HWZQ==",
        "X-Gm-Message-State": "AOJu0YxG9kPmS5Z8Mgni7gppbtWT4dJAuJWpoy41x9C1QaDbASxGvYgq\n\txhu+55WDuoAqT/y9rG86U2b+YhIsnWbppItZnu9jzgbYNqmMbOJQ95p5",
        "X-Gm-Gg": "AZuq6aLAnYgAR+qotXUT13aZjMpWr6pMjD3GdN4UWxYnhyQrg3mPDs9lG5kr4O5vHNZ\n\t6H6GJef7kY1w0dNvh/29aagxNWrUjvqaVyHkhEyBwdXcpss8XwiOqbTHSwy8tr8jZE7DYfDLpfn\n\ta2hc1FpsCYdHk8D2f+DZK9XMx9fxPNAqLWKZqW7BEQKl4Bc+qlqD9GwSEGL4wepvTQZAzynJ/H1\n\tLC2Lf1gs3I+sOtbgoZxC+0U61WsUyfzHqfxv2jQ9Fdnf/iV6r9XAcJDkl1Ug+c3oj18Ok4Te86a\n\tm8NpxxGiXrJ3l/ParZiBLvvtJwKgXoMYlUjotW6CcDZ1lWcdQYa8xDz0EULJ7A+N0eY3mlAmive\n\tEY2mTDXLLfWJJ66/oUpcSzZl+orjGld5l3iqw4gNAwdImxx+Igjvc6Xe4VEbRHc8kRHjhB5YJET\n\tks09fvd6t05auVBYjZDrtrk/7AS/tYV2M9sKckq+T0WaQ+9HORw7wChEjI",
        "X-Received": "by 2002:a17:903:1b67:b0:2a0:c35c:572e with SMTP id\n d9443c01a7336-2ad17501af0mr57032485ad.30.1771165699900;\n        Sun, 15 Feb 2026 06:28:19 -0800 (PST)",
        "From": "\"Marcel W. Wysocki\" <maci.stgn@gmail.com>",
        "To": "Richard Weinberger <richard@nod.at>,\n\tAnton Ivanov <anton.ivanov@cambridgegreys.com>,\n\tJohannes Berg <johannes@sipsolutions.net>",
        "Cc": "linux-um@lists.infradead.org,\n\tlinux-kernel@vger.kernel.org,\n\t\"Marcel W . Wysocki\" <maci.stgn@gmail.com>",
        "Subject": "[PATCH 2/2] um: avoid struct sigcontext redefinition with musl",
        "Date": "Sun, 15 Feb 2026 22:28:03 +0800",
        "Message-ID": "<20260215142803.1455757-2-maci.stgn@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260215142803.1455757-1-maci.stgn@gmail.com>",
        "References": "<20260215142803.1455757-1-maci.stgn@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260215_062821_016576_67AB5096 ",
        "X-CRM114-Status": "GOOD (  10.44  )",
        "X-Spam-Score": "-2.1 (--)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  mcontext.c includes both <sys/ucontext.h> and\n <asm/sigcontext.h>.\n    With musl libc,\n this causes a struct sigcontext redefinition error: <sys/ucontext.h>\n    pulls in musl's <bits/signal.h>, which defines struct sigcontext directly.\n    The kernel's <asm/sigcontext.h> then provides a second,\n conflicting definition\n    of the same struct.\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [2607:f8b0:4864:20:0:0:0:629 listed in]\n                             [list.dnswl.org]\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail\n provider\n                             [maci.stgn(at)gmail.com]",
        "X-BeenThere": "linux-um@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<linux-um.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-um/>",
        "List-Post": "<mailto:linux-um@lists.infradead.org>",
        "List-Help": "<mailto:linux-um-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=subscribe>",
        "Sender": "\"linux-um\" <linux-um-bounces@lists.infradead.org>",
        "Errors-To": "linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "mcontext.c includes both <sys/ucontext.h> and <asm/sigcontext.h>.\nWith musl libc, this causes a struct sigcontext redefinition error:\n\n  <sys/ucontext.h> pulls in musl's <bits/signal.h>, which defines\n  struct sigcontext directly.  The kernel's <asm/sigcontext.h> then\n  provides a second, conflicting definition of the same struct.\n\nWith glibc this does not conflict because glibc's signal headers\nsource their struct sigcontext from the kernel's own UAPI headers,\nso the include guard in <asm/sigcontext.h> makes the second\ninclusion a no-op.\n\nmcontext.c does not actually use struct sigcontext by name -- it\nonly needs the FP-state types (_fpstate, _xstate, etc.) that are\ndefined in <asm/sigcontext.h> independently of the sigcontext\nstruct.\n\nTemporarily rename sigcontext to __kernel_sigcontext during the\ninclusion of <asm/sigcontext.h> so that the kernel's definition\ndoes not collide with musl's.  The #undef restores normal name\nresolution immediately afterward.\n\nNo functional change with glibc; fixes the build with musl.\n\nSigned-off-by: Marcel W. Wysocki <maci.stgn@gmail.com>\n---\n arch/x86/um/os-Linux/mcontext.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/arch/x86/um/os-Linux/mcontext.c b/arch/x86/um/os-Linux/mcontext.c\n--- a/arch/x86/um/os-Linux/mcontext.c\n+++ b/arch/x86/um/os-Linux/mcontext.c\n@@ -4,7 +4,13 @@\n #include <linux/string.h>\n #include <sys/ucontext.h>\n #include <asm/ptrace.h>\n+/*\n+ * musl defines struct sigcontext in <bits/signal.h>.  Rename the kernel's\n+ * copy to avoid redefinition while keeping the FP-state types available.\n+ */\n+#define sigcontext __kernel_sigcontext\n #include <asm/sigcontext.h>\n+#undef sigcontext\n #include <sysdep/ptrace.h>\n #include <sysdep/mcontext.h>\n #include <arch.h>\n",
    "prefixes": [
        "2/2"
    ]
}