get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217906,
    "url": "http://patchwork.ozlabs.org/api/patches/2217906/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/d3d1e38f2001ec225344f24e59727299f6a39a7a.1774578045.git.yifanwucs@gmail.com/",
    "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": "<d3d1e38f2001ec225344f24e59727299f6a39a7a.1774578045.git.yifanwucs@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-30T21:39:24",
    "name": "[RESEND,nf,1/1] netfilter: ipset: drop logically empty buckets in mtype_del",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6b98140112da2bc75a86227f71ebab03e8861487",
    "submitter": {
        "id": 93015,
        "url": "http://patchwork.ozlabs.org/api/people/93015/?format=api",
        "name": "Yuan Tan",
        "email": "yuantan098@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/d3d1e38f2001ec225344f24e59727299f6a39a7a.1774578045.git.yifanwucs@gmail.com/mbox/",
    "series": [
        {
            "id": 498100,
            "url": "http://patchwork.ozlabs.org/api/series/498100/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=498100",
            "date": "2026-03-30T21:39:24",
            "name": "[RESEND,nf,1/1] netfilter: ipset: drop logically empty buckets in mtype_del",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498100/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217906/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217906/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <netfilter-devel+bounces-11508-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\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=GIXgWO7u;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11508-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"GIXgWO7u\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=74.125.82.173",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fl4Td3kCxz1yCp\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 08:42:13 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 16CB03025D07\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 21:39:38 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 772AB3A3E78;\n\tMon, 30 Mar 2026 21:39:37 +0000 (UTC)",
            "from mail-dy1-f173.google.com (mail-dy1-f173.google.com\n [74.125.82.173])\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 D2F9F39C003\n\tfor <netfilter-devel@vger.kernel.org>; Mon, 30 Mar 2026 21:39:35 +0000 (UTC)",
            "by mail-dy1-f173.google.com with SMTP id\n 5a478bee46e88-2c17446ba8dso3081617eec.1\n        for <netfilter-devel@vger.kernel.org>;\n Mon, 30 Mar 2026 14:39:35 -0700 (PDT)",
            "from homebox ([66.75.253.8])\n        by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2c3c6e9ca80sm9442934eec.22.2026.03.30.14.39.33\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 30 Mar 2026 14:39:34 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774906777; cv=none;\n b=LsHJ7kh+6hKzdN7qc7mcmLX+FPVUl8WO+vBOfy8xm0u8eaM46L56no9Tvcf3F2h5c8ifRMhd6k+74cNWCarvb1DEplB6FafQr82QeHTUBljR9cvZ1ze7bBO9kSBuq/BkXpBXtDlYg6X+Dcbgr37eDDTY1QTEGCsVBhF4ZUQFNcI=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774906777; c=relaxed/simple;\n\tbh=w1xV/EUcK7/dYSGBg1rpTrGylAsD+2fDisuaSKCRvho=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=qizZkc65v/fwBOx6+RWUFaf1STLElyNUSIUl4+732erPK3QHjeefpUmPWhjq+Ph8ZUsU/Wh7PmSlmsROW7ZsbQHy9nbtKOW2C6dhc8wQnb63HMHPDJEr+8WoRlzM9fxt+Kv8Wu5bFYbg4YH2OiIidJUI7fcuMKg10JlgKPIMqqs=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=GIXgWO7u; arc=none smtp.client-ip=74.125.82.173",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1774906775; x=1775511575;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=gEZ7uR9Nuo1arrIaibUGqQrfzt6wk555gPSPMF4RGN0=;\n        b=GIXgWO7uTK0G+e4o9xW8lr23BgU0gYGdP1GNZlEnYT7x0PGzs4L7I46gIS8MnuiUgi\n         4WFjpXKP0YAjhxWVNexE+0e7QPNHhNk3a9Khqpn1NymfPCkv0VAUtjOrK3FnY3ZvSgec\n         nXsdTtNu0KE7HKGrhro+3UyhGZnxn7CmvClNh0oPJVJByIfwsea9Bwnrd9ZmZCxKmwqI\n         aFY0R7vGDyvpRU3+U828FR0KR1eTbl6jRZ3fgrgWNiBe+B295oUjLbfRuxLBatiJ0rZO\n         ftiK77wt6ShXuDcAWzaAN4sop6R6Yfn9vy3ZcBjocxHsAbK8A/RhppwhOoOxWTnJnu+j\n         GQAw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1774906775; x=1775511575;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=gEZ7uR9Nuo1arrIaibUGqQrfzt6wk555gPSPMF4RGN0=;\n        b=QgXMX+ERnMjAtvcnTj1fst4lBR9JvKCLixyzi0vUn0XMR3+dWhh9OAR4fYjRoxmGTh\n         6sSVinUUtMlJgNztZbm1u18kAhDLsEtWTTJREtJqAkFJUt6U05rw+aOw9IdYsQavqH8A\n         dMlWMdnA8B2RJfU2qbV6e9j54TozlZPnOqYUrQ5CWl2OVQzTiflaAbPc9jpxOtoCH6ay\n         FIOKmqOaWj6cv4uuIaiqAwhm/HI80Csp2E7zS2jypaOZZS9iYPnGDPWf8Yer1GXVwXD5\n         9mZVfhgOdgkBNUzgV14pPCqTYnClh4DIJGUGxwRwWFu7iFklJ6uWLwUsPYUiyQi0BiDi\n         4S9g==",
        "X-Gm-Message-State": "AOJu0YzONQJaJ2JEHGrl5LdJoLFSkLjI/NA9cx5cImBBqxwlvdZykAAh\n\tUStEFerJtYAm/YdKYgNQhIcwFMorPeZz+RWcoXuAMWERDB42E78dp6mQV7OmAAeS",
        "X-Gm-Gg": "ATEYQzyYkDi+lAIOCOKmLeNrc+sPk4WhwC7GU4LON8RwWJrhfD8WPZtlP8LN3YXYsfI\n\tuL6efQyNZjGAdNni8FFTwyAeyBlXywYeaPGjOFRtbpz9Z3IHz2rFDfuBFeKFs5ebFEdfSe2dsbS\n\tYd9eWzr5CDxkpFWGln1/WFEOb927dou7izbFGrmV/kQKU7/GN3QVuqDn8hOLZ0uh788hRSCRca/\n\tq/99RktdJSKLd8mVuKvMsNUmbiasA9Q/iObnjvC4c1ZzfQPHFHLCj6J8XdeeqlIZq7oyeYJUlHX\n\thQbqY/BluHApXURZ+hkCDSAYcz1uR+wPhiPQafBL+bg9zIQDf1ARU/kQoPEc7tZQeUy8x27X/0N\n\tB8rU6iAoyuuX1GbKu4Or5Hr+2VqmGAlJnd57d3PAX+JyDzugSyySi6qB9YVxJydXRLrbQIwI/d7\n\tmdLdLFbj2iZNQsdsTP",
        "X-Received": "by 2002:a05:7300:d51a:b0:2c4:e154:dc28 with SMTP id\n 5a478bee46e88-2c7bd86d7c6mr687652eec.20.1774906774675;\n        Mon, 30 Mar 2026 14:39:34 -0700 (PDT)",
        "From": "Yuan Tan <yuantan098@gmail.com>",
        "X-Google-Original-From": "Yuan Tan <tanyuan98@outlook.com>",
        "To": "netfilter-devel@vger.kernel.org,\n\tfw@strlen.de",
        "Cc": "security@kernel.org,\n\tpablo@netfilter.org,\n\tphil@nwl.cc,\n\tdavem@davemloft.net,\n\tedumazet@google.com,\n\tkuba@kernel.org,\n\tpabeni@redhat.com,\n\thorms@kernel.org,\n\tzhen.ni@easystack.cn,\n\tkadlec@netfilter.org,\n\tkees@kernel.org,\n\ttomapufckgml@gmail.com,\n\tdstsmallbird@foxmail.com,\n\tyifanwucs@gmail.com,\n\tyuantan098@gmail.com",
        "Subject": "[PATCH RESEND nf 1/1] netfilter: ipset: drop logically empty buckets\n in mtype_del",
        "Date": "Mon, 30 Mar 2026 14:39:24 -0700",
        "Message-ID": "\n <d3d1e38f2001ec225344f24e59727299f6a39a7a.1774578045.git.yifanwucs@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<cover.1774578045.git.yifanwucs@gmail.com>",
        "References": "<cover.1774578045.git.yifanwucs@gmail.com>",
        "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": "From: Yifan Wu <yifanwucs@gmail.com>\n\nmtype_del() counts empty slots below n->pos in k, but it only drops the\nbucket when both n->pos and k are zero. This misses buckets whose live\nentries have all been removed while n->pos still points past deleted slots.\n\nTreat a bucket as empty when all positions below n->pos are unused and\nrelease it directly instead of shrinking it further.\n\nFixes: 8af1c6fbd923 (\"netfilter: ipset: Fix forceadd evaluation path\")\nCc: stable@vger.kernel.org\nReported-by: Juefei Pu <tomapufckgml@gmail.com>\nReported-by: Xin Liu <dstsmallbird@foxmail.com>\nSigned-off-by: Yifan Wu <yifanwucs@gmail.com>\nCo-developed-by: Yuan Tan <yuantan098@gmail.com>\nSigned-off-by: Yuan Tan <yuantan098@gmail.com>\nReviewed-by: Phil Sutter <phil@nwl.cc>\n---\n\nThis email was not CCed to the public mailing list previously, so I am\nresending it with the mailing list included. Sorry for the inconvenience.\n\nAlso, as I understand it, when resending a patch, it is acceptable to carry\nover a Reviewed-by or similar tag from an earlier version. Please correct\nme if I have misunderstood.\n\n net/netfilter/ipset/ip_set_hash_gen.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/net/netfilter/ipset/ip_set_hash_gen.h b/net/netfilter/ipset/ip_set_hash_gen.h\nindex 181daa9c2019..b79e5dd2af03 100644\n--- a/net/netfilter/ipset/ip_set_hash_gen.h\n+++ b/net/netfilter/ipset/ip_set_hash_gen.h\n@@ -1098,7 +1098,7 @@ mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext,\n \t\t\tif (!test_bit(i, n->used))\n \t\t\t\tk++;\n \t\t}\n-\t\tif (n->pos == 0 && k == 0) {\n+\t\tif (k == n->pos) {\n \t\t\tt->hregion[r].ext_size -= ext_size(n->size, dsize);\n \t\t\trcu_assign_pointer(hbucket(t, key), NULL);\n \t\t\tkfree_rcu(n, rcu);\n",
    "prefixes": [
        "RESEND",
        "nf",
        "1/1"
    ]
}