Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227998/?format=api
{ "id": 2227998, "url": "http://patchwork.ozlabs.org/api/patches/2227998/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260424190513.32823-7-pablo@netfilter.org/", "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": "<20260424190513.32823-7-pablo@netfilter.org>", "list_archive_url": null, "date": "2026-04-24T19:05:08", "name": "[net,06/11] netfilter: xt_policy: fix strict mode inbound policy matching", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ccb09e96be13fd14e5477768d79b89fb83afa902", "submitter": { "id": 1315, "url": "http://patchwork.ozlabs.org/api/people/1315/?format=api", "name": "Pablo Neira Ayuso", "email": "pablo@netfilter.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260424190513.32823-7-pablo@netfilter.org/mbox/", "series": [ { "id": 501399, "url": "http://patchwork.ozlabs.org/api/series/501399/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=501399", "date": "2026-04-24T19:05:02", "name": "[net,01/11] netfilter: arp_tables: fix IEEE1394 ARP payload parsing", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501399/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227998/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227998/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <netfilter-devel+bounces-12187-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=netfilter.org header.i=@netfilter.org\n header.a=rsa-sha256 header.s=2025 header.b=sLgORmHO;\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-12187-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=\"sLgORmHO\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=217.70.190.124", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=netfilter.org" ], "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 4g2MtM3Ldmz1yDD\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 05:08:11 +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 557ED3038533\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:05:56 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 196723FA5D8;\n\tFri, 24 Apr 2026 19:05:55 +0000 (UTC)", "from mail.netfilter.org (mail.netfilter.org [217.70.190.124])\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 6D73C3F9F48;\n\tFri, 24 Apr 2026 19:05:53 +0000 (UTC)", "from localhost.localdomain (mail-agni [217.70.190.124])\n\tby mail.netfilter.org (Postfix) with ESMTPSA id 54AEC60178;\n\tFri, 24 Apr 2026 21:05:51 +0200 (CEST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777057554; cv=none;\n b=POlTLK/Gs8B/yrNerMJRhQtyxMfiKVf4I8yuOJzS2yKC61KFmlK5bBm1otbsgF5R2U/ytQYeNDzvIvLmBCG7bZBnHYDq7nvJ1yIBcaCR7qPUmZggY7NENHbCfEUzQT3hDEtrfmwUvSDNX0KfcN/qhaMSLYOKE1V6HgRJBM+CJs4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777057554; c=relaxed/simple;\n\tbh=028gpVSnt0h4/WQhaGMCn9U2LguktmS13hyrI6Ir5yU=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Iy6mCG+uYPJI/b+EdZ8qxO98Kxso3/V75TKZjYGnAsG54Xy8F3l7OJ5xtMWWSVfP6LXrVp1VVFkVx2JQnQxjbiLEnXsuKN7rhLZjoxsl8XBqNgFzWPzXsgMF9xxCFhcv25HwaCxar7LOx+mR5vjnKuRX0S9jReLF6v8FY8xWyGk=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org;\n spf=pass smtp.mailfrom=netfilter.org;\n dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=sLgORmHO; arc=none smtp.client-ip=217.70.190.124", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;\n\ts=2025; t=1777057551;\n\tbh=ATsz83rZMAw5OYOOuuCL9l+aXZu+YgWCziiIs7DSmG4=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=sLgORmHOhD+ZEaDRdVZ1iJCdJqSBKRPvtZ3sMFvms1urCxXTZw/XFNHyCfdVYCv5h\n\t tChOQhJDZE5tY3R3/K4AV9d9bjAtdjMrUrC8DbAaMdOxf4Uv6SZaC+K5iELYyljorL\n\t AUObL4cQrLfQlroJa5h/yaGlapuOGKc4ZBdiuNRaayotsMrm7j2vvZp80XSCjeuskB\n\t hqZVrLU/NkyOT5NGza0Gl0rlHUB12TdbrSPHOamz5NqV6rYf3G4wcHcknR/ZuuSaOD\n\t DjhhPQuKwH1JG1L89RE+QiscFwzsOeeAW7XxJNJYAjEzVvxTGrEvgRpfLgORD5Mneu\n\t jyjDrhO5/vx8g==", "From": "Pablo Neira Ayuso <pablo@netfilter.org>", "To": "netfilter-devel@vger.kernel.org", "Cc": "davem@davemloft.net,\n\tnetdev@vger.kernel.org,\n\tkuba@kernel.org,\n\tpabeni@redhat.com,\n\tedumazet@google.com,\n\tfw@strlen.de,\n\thorms@kernel.org", "Subject": "[PATCH net 06/11] netfilter: xt_policy: fix strict mode inbound\n policy matching", "Date": "Fri, 24 Apr 2026 21:05:08 +0200", "Message-ID": "<20260424190513.32823-7-pablo@netfilter.org>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<20260424190513.32823-1-pablo@netfilter.org>", "References": "<20260424190513.32823-1-pablo@netfilter.org>", "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: Jiexun Wang <wangjiexun2025@gmail.com>\n\nmatch_policy_in() walks sec_path entries from the last transform to the\nfirst one, but strict policy matching needs to consume info->pol[] in\nthe same forward order as the rule layout.\n\nDerive the strict-match policy position from the number of transforms\nalready consumed so that multi-element inbound rules are matched\nconsistently.\n\nFixes: c4b885139203 (\"[NETFILTER]: x_tables: replace IPv4/IPv6 policy match by address family independant version\")\nReported-by: Yuan Tan <yuantan098@gmail.com>\nReported-by: Yifan Wu <yifanwucs@gmail.com>\nReported-by: Juefei Pu <tomapufckgml@gmail.com>\nReported-by: Xin Liu <bird@lzu.edu.cn>\nSigned-off-by: Jiexun Wang <wangjiexun2025@gmail.com>\nSigned-off-by: Ren Wei <n05ec@lzu.edu.cn>\nAcked-by: Florian Westphal <fw@strlen.de>\nSigned-off-by: Pablo Neira Ayuso <pablo@netfilter.org>\n---\n net/netfilter/xt_policy.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/net/netfilter/xt_policy.c b/net/netfilter/xt_policy.c\nindex cb6e8279010a..b5fa65558318 100644\n--- a/net/netfilter/xt_policy.c\n+++ b/net/netfilter/xt_policy.c\n@@ -63,7 +63,7 @@ match_policy_in(const struct sk_buff *skb, const struct xt_policy_info *info,\n \t\treturn 0;\n \n \tfor (i = sp->len - 1; i >= 0; i--) {\n-\t\tpos = strict ? i - sp->len + 1 : 0;\n+\t\tpos = strict ? sp->len - i - 1 : 0;\n \t\tif (pos >= info->len)\n \t\t\treturn 0;\n \t\te = &info->pol[pos];\n", "prefixes": [ "net", "06/11" ] }