Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221389/?format=api
{ "id": 2221389, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221389/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260409113414.5800-1-fw@strlen.de/", "project": { "id": 26, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260409113414.5800-1-fw@strlen.de>", "list_archive_url": null, "date": "2026-04-09T11:34:09", "name": "[nf-next] netfilter: nft_fwd_netdev: check ttl/hl before forwarding", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "8bb48d9b033b6b6ecac6fedba2452b272457e902", "submitter": { "id": 1025, "url": "http://patchwork.ozlabs.org/api/1.2/people/1025/?format=api", "name": "Florian Westphal", "email": "fw@strlen.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260409113414.5800-1-fw@strlen.de/mbox/", "series": [ { "id": 499278, "url": "http://patchwork.ozlabs.org/api/1.2/series/499278/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=499278", "date": "2026-04-09T11:34:09", "name": "[nf-next] netfilter: nft_fwd_netdev: check ttl/hl before forwarding", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499278/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221389/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221389/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <netfilter-devel+bounces-11761-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=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11761-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 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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fryWv2lmZz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 21:34:35 +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 583D6301A711\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 9 Apr 2026 11:34:24 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id BED1B3B47D7;\n\tThu, 9 Apr 2026 11:34:23 +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 169863A9605\n\tfor <netfilter-devel@vger.kernel.org>; Thu, 9 Apr 2026 11:34:21 +0000 (UTC)", "by Chamillionaire.breakpoint.cc (Postfix, from userid 1003)\n\tid B780360636; Thu, 09 Apr 2026 13:34:19 +0200 (CEST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775734463; cv=none;\n b=JIeugEQfAsgK5DpmIgy8we9jNvSS3aDwhw7ugHKe/CK004y16sJlNumbvOcNfUGWyirfPwFM3AIjJvt3bxn/OTdVZTbTxGQHWJIzEyqunQ//sBZCmozgdKmVltiHQ0hbuVG1S3zmjlxfzDyQ2CwH5sesMX4XCfb1OC1E86ywDbA=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775734463; c=relaxed/simple;\n\tbh=+a511TALgLeqqdMEIBAs3WNphGKFqiU3hbVlYwW0ZRs=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=Y/ubsBmpbwsqsxFTmrUNTgVAPfDE9QW45LtoVN7lcrb2XTjWbQUwIXvp00QP7PjxJ7vBiPbYNK9hLUPbttPDInS+gLikfWB2MBqjTZpE2d1Kl5eH4+Y6K7j8gv+MZWoHuvn8L9MhEnuVFvQcABY++Rq8Rzheb6mR5XA8YstzvvI=", "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>", "Subject": "[PATCH nf-next] netfilter: nft_fwd_netdev: check ttl/hl before\n forwarding", "Date": "Thu, 9 Apr 2026 13:34:09 +0200", "Message-ID": "<20260409113414.5800-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": "Drop packets if their ttl/hl is too small for forwarding.\n\nFixes: d32de98ea70f (\"netfilter: nft_fwd_netdev: allow to forward packets via neighbour layer\")\nSigned-off-by: Florian Westphal <fw@strlen.de>\n---\n net/netfilter/nft_fwd_netdev.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)", "diff": "diff --git a/net/netfilter/nft_fwd_netdev.c b/net/netfilter/nft_fwd_netdev.c\nindex 5804609c63ab..fb3a84dc7bd9 100644\n--- a/net/netfilter/nft_fwd_netdev.c\n+++ b/net/netfilter/nft_fwd_netdev.c\n@@ -116,6 +116,11 @@ static void nft_fwd_neigh_eval(const struct nft_expr *expr,\n \t\t\tgoto out;\n \t\t}\n \t\tiph = ip_hdr(skb);\n+\t\tif (iph->ttl <= 1) {\n+\t\t\tverdict = NF_DROP;\n+\t\t\tgoto out;\n+\t\t}\n+\n \t\tip_decrease_ttl(iph);\n \t\tneigh_table = NEIGH_ARP_TABLE;\n \t\tbreak;\n@@ -132,6 +137,11 @@ static void nft_fwd_neigh_eval(const struct nft_expr *expr,\n \t\t\tgoto out;\n \t\t}\n \t\tip6h = ipv6_hdr(skb);\n+\t\tif (ip6h->hop_limit <= 1) {\n+\t\t\tverdict = NF_DROP;\n+\t\t\tgoto out;\n+\t\t}\n+\n \t\tip6h->hop_limit--;\n \t\tneigh_table = NEIGH_ND_TABLE;\n \t\tbreak;\n", "prefixes": [ "nf-next" ] }