Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2231610/?format=api
{ "id": 2231610, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231610/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260430232559.285492-1-pablo@netfilter.org/", "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": "<20260430232559.285492-1-pablo@netfilter.org>", "date": "2026-04-30T23:25:55", "name": "[nf,v7,1/4] netfilter: flowtable: ensure sufficient headroom in xmit path", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5f3c343909659312cc5092379b127dacb59c1a84", "submitter": { "id": 1315, "url": "http://patchwork.ozlabs.org/api/1.1/people/1315/?format=api", "name": "Pablo Neira Ayuso", "email": "pablo@netfilter.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260430232559.285492-1-pablo@netfilter.org/mbox/", "series": [ { "id": 502404, "url": "http://patchwork.ozlabs.org/api/1.1/series/502404/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=502404", "date": "2026-04-30T23:25:55", "name": "[nf,v7,1/4] netfilter: flowtable: ensure sufficient headroom in xmit path", "version": 7, "mbox": "http://patchwork.ozlabs.org/series/502404/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231610/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231610/checks/", "tags": {}, "headers": { "Return-Path": "\n <netfilter-devel+bounces-12359-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=IzxzGW1E;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-12359-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=\"IzxzGW1E\"", "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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\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 4g69KL5DDMz1y1d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 09:26:13 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 32B5E3008443\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 23:26:10 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 486743C552B;\n\tThu, 30 Apr 2026 23:26:07 +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 823F13B0AEA\n\tfor <netfilter-devel@vger.kernel.org>; Thu, 30 Apr 2026 23:26:04 +0000 (UTC)", "from localhost.localdomain (mail-agni [217.70.190.124])\n\tby mail.netfilter.org (Postfix) with ESMTPSA id 31B06600B9\n\tfor <netfilter-devel@vger.kernel.org>; Fri, 1 May 2026 01:26:02 +0200 (CEST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777591566; cv=none;\n b=EvN66PW2CS6xY4vEVCjGmAgkDhhUYnA1muQkPHG0nWFZGSFFQll3bHop5ev1sOw1vVZct52jDEmQMgSOxyzRcWxvY0OFoBsq+8wGgaqr5Jb0q81DrMIrAAnmsbELLFNHgY0rrcpQswyZPkxI67bocDWu3Bw8/wEkxay5aqnm5Fg=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777591566; c=relaxed/simple;\n\tbh=lyhsb6VvxTcZtvsIlJEqA+nA1nIKPhbkXEEeL11ci6o=;\n\th=From:To:Subject:Date:Message-ID:MIME-Version;\n b=SSur+lJVflhHZ4EacUV6DyZLrjnnIQtS8kxrRl0DCS5OTPGDCYLmM3dNzVDCTMoyasQ8wgiLzVYIXB80erTf0coLA1ymyWUZzYmcOfk9pDcSqldmcqfPbX4rcmh4CS/iW/1PEnsObLnABghU5A2OBt/+l9mmn6gLcFsU5cJQVgY=", "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=IzxzGW1E; 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=1777591562;\n\tbh=Q6LQrWmQaS6LV2G0oUDbQ9jxXfYTKREsg1L4OPxs++A=;\n\th=From:To:Subject:Date:From;\n\tb=IzxzGW1Eb+LV1Rip5lNHFhP5n2UYKQkQHok3GCOgL60zPF94PUYR2SXW2coKTejdv\n\t JJvnR8bWx96APO+Y6jMkkv7Jns5lx31Gb8UKAw4ZXZ7DBipwBRF+kPOYOFFH+260if\n\t i2pFzSDXL4pg916SVe46dG6paCfBbISi1imiBqzmjdwvgzOI06Ccrf3BNZ32ep8VBB\n\t 40vgIOEVw2tsYB7AYenNJga7CcBqobxwP1Qe+E/M0QQiUgkxT8jZrQrbJwT+a5k3do\n\t JBZVLfu2Ts6WdYCA7u1dOLjKicjVdnsxOp/ynZO0OJoqEh0kmit3YGGicagZ8ZLtwV\n\t Ek7AcSOVxobWA==", "From": "Pablo Neira Ayuso <pablo@netfilter.org>", "To": "netfilter-devel@vger.kernel.org", "Subject": "[PATCH nf,v7 1/4] netfilter: flowtable: ensure sufficient headroom in\n xmit path", "Date": "Fri, 1 May 2026 01:25:55 +0200", "Message-ID": "<20260430232559.285492-1-pablo@netfilter.org>", "X-Mailer": "git-send-email 2.47.3", "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": "Check for headroom and call skb_expand_head() like in the IP output\npath to ensure there is sufficient headroom for the mac header when\nforwarding this packet as suggested by sashiko.\n\nFixes: b5964aac51e0 (\"netfilter: flowtable: consolidate xmit path\")\nSigned-off-by: Pablo Neira Ayuso <pablo@netfilter.org>\n---\nv7: no changes\n\n net/netfilter/nf_flow_table_ip.c | 13 +++++++++++--\n 1 file changed, 11 insertions(+), 2 deletions(-)", "diff": "diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c\nindex dbd7644fdbeb..8d5fb7e940a1 100644\n--- a/net/netfilter/nf_flow_table_ip.c\n+++ b/net/netfilter/nf_flow_table_ip.c\n@@ -471,8 +471,17 @@ struct nf_flow_xmit {\n static unsigned int nf_flow_queue_xmit(struct net *net, struct sk_buff *skb,\n \t\t\t\t struct nf_flow_xmit *xmit)\n {\n-\tskb->dev = xmit->outdev;\n-\tdev_hard_header(skb, skb->dev, ntohs(skb->protocol),\n+\tstruct net_device *dev = xmit->outdev;\n+\tunsigned int hh_len = LL_RESERVED_SPACE(dev);\n+\n+\tif (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) {\n+\t\tskb = skb_expand_head(skb, hh_len);\n+\t\tif (!skb)\n+\t\t\treturn NF_STOLEN;\n+\t}\n+\n+\tskb->dev = dev;\n+\tdev_hard_header(skb, dev, ntohs(skb->protocol),\n \t\t\txmit->dest, xmit->source, skb->len);\n \tdev_queue_xmit(skb);\n \n", "prefixes": [ "nf", "v7", "1/4" ] }