get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216482,
    "url": "http://patchwork.ozlabs.org/api/patches/2216482/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260326151730.16233-1-fw@strlen.de/",
    "project": {
        "id": 26,
        "url": "http://patchwork.ozlabs.org/api/projects/26/?format=api",
        "name": "Netfilter Development",
        "link_name": "netfilter-devel",
        "list_id": "netfilter-devel.vger.kernel.org",
        "list_email": "netfilter-devel@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260326151730.16233-1-fw@strlen.de>",
    "list_archive_url": null,
    "date": "2026-03-26T15:17:24",
    "name": "[nf] netfilter: nfnetlink_log: account for netlink header size",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4a393c8f2def994ec3716bcdcafd08073a6c7b07",
    "submitter": {
        "id": 1025,
        "url": "http://patchwork.ozlabs.org/api/people/1025/?format=api",
        "name": "Florian Westphal",
        "email": "fw@strlen.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260326151730.16233-1-fw@strlen.de/mbox/",
    "series": [
        {
            "id": 497609,
            "url": "http://patchwork.ozlabs.org/api/series/497609/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=497609",
            "date": "2026-03-26T15:17:24",
            "name": "[nf] netfilter: nfnetlink_log: account for netlink header size",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497609/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216482/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216482/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <netfilter-devel+bounces-11457-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "netfilter-devel@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "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=netfilter-devel+bounces-11457-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=91.216.245.30",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=strlen.de",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc"
        ],
        "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 4fhSQY34j4z1yGD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 02:30:29 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 6E93B3013734\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 15:19:37 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B683139183E;\n\tThu, 26 Mar 2026 15:19:34 +0000 (UTC)",
            "from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc\n [91.216.245.30])\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 F306925B31D\n\tfor <netfilter-devel@vger.kernel.org>; Thu, 26 Mar 2026 15:19:32 +0000 (UTC)",
            "by Chamillionaire.breakpoint.cc (Postfix, from userid 1003)\n\tid A2FE5602F8; Thu, 26 Mar 2026 16:19:30 +0100 (CET)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774538374; cv=none;\n b=eF7PEK7g8JBnvAHxow0QRoAtHzR3dWgZpDMBiDFXmilSDNUQzkGsxQzgTcudd5UuQsRtbEtmJ9Ui31FrtZrlLIkNb3c9dWqoLAm74sdIKsaFKb2LHx5isdW6ln3AJP7JoHkaLPTIZU2bDTuQZbj2+6CKo1GGe1r0yuvv32wbdKU=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774538374; c=relaxed/simple;\n\tbh=BlafNr+QNLKRDkQcE/ueJYzXCYuLD3BAU63UkEDsH4Y=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=OZE8cA/ZkiNOEs8EtfXtrebsV8GWtrQyewC+aCIg4IfFs8SQ78rZ33v3aTuKikTL4bZ+bY7oRKZzkwTduDmYm+m/eYN4WJ1F74G9hBYgRs9vtCvUeBsAgtau0JhIWWDCxtBPqiGKy0G8Tj+LGWRyYuWVAKbKBh8MZhgrqqryutY=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=strlen.de;\n spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc;\n arc=none smtp.client-ip=91.216.245.30",
        "From": "Florian Westphal <fw@strlen.de>",
        "To": "<netfilter-devel@vger.kernel.org>",
        "Cc": "Florian Westphal <fw@strlen.de>,\n\tYiming Qian <yimingqian591@gmail.com>",
        "Subject": "[PATCH nf] netfilter: nfnetlink_log: account for netlink header size",
        "Date": "Thu, 26 Mar 2026 16:17:24 +0100",
        "Message-ID": "<20260326151730.16233-1-fw@strlen.de>",
        "X-Mailer": "git-send-email 2.52.0",
        "Precedence": "bulk",
        "X-Mailing-List": "netfilter-devel@vger.kernel.org",
        "List-Id": "<netfilter-devel.vger.kernel.org>",
        "List-Subscribe": "<mailto:netfilter-devel+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:netfilter-devel+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "This is a followup to an old bug fix: NLMSG_DONE needs to account\nfor the netlink header size, not just the attribute size.\n\nThis can result in a WARN splat + drop of the netlink message,\nbut other than this there are no ill effects.\n\nFixes: 9dfa1dfe4d5e (\"netfilter: nf_log: account for size of NLMSG_DONE attribute\")\nReported-by: Yiming Qian <yimingqian591@gmail.com>\nSigned-off-by: Florian Westphal <fw@strlen.de>\n---\n net/netfilter/nfnetlink_log.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c\nindex b35a90955e2e..ea80ea72a371 100644\n--- a/net/netfilter/nfnetlink_log.c\n+++ b/net/netfilter/nfnetlink_log.c\n@@ -730,7 +730,7 @@ nfulnl_log_packet(struct net *net,\n \t\t+ nla_total_size(plen)\t\t\t/* prefix */\n \t\t+ nla_total_size(sizeof(struct nfulnl_msg_packet_hw))\n \t\t+ nla_total_size(sizeof(struct nfulnl_msg_packet_timestamp))\n-\t\t+ nla_total_size(sizeof(struct nfgenmsg));\t/* NLMSG_DONE */\n+\t\t+ nlmsg_total_size(sizeof(struct nfgenmsg));\t/* NLMSG_DONE */\n \n \tif (in && skb_mac_header_was_set(skb)) {\n \t\tsize += nla_total_size(skb->dev->hard_header_len)\n",
    "prefixes": [
        "nf"
    ]
}