get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194231,
    "url": "http://patchwork.ozlabs.org/api/patches/2194231/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/22296f2db9f17f9954f85de9e99b09498936eb51.1770470220.git.qemu_oss@crudebyte.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": "<22296f2db9f17f9954f85de9e99b09498936eb51.1770470220.git.qemu_oss@crudebyte.com>",
    "list_archive_url": null,
    "date": "2026-02-07T13:17:00",
    "name": "[PULL,1/1] 9pfs: local: read native symlinks when security-model=mapped",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6ec5bb9574fbecc59fc8eb807de4ac6d77e6491c",
    "submitter": {
        "id": 77616,
        "url": "http://patchwork.ozlabs.org/api/people/77616/?format=api",
        "name": "Christian Schoenebeck",
        "email": "qemu_oss@crudebyte.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/22296f2db9f17f9954f85de9e99b09498936eb51.1770470220.git.qemu_oss@crudebyte.com/mbox/",
    "series": [
        {
            "id": 491380,
            "url": "http://patchwork.ozlabs.org/api/series/491380/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491380",
            "date": "2026-02-07T13:17:00",
            "name": "[PULL,1/1] 9pfs: local: read native symlinks when security-model=mapped",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491380/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194231/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194231/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 (4096-bit key;\n unprotected) header.d=crudebyte.com header.i=@crudebyte.com\n header.a=rsa-sha256 header.s=kylie header.b=P8tvRTBF;\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 4f7Xt919Mrz1xvh\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 01:10:39 +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 1voiv2-0003S1-6A; Sat, 07 Feb 2026 09:04:16 -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)\n (envelope-from\n <22296f2db9f17f9954f85de9e99b09498936eb51@kylie.crudebyte.com>)\n id 1voiuz-0003Rd-AG\n for qemu-devel@nongnu.org; Sat, 07 Feb 2026 09:04:14 -0500",
            "from kylie.crudebyte.com ([5.189.157.229])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1)\n (envelope-from\n <22296f2db9f17f9954f85de9e99b09498936eb51@kylie.crudebyte.com>)\n id 1voiux-0005jY-LD\n for qemu-devel@nongnu.org; Sat, 07 Feb 2026 09:04:13 -0500"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n d=crudebyte.com; s=kylie; h=Cc:To:Subject:Date:From:References:In-Reply-To:\n Message-ID:Content-Type:Content-Transfer-Encoding:MIME-Version:Content-ID:\n Content-Description; bh=kz874Y4LL8BIAsP3NfhIr4ERHLswagX7zKXSQF9iv3w=; b=P8tvR\n TBF5tTyGiG6uxOboCrruo8cH4pP1g8Qx+3x+DEFfIyZ3N7Ai+J9ikt4wodMl6FXqn+tI9q4RkYhJW\n Fx+RYg/B9riMCcrEycVRBudu7OLB6TSuu96l0H+Ay6p5wpELp6uuyxQIFPsVMxxgIxD8IbO17cYcA\n tyUHakrQL3+7TSRVZZJbHt7H3GSPqNfePFtOkTUr7iNmLu+gH/QZlN+17BfMkmBpj8WG4N/TkEsym\n +BLVEW5vQiSruZv7iGALc9W/c+d3cgkGMxBoM6jPEc7729IgSRkEOE897HExINDk6hNmtU4YlsrAK\n QmzFB7JzlU9TLdXxyq/fRtMuaw5BeeQQ2ge4BGh6jB/jWXmmYaK7xb4fUoYkRCiS5fYCABOoHcXdd\n E86o/V0uBLh6yB2mDa1xqzwiwfdjcv/4RE8yxOcBq63tKKs8il1TXgY3iJQsuOFTu5+yosybHuzn6\n i88xkrcIKd/j3l/7hTjtoN2t60G9eYziYttPty7pmSrV4s8Nn9hBfs55XLq0usbbS9cCg9eXhzFI+\n 2SALsS2WvHepq0XZldD7gaFGx7LsNE0qrpZ2JR23nFXWuwkhn7gx8QZIgNEjroEyq26s7IFdtqUnC\n 3PMmyaMXoeoIevxmtQd4iPb/vTzhWJqvDqV0DWhIWzsVyPREiwH5S6R05QlKjM=;",
        "Message-ID": "\n <22296f2db9f17f9954f85de9e99b09498936eb51.1770470220.git.qemu_oss@crudebyte.com>",
        "In-Reply-To": "<cover.1770470220.git.qemu_oss@crudebyte.com>",
        "References": "<cover.1770470220.git.qemu_oss@crudebyte.com>",
        "From": "Christian Schoenebeck <qemu_oss@crudebyte.com>",
        "Date": "Sat, 07 Feb 2026 14:17:00 +0100",
        "Subject": "[PULL 1/1] 9pfs: local: read native symlinks when\n security-model=mapped",
        "To": "qemu-devel@nongnu.org,\n    Peter Maydell <peter.maydell@linaro.org>",
        "Cc": "Greg Kurz <groug@kaod.org>, Andrey Erokhin <language.lawyer@gmail.com>",
        "Received-SPF": "pass client-ip=5.189.157.229;\n envelope-from=22296f2db9f17f9954f85de9e99b09498936eb51@kylie.crudebyte.com;\n helo=kylie.crudebyte.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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-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: Andrey Erokhin <language.lawyer@gmail.com>\n\nDirectories attached using virtfs with security-model=mapped\nmay contain native symlinks\n\nThis can happen e.g. when booting from a rootfs directory tree\n(usually with a writable overlay set up on the host side)\n\nCurrently, when security-model=mapped[-xattr|-file],\nQEMU assumes that host-side \"symlinks\" are in the mapped format,\ni.e. are regular files storing the linked path,\nso it tries to open with O_NOFOLLOW\nand fails with ELOOP on native symlinks\n\nThis patch introduces a fallback for such cases:\nreuse security-model=[none|passthrough] else if branch logic\nwhere readlink will be called for the path basename\n\nResolves: https://gitlab.com/qemu-project/qemu/-/issues/173\nSigned-off-by: Andrey Erokhin <language.lawyer@gmail.com>\nReviewed-by: Greg Kurz <groug@kaod.org>\nLink: https://lore.kernel.org/qemu-devel/3c35955d-a57e-4203-81c5-395146e23f83@gmail.com\nSigned-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>\n---\n hw/9pfs/9p-local.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c\nindex c3745f2839..24cb1da90a 100644\n--- a/hw/9pfs/9p-local.c\n+++ b/hw/9pfs/9p-local.c\n@@ -469,12 +469,16 @@ static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path,\n \n         fd = local_open_nofollow(fs_ctx, fs_path->data, O_RDONLY, 0);\n         if (fd == -1) {\n+            if (errno == ELOOP) {\n+                goto native_symlink;\n+            }\n             return -1;\n         }\n         tsize = RETRY_ON_EINTR(read(fd, (void *)buf, bufsz));\n         close_preserve_errno(fd);\n     } else if ((fs_ctx->export_flags & V9FS_SM_PASSTHROUGH) ||\n                (fs_ctx->export_flags & V9FS_SM_NONE)) {\n+    native_symlink:;\n         char *dirpath = g_path_get_dirname(fs_path->data);\n         char *name = g_path_get_basename(fs_path->data);\n         int dirfd;\n",
    "prefixes": [
        "PULL",
        "1/1"
    ]
}