get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232040,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2232040/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502104836.2980415-1-jasonye247@163.com/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/12/?format=api",
        "name": "Linux CIFS Client",
        "link_name": "linux-cifs-client",
        "list_id": "linux-cifs.vger.kernel.org",
        "list_email": "linux-cifs@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260502104836.2980415-1-jasonye247@163.com>",
    "date": "2026-05-02T10:48:36",
    "name": "[v2,2/2] smb/client: fix out-of-bounds read in symlink_data()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "59d5f8337855fc1be054c9656e0de5758e7d39b4",
    "submitter": {
        "id": 93305,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/93305/?format=api",
        "name": null,
        "email": "jasonye247@163.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502104836.2980415-1-jasonye247@163.com/mbox/",
    "series": [
        {
            "id": 502521,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502521/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=502521",
            "date": "2026-05-02T09:54:33",
            "name": "smb/client: fix out-of-bounds read",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/502521/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232040/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232040/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11356-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-cifs@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256\n header.s=s110527 header.b=OvyxFG2b;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11356-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=\"OvyxFG2b\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=117.135.210.4",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=163.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\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 4g74Sd0mwdz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 02 May 2026 20:50:41 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 03876300D60C\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  2 May 2026 10:50:35 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 80F7732B9A8;\n\tSat,  2 May 2026 10:50:34 +0000 (UTC)",
            "from m16.mail.163.com (m16.mail.163.com [117.135.210.4])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 35203175A92;\n\tSat,  2 May 2026 10:50:29 +0000 (UTC)",
            "from Jason.localdomain (unknown [])\n\tby gzsmtp3 (Coremail) with SMTP id PigvCgAnCdCG1vVpdIkgCA--.1S2;\n\tSat, 02 May 2026 18:48:42 +0800 (CST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777719034; cv=none;\n b=YIZWEoC7Y6s0hm72SX7Uzrcgt5M+B0u9ugvIleJscnJjkHfrwg4Hd5EK+R29rHQfNcnw2f4cibsvs8OY4rfGfi++noDIryaazbSbRrwX8MCZr8TTjqEe7oVfLwaMmfaAMKegKfm2a/LEcRIk9F6n8rdgzobjEHVsF9phP/lvXsw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777719034; c=relaxed/simple;\n\tbh=mhYYZ9vTva19NiK8asZeIKwDHv16ORSkJPKHND2LXHA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=DGGA+RVglSPDxoXOm1UmUPY31Vr3IZN4E2VcLXN0D0xkSYLuJqF2RHWGA7qNmqKlsBY4ccVI4xq/ppzHzuQALqf9GbQNswDGOlMNxl+W8Oe5bJ4BrSzuHp8tGiNxTAbOBMELccq6OV6HZRwo3xFDkEF5+el8MkcmvkBM/iLzpmQ=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com;\n spf=pass smtp.mailfrom=163.com;\n dkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=OvyxFG2b; arc=none smtp.client-ip=117.135.210.4",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n\ts=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=+4\n\tKvS+6DzJ02CM67wXgXY+9spj1hGV5Zo99C3l9HjJI=; b=OvyxFG2b0D0ut8oqdO\n\tVw//tf4RvNeTF29oXYyehjyOK8AL1vro8GuRF0xjKJc7m1p/6aWcTokNQumu7sJY\n\tXkU9/yFyFoqFIXRyQbAsXywIRlHyUKcbxJtORO1MtpBJmWwRS2sV/GxQvDU+kl+S\n\tcTh9pr4iWZc8WR6tvLHMayWag=",
        "From": "jasonye247@163.com",
        "To": "smfrench@gmail.com,\n\tlinkinjeon@kernel.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttom@talpey.com,\n\tbharathsm@microsoft.com,\n\tsenozhatsky@chromium.org,\n\tdhowells@redhat.com,\n\tchenxiaosong@chenxiaosong.com,\n\tgregkh@linuxfoundation.org",
        "Cc": "linux-cifs@vger.kernel.org,\n\tZisen Ye <zisenye@stu.xidian.edu.cn>,\n\tStable@vger.kernel.org,\n\tChenXiaoSong <chenxiaosong@kylinos.cn>",
        "Subject": "[PATCH v2 2/2] smb/client: fix out-of-bounds read in symlink_data()",
        "Date": "Sat,  2 May 2026 18:48:36 +0800",
        "Message-ID": "<20260502104836.2980415-1-jasonye247@163.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260502095435.2969835-1-zisenye@stu.xidian.edu.cn>",
        "References": "<20260502095435.2969835-1-zisenye@stu.xidian.edu.cn>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-cifs@vger.kernel.org",
        "List-Id": "<linux-cifs.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CM-TRANSID": "PigvCgAnCdCG1vVpdIkgCA--.1S2",
        "X-Coremail-Antispam": "1Uf129KBjvJXoW7CF4xCryUJrWrArW7Cr1Dtrb_yoW8Xry5pF\n\t15GrZ8C3y3t3srAanrCF4jq3W8ua1DCr9rGFW7Ka48Ars8ArsY9FWktrn0ga4Sy340g3Wr\n\tXF1vvF9FvryjkFDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j53ktUUUUU=",
        "X-CM-SenderInfo": "pmdv00t1hskli6rwjhhfrp/xtbCzwuvPWn11osXmQAA3Z"
    },
    "content": "From: Zisen Ye <zisenye@stu.xidian.edu.cn>\n\nSince smb2_check_message() returns success without length validation for\nthe symlink error response, in symlink_data() it is possible for\niov->iov_len to be smaller than sizeof(struct smb2_err_rsp). If the buffer\nonly contains the base SMB2 header (64 bytes), accessing\nerr->ErrorContextCount (at offset 66) or err->ByteCount later in\nsymlink_data() will cause an out-of-bounds read.\n\nLink: https://lore.kernel.org/linux-cifs/297d8d9b-adf7-42fd-a1c2-5b1f230032bc@chenxiaosong.com/\nFixes: 76894f3e2f71 (\"cifs: improve symlink handling for smb2+\")\nCc: Stable@vger.kernel.org\nSigned-off-by: Zisen Ye <zisenye@stu.xidian.edu.cn>\nReviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>\n---\n fs/smb/client/smb2misc.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/fs/smb/client/smb2misc.c b/fs/smb/client/smb2misc.c\nindex 973fce3c959c..2a7355ce1a07 100644\n--- a/fs/smb/client/smb2misc.c\n+++ b/fs/smb/client/smb2misc.c\n@@ -241,7 +241,8 @@ smb2_check_message(char *buf, unsigned int pdu_len, unsigned int len,\n \tif (len != calc_len) {\n \t\t/* create failed on symlink */\n \t\tif (command == SMB2_CREATE_HE &&\n-\t\t    shdr->Status == STATUS_STOPPED_ON_SYMLINK)\n+\t\t    shdr->Status == STATUS_STOPPED_ON_SYMLINK &&\n+\t\t    len > calc_len)\n \t\t\treturn 0;\n \t\t/* Windows 7 server returns 24 bytes more */\n \t\tif (calc_len + 24 == len && command == SMB2_OPLOCK_BREAK_HE)\n",
    "prefixes": [
        "v2",
        "2/2"
    ]
}