get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226260,
    "url": "http://patchwork.ozlabs.org/api/patches/2226260/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260422105010.2600337-2-mmakassikis@freebox.fr/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260422105010.2600337-2-mmakassikis@freebox.fr>",
    "list_archive_url": null,
    "date": "2026-04-22T10:50:11",
    "name": "fs: smb: server: zero buffer before filling file entry",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a8b26019a657446bdd5b71e1642e96a6822ed081",
    "submitter": {
        "id": 82633,
        "url": "http://patchwork.ozlabs.org/api/people/82633/?format=api",
        "name": "Marios Makassikis",
        "email": "mmakassikis@freebox.fr"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260422105010.2600337-2-mmakassikis@freebox.fr/mbox/",
    "series": [
        {
            "id": 500979,
            "url": "http://patchwork.ozlabs.org/api/series/500979/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=500979",
            "date": "2026-04-22T10:50:11",
            "name": "fs: smb: server: zero buffer before filling file entry",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500979/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226260/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226260/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11005-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 (2048-bit key;\n unprotected) header.d=freebox-fr.20251104.gappssmtp.com\n header.i=@freebox-fr.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=JQFFJh8+;\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-11005-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=freebox-fr.20251104.gappssmtp.com\n header.i=@freebox-fr.20251104.gappssmtp.com header.b=\"JQFFJh8+\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.128.48",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=freebox.fr",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=freebox.fr"
        ],
        "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 4g0wx83WZ3z1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:50:36 +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 596A4301B155\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 10:50:29 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 06BEF3C13FD;\n\tWed, 22 Apr 2026 10:50:27 +0000 (UTC)",
            "from mail-wm1-f48.google.com (mail-wm1-f48.google.com\n [209.85.128.48])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 973FA3ACEE0\n\tfor <linux-cifs@vger.kernel.org>; Wed, 22 Apr 2026 10:50:25 +0000 (UTC)",
            "by mail-wm1-f48.google.com with SMTP id\n 5b1f17b1804b1-488e1a8ac40so66360585e9.2\n        for <linux-cifs@vger.kernel.org>;\n Wed, 22 Apr 2026 03:50:25 -0700 (PDT)",
            "from odysseia.iliad.local (freebox.vlq16.iliad.fr. [213.36.7.13])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a52583fe7sm156095555e9.13.2026.04.22.03.50.23\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Wed, 22 Apr 2026 03:50:23 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776855026; cv=none;\n b=sKevx0xIpM1FA33UKlVqJTn/6CaGVj7xcdzGqb5YnKcRfzfQj6n+L+U908kKV5gHAGs4cEaTbbvXvxovRkWRTZX6bEfN20CI0kAZZww7jS0fgX18AyjXK7Zcte/G43AwfQPoGsZNrmM9pwjWE7UnR7dPj7JROR5tzUv2cD202Aw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776855026; c=relaxed/simple;\n\tbh=NTs5bzZQ8z2/2klgBwWnJgNaEfHxSdH+3/p0mnoDh5E=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=rEXqcjmsq4c8D3NfKWcuMiEMdwWsfYh3S6zvs4UQ1T0ow0BU5TgykQFHHQ5zymSeK/4qYAArQlTVFPfEDil4kiHpPEdnXGTztaVfEe3XxpU/t/KT1U2CXeh5jS3GcTqWq/jhwFo20NHpcNLIMkHGS1ecwgVKMRlw+l1w/w+/zKQ=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=freebox.fr;\n spf=pass smtp.mailfrom=freebox.fr;\n dkim=pass (2048-bit key) header.d=freebox-fr.20251104.gappssmtp.com\n header.i=@freebox-fr.20251104.gappssmtp.com header.b=JQFFJh8+;\n arc=none smtp.client-ip=209.85.128.48",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=freebox-fr.20251104.gappssmtp.com; s=20251104; t=1776855024;\n x=1777459824; darn=vger.kernel.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=UiqY+tQG9rAjKfengkzSw/6cHF5nEm3xrdSBpeQLnBU=;\n        b=JQFFJh8+Eup6jJaQZcxo9WZHwPusUd3HTk/CG8/FC7hk/yft6EQs7mIQwenCJyY/h2\n         T55ug0IrQlR6zdG5HeO/8hPdXK3dOwOLGgRw85jysphfJRNfox34ITnBW+OZ9pYIMnht\n         S7AeGkCpNGILYQ74ox8G8VN2ptJDkwDiqMS4yv2W1pvgC1wbPgt9EMNMTsQaAmjGKBwO\n         gBG3/MN2UceKrETQyhBetDQTNIf9mAkL14wkPpgDYz4XG4d4pAwcaSdrSbnej3ZLICL9\n         UGuQkAKF/2vw2FOSDjeUHdOj9bv7SMHPYAXJDY8MZaGoyplaA9DNL3I8TsoSjVEfBIOU\n         V7QA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776855024; x=1777459824;\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=UiqY+tQG9rAjKfengkzSw/6cHF5nEm3xrdSBpeQLnBU=;\n        b=KCmfYfPisp7yoaXa9rDVYI646tTj9w6S4xtgGffE0Sg3DXUKrUxYWsYFZzHLOYpBbF\n         btfpzHNkK7VOvoA7APliOvrZvDMnxgZKbiYJzeZW/h4gqBVv/0fBYsDIkQXRvyLpTaPJ\n         NZQ2TwU3HTyw6jVt8OgNb9K0VRffsJoBUwHVgMHZkck1iTWiflAFdlLDTq2nA+cCjwYq\n         pmxxLuk60UUNt8WFVcvH1FFXb1AVbUHYwLrWXRuvLyn7/QxwWYAuD0UEaUBoQWxfIaEW\n         OClv70qE9meUn7GAa7ee/mAFbc7eVXTrLyR7quJulSgEv4/DqxHwK2yjyDqy2z8AJ/9N\n         vpyQ==",
        "X-Gm-Message-State": "AOJu0YzhPjPE2dsBKjBZjM2bguegOuGt7LbyvJVfBy8RpxdzhkkAWMyl\n\t8fj3l0TysTOvXE7YfvC72QNHdERUEx2jiJOn/hwBnNjbh9f5XFccRHIHDY2cNxsVEIEs3i90J85\n\tr+VpJ/+8=",
        "X-Gm-Gg": "AeBDieuxHFuDaJW4GQ1k2kcBroU9nktgAcxaxFDbXDqDzkk0ulDhlqzAzXgQtqyPLXo\n\tHYh5XWZPIF7vIHpPdq1cdUDDcXLy9j9CEFd+o38WkRCI3uzhAx4TelrTqWbQt0lpVEJT0RVsNc/\n\tb8/gYJPgTkf9zLumATH16iPsexFazh0iyeyRv5PK98EfiAf1rgTOZVaRinD6d52kysPfrrexmH3\n\tqL5FdrBw9E/exPRKxF4duO5WSYNNd5MBm0vw1S+EIbxxSqiFiEIrwspkKStDOhAzAZRW/NBb54o\n\t8Lgxn5a0cDsVJKq7RP2W3xFsYsEtNUHz75pewG7F4RolkBZp4o4D8cKnaiYPX2JzEAALhyEjLj4\n\tZRabM0sno8ks/g0bhSSuYS2smyggme2hTuaASj4einSJEJ+lErKiInQbWHBjdLKAN269s5rvVhj\n\tXsNS0/eenFScHufo1R66+7O+JF9OUcWk0A9AdXtqvfa40LgB3Zy0reTR/vLq5XSvKz6f4okPvPT\n\tKmunIviFUbdCisbK0QXPc2T0q7zGTzvwsMm1Ke5gbpYODqthVJATwE=",
        "X-Received": "by 2002:a05:600c:1554:b0:488:9bf8:7f17 with SMTP id\n 5b1f17b1804b1-488fb77810bmr323706895e9.14.1776855023711;\n        Wed, 22 Apr 2026 03:50:23 -0700 (PDT)",
        "From": "Marios Makassikis <mmakassikis@freebox.fr>",
        "To": "linux-cifs@vger.kernel.org,\n\tlinkinjeon@kernel.org",
        "Cc": "smfrench@gmail.com,\n\ttom@talpey.com,\n\tsenozhatsky@chromium.org,\n\tMarios Makassikis <mmakassikis@freebox.fr>",
        "Subject": "[PATCH] fs: smb: server: zero buffer before filling file entry",
        "Date": "Wed, 22 Apr 2026 12:50:11 +0200",
        "Message-ID": "<20260422105010.2600337-2-mmakassikis@freebox.fr>",
        "X-Mailer": "git-send-email 2.51.1",
        "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"
    },
    "content": "this ensures there is no stale data in padding area between entries\nwhen processing SMB2_QUERY_DIRECTORY request.\n\nSigned-off-by: Marios Makassikis <mmakassikis@freebox.fr>\n---\n fs/smb/server/smb2pdu.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c\nindex 07782f7205dc..b55bef96d94b 100644\n--- a/fs/smb/server/smb2pdu.c\n+++ b/fs/smb/server/smb2pdu.c\n@@ -3962,6 +3962,7 @@ static int smb2_populate_readdir_entry(struct ksmbd_conn *conn, int info_level,\n \t\trc = -ENOSPC;\n \t\tgoto free_conv_name;\n \t}\n+\tmemset(d_info->wptr, 0, next_entry_offset);\n \n \tkstat = d_info->wptr;\n \tif (info_level != FILE_NAMES_INFORMATION)\n",
    "prefixes": []
}