Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2233412/?format=api
{ "id": 2233412, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2233412/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260506121618.578443-3-lixiasong1@huawei.com/", "project": { "id": 26, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260506121618.578443-3-lixiasong1@huawei.com>", "date": "2026-05-06T12:16:18", "name": "[nft,2/2] netfilter: nft_ct: fix missing expect put in obj eval", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "fe6c921fb2d28ae46b332b4c763bc90657d214a0", "submitter": { "id": 93343, "url": "http://patchwork.ozlabs.org/api/1.1/people/93343/?format=api", "name": "Li Xiasong", "email": "lixiasong1@huawei.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260506121618.578443-3-lixiasong1@huawei.com/mbox/", "series": [ { "id": 502974, "url": "http://patchwork.ozlabs.org/api/1.1/series/502974/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=502974", "date": "2026-05-06T12:16:16", "name": "netfilter: fix nf_ct_expect_alloc() reference leaks", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502974/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2233412/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2233412/checks/", "tags": {}, "headers": { "Return-Path": "\n <netfilter-devel+bounces-12463-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 (1024-bit key;\n unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256\n header.s=dkim header.b=ixOHXYOe;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-12463-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com\n header.b=\"ixOHXYOe\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=113.46.200.222", "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=huawei.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=huawei.com" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4g9Ycm4ZPmz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 21:51:20 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id E63BE3019190\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 6 May 2026 11:51:02 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F1DC943DA2B;\n\tWed, 6 May 2026 11:51:01 +0000 (UTC)", "from canpmsgout07.his.huawei.com (canpmsgout07.his.huawei.com\n [113.46.200.222])\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 CC4B534A76F;\n\tWed, 6 May 2026 11:50:59 +0000 (UTC)", "from mail.maildlp.com (unknown [172.19.163.214])\n\tby canpmsgout07.his.huawei.com (SkyGuard) with ESMTPS id 4g9YRZ5q7LzLlTq;\n\tWed, 6 May 2026 19:43:22 +0800 (CST)", "from kwepemj500018.china.huawei.com (unknown [7.202.194.48])\n\tby mail.maildlp.com (Postfix) with ESMTPS id 3A0434056C;\n\tWed, 6 May 2026 19:50:55 +0800 (CST)", "from huawei.com (10.50.85.128) by kwepemj500018.china.huawei.com\n (7.202.194.48) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 6 May\n 2026 19:50:54 +0800" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778068261; cv=none;\n b=FONbbN1ODHLm4uCrP7U3cF3xWGf0lbqM2aNc1JTVIIPMPl4sVHCvDL9jMwn0rkdLd8o/+idNzRWCnVCbh5iI7BTTwfbNt4UtUM3cngRt7+cT+s7/WKCnx881LlDFoY2MJXGG+w9Sn6e6sFCvFS7W2ygSJJxqyUFIm6HljSykvPE=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778068261; c=relaxed/simple;\n\tbh=1jjyzn/wfmqboTm8tQQkfuG/UP+xXoIksMAk0d4wq5k=;\n\th=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=aqM5NJogfTfi+XorrEZv8HAmHikyYWYrh0q0+tsQdCtf5BTvAGhNtqN/dDKBBoAEphX9e2WZnkwhqAf07wjyfe6YhG9Rxz8poUhcFMGf3miG8mKK/aLGOE8dJ4OGN0RZhySKuRF3ochMyvA3jcK/su5JgzHlmVuEXxLT/8t1ddM=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=huawei.com;\n spf=pass smtp.mailfrom=huawei.com;\n dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com\n header.b=ixOHXYOe; arc=none smtp.client-ip=113.46.200.222", "dkim-signature": "v=1; a=rsa-sha256; d=huawei.com; s=dkim;\n\tc=relaxed/relaxed; q=dns/txt;\n\th=From;\n\tbh=606UbMcorULUuW0bd3DLo8nq4xbJ/M8vcj6aLLrlzFE=;\n\tb=ixOHXYOeybb23DYy1jvKoyD1Lj7nFaTY1O5yDh45TdjM2pPNJedy3Qj6qys+XKlQ1qOJzuXkG\n\t0QBEBeBSE5xa2gPoqNrHO1tPYeFlw6Q0WO/wcgbVKvWaksTwuXg9rdFl9gJChmNFs7zaRKKNFuD\n\t4zYrWqbdOKFh2JyQ/1IE7bM=", "From": "Li Xiasong <lixiasong1@huawei.com>", "To": "<netfilter-devel@vger.kernel.org>", "CC": "<stable@vger.kernel.org>, Pablo Neira Ayuso <pablo@netfilter.org>, Florian\n Westphal <fw@strlen.de>, Phil Sutter <phil@nwl.cc>, <coreteam@netfilter.org>,\n\t<yuehaibing@huawei.com>, <zhangchangzhong@huawei.com>,\n\t<weiyongjun1@huawei.com>", "Subject": "[PATCH nft 2/2] netfilter: nft_ct: fix missing expect put in obj eval", "Date": "Wed, 6 May 2026 20:16:18 +0800", "Message-ID": "<20260506121618.578443-3-lixiasong1@huawei.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260506121618.578443-1-lixiasong1@huawei.com>", "References": "<20260506121618.578443-1-lixiasong1@huawei.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-Type": "text/plain", "X-ClientProxiedBy": "kwepems100002.china.huawei.com (7.221.188.206) To\n kwepemj500018.china.huawei.com (7.202.194.48)" }, "content": "nft_ct_expect_obj_eval() allocates an expectation and may call\nnf_ct_expect_related(), but never drops its local reference.\n\nAdd nf_ct_expect_put(exp) before return to balance allocation.\n\nFixes: 857b46027d6f (\"netfilter: nft_ct: add ct expectations support\")\nCc: stable@vger.kernel.org\nSigned-off-by: Li Xiasong <lixiasong1@huawei.com>\n---\n net/netfilter/nft_ct.c | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c\nindex 60ee8d932fcb..fa2cc556331c 100644\n--- a/net/netfilter/nft_ct.c\n+++ b/net/netfilter/nft_ct.c\n@@ -1334,6 +1334,8 @@ static void nft_ct_expect_obj_eval(struct nft_object *obj,\n \n \tif (nf_ct_expect_related(exp, 0) != 0)\n \t\tregs->verdict.code = NF_DROP;\n+\n+\tnf_ct_expect_put(exp);\n }\n \n static const struct nla_policy nft_ct_expect_policy[NFTA_CT_EXPECT_MAX + 1] = {\n", "prefixes": [ "nft", "2/2" ] }