get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232039,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2232039/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502104436.2978678-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": "<20260502104436.2978678-1-jasonye247@163.com>",
    "date": "2026-05-02T10:44:36",
    "name": "[v2,1/2] smb/client: fix out-of-bounds read in smb2_compound_op()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "76dfc9c200e78a08413a4c5674b4805a126f3c72",
    "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/20260502104436.2978678-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/2232039/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232039/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11355-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=iIe7drEe;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11355-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=\"iIe7drEe\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=117.135.210.3",
            "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 sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4g74PD6Dkwz1yGq\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 02 May 2026 20:47:44 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 407113003630\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  2 May 2026 10:47:41 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 75F13175A92;\n\tSat,  2 May 2026 10:47:38 +0000 (UTC)",
            "from m16.mail.163.com (m16.mail.163.com [117.135.210.3])\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 269912D0C92;\n\tSat,  2 May 2026 10:47:33 +0000 (UTC)",
            "from Jason.localdomain (unknown [])\n\tby gzsmtp3 (Coremail) with SMTP id PigvCgD330bA1fVpAEogCA--.63S2;\n\tSat, 02 May 2026 18:45:24 +0800 (CST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777718858; cv=none;\n b=grXLq4J6cb7Mlqa1XSrcxGajndnV2sFUYqQd+saUD/zqb0jXZZlUHZzaFPBn8aBen9IfKmvfXueaPpohlZBwE7MqgUr6U3bI1a4CbVjAT2QB+iycFB7jvo65jw1DBHXVZceNSYvdqSkh/OymWTxU4EzZsLwrGNd0pa+Bs3vTAU4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777718858; c=relaxed/simple;\n\tbh=DF/TXG0J6XXdsdTS5W508/dt/hT//EpEwhci+VvBfoM=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=vD0UU/jXH2rvVMDZU5wGqLkHGfnmcAKykz+RCvSwoG9WCyEBRj4XebdZcmlR4qp7hyBiff3il8ZqdPaqA2SJsASZFoaS5So45wau6U0xKKdaXraUstYGMo0lmRJM9JVpMfa45ZIGSmZM+83LfFMFvEu1jXpj5EAU6FEe+nLLJfQ=",
        "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=iIe7drEe; arc=none smtp.client-ip=117.135.210.3",
        "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=Cq\n\trbO8Qzd6k4KLJI4gpLjZ4/WrLiuK/VHUMcWS/jUwc=; b=iIe7drEeTcsys2DZPF\n\tnhXozXLmYRrZR0yqW2aD1i0bwvjlKGRBzGUrEf/LzKk7/f+rZYrFmk+pWQKSbvJb\n\tH8Kk3LrU38P7kND2CdRq5RvmwO+WM5qWG2pajx/X6tMe9rtBvafkDAaJw5PAb1AV\n\tVmRm73YvrVnBHQX0ExPl3jpB4=",
        "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 1/2] smb/client: fix out-of-bounds read in\n smb2_compound_op()",
        "Date": "Sat,  2 May 2026 18:44:36 +0800",
        "Message-ID": "<20260502104436.2978678-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": "PigvCgD330bA1fVpAEogCA--.63S2",
        "X-Coremail-Antispam": "1Uf129KBjvJXoW7KFy3Xr43KrWkGFW3tF1kKrg_yoW8Gw4rpr\n\t4qga15Cr13trnFkw4kG3WDu34Fka4UArZxCayjy3yfCanxAr97Ka4qyr92gr1Fk395CFyS\n\tgF1qyay293yUCFDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j5EfOUUUUU=",
        "X-CM-SenderInfo": "pmdv00t1hskli6rwjhhfrp/xtbC8QZ+DGn11cbHrAAA3h"
    },
    "content": "From: Zisen Ye <zisenye@stu.xidian.edu.cn>\n\nIf a server sends a truncated response but a large OutputBufferLength, and\nterminates the EA list early, check_wsl_eas() returns success without\nvalidating that the entire OutputBufferLength fits within iov_len.\n\nThen smb2_compound_op() does:\n    memcpy(idata->wsl.eas, data[0], size[0]);\n\nWhere size[0] is OutputBufferLength. If iov_len is smaller than size[0],\nmemcpy can read beyond the end of the rsp_iov allocation and leak adjacent\nkernel heap memory.\n\nLink: https://lore.kernel.org/linux-cifs/d998240c-aca9-420d-9dbd-f5ba24af19e0@chenxiaosong.com/\nFixes: ea41367b2a60 (\"smb: client: introduce SMB2_OP_QUERY_WSL_EA\")\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/smb2inode.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/fs/smb/client/smb2inode.c b/fs/smb/client/smb2inode.c\nindex 286912616c73..a192d70cd29e 100644\n--- a/fs/smb/client/smb2inode.c\n+++ b/fs/smb/client/smb2inode.c\n@@ -121,6 +121,9 @@ static int check_wsl_eas(struct kvec *rsp_iov)\n \tea = (void *)((u8 *)rsp_iov->iov_base +\n \t\t      le16_to_cpu(rsp->OutputBufferOffset));\n \tend = (u8 *)rsp_iov->iov_base + rsp_iov->iov_len;\n+\tif (ea + outlen > end)\n+\t\treturn -EINVAL;\n+\n \tfor (;;) {\n \t\tif ((u8 *)ea > end - sizeof(*ea))\n \t\t\treturn -EINVAL;\n",
    "prefixes": [
        "v2",
        "1/2"
    ]
}