netfilter: updates for net
Subsystems (3)
Florian Westphal
maintainercover netfilter: updates for net
Hi,
The following patchset contains Netfilter fixes for *net*:
1) Fix a bug with vlan headers in the flowtable infrastructure. Existing code uses skb_vlan_push() helper, but that helper requires skb->data to point to the MAC header, which isn't the case for flowtables. Switch to a new helper, modeled on the existing PPPoE helper. From Eric Woudstra. This bug was added in v6.19-rc1.
2) Inseo An reported a bug with the set element handling in nf_tables:
When set cannot accept more elements, we unlink and immediately free an element that was inserted into a public data structure, freeing it without waiting for RCU grace period. Fix this by doing the increment earlier and by deferring possible unlink-and-free to the existing abort path, which performs the needed synchronize_rcu before free. From Pablo Neira Ayuso. This is an ancient bug, dating back to kernel 4.10.
3) syzbot reported WARN_ON() splat in nf_tables that occurs on memory allocation failure. Fix this by a new iterator annotation:
The affected walker does not need to clone the data structure and can just use the live version if no clone exists yet. Also from Pablo. This bug existed since 6.10 days.
4) Ancient forever bug in nft_pipapo data structure:
The garbage collection logic to remove expired elements is broken. We must unlink from data structure and can only hand the freeing to call_rcu after the clone/live pointers of the data structures have been swapped. Else, readers can observe the free'd element. Reported by Yiming Qian.
Please, pull these changes from:
The following changes since commit fbdfa8da05b6ae44114fc4f9b3e83e1736fd411c:
selftests: tc-testing: fix list_categories() crash on list type (2026-03-04 05:42:57 +0000)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-03-04
for you to fetch changes up to 41c5c0124bd9528c32c9ebd5f8b8f8eb800e77c3:
netfilter: nft_set_pipapo: split gc into unlink and reclaim phase (2026-03-04 15:39:33 +0100)
----------------------------------------------------------------
netfilter pull request nf-26-03-04
----------------------------------------------------------------
Eric Woudstra (1):
netfilter: nf_flow_table_ip: Introduce nf_flow_vlan_push()
Florian Westphal (1):
netfilter: nft_set_pipapo: split gc into unlink and reclaim phase
Pablo Neira Ayuso (2):
netfilter: nf_tables: unconditionally bump set->nelems before insertion
netfilter: nf_tables: clone set on flush only
include/net/netfilter/nf_tables.h | 7 ++++ net/netfilter/nf_flow_table_ip.c | 25 ++++++++++++- net/netfilter/nf_tables_api.c | 45 ++++++++++++---------- net/netfilter/nft_set_hash.c | 1 + net/netfilter/nft_set_pipapo.c | 62 ++++++++++++++++++++++++++----- net/netfilter/nft_set_pipapo.h | 2 + net/netfilter/nft_set_rbtree.c | 8 ++-- 7 files changed, 115 insertions(+), 35 deletions(-)
Signature · 1 line
2.52.0
Florian Westphal
maintainerPATCH 1/4 netfilter: nf_flow_table_ip: Introduce nf_flow_vlan_push()
From: Eric Woudstra <[email protected]>
With double vlan tagged packets in the fastpath, getting the error:
skb_vlan_push got skb with skb->data not at mac header (offset 18)
Introduce nf_flow_vlan_push(), that can correctly push the inner vlan in the fastpath. It is closedly modelled on existing nf_flow_pppoe_push()
--- net/netfilter/nf_flow_table_ip.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)
net/netfilter/nf_flow_table_ip.c +23 -2
@@ -544,6 +544,27 @@ static int nf_flow_offload_forward(struct nf_flowtable_ctx *ctx,return 1 ; } +static int nf_flow_vlan_push (struct sk_buff *skb,__be16 proto,u16 id) +{ +if (skb_vlan_tag_present (skb)) { +struct vlan_hdr *vhdr; + +if (skb_cow_head (skb,VLAN_HLEN )) +return -1 ; + +__skb_push (skb,VLAN_HLEN ); +skb_reset_network_header (skb); + + vhdr = (struct vlan_hdr *)(skb->data); + vhdr->h_vlan_TCI =htons (id); + vhdr->h_vlan_encapsulated_proto = skb->protocol; + skb->protocol = proto; + }else { +__vlan_hwaccel_put_tag (skb, proto, id); + } +return 0 ; +} +static int nf_flow_pppoe_push (struct sk_buff *skb,u16 id) {int data_len = skb->len +sizeof (__be16);
@@ -738,8 +759,8 @@ static int nf_flow_encap_push(struct sk_buff *skb,switch (tuple->encap[i].proto) {case htons (ETH_P_8021Q ):case htons (ETH_P_8021AD ): -if (skb_vlan_push (skb, tuple->encap[i].proto, - tuple->encap[i].id) <0 ) +if (nf_flow_vlan_push (skb, tuple->encap[i].proto, + tuple->encap[i].id) <0 )return -1 ;break ;case htons (ETH_P_PPP_SES ):
Signature · 1 line
2.52.0
Florian Westphal
maintainerPATCH 2/4 netfilter: nf_tables: unconditionally bump set->nelems before insertion
In reply to Florian WestphalFrom: Pablo Neira Ayuso <[email protected]>
In case that the set is full, a new element gets published then removed without waiting for the RCU grace period, while RCU reader can be walking over it already.
To address this issue, add the element transaction even if set is full, but toggle the set_full flag to report -ENFILE so the abort path safely unwinds the set to its previous state.
As for element updates, decrement set->nelems to restore it.
A simpler fix is to call synchronize_rcu() in the error path. However, with a large batch adding elements to already maxed-out set, this could cause noticeable slowdown of such batches.
--- net/netfilter/nf_tables_api.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-)
net/netfilter/nf_tables_api.c +16 -14
@@ -7170,6 +7170,7 @@ static int nft_add_set_elem(struct nft_ctx *ctx, struct nft_set *set,struct nft_data_desc desc;enum nft_registers dreg;struct nft_trans *trans; +bool set_full = false;u64 expiration;u64 timeout;int err, i;
@@ -7461,10 +7462,18 @@ static int nft_add_set_elem(struct nft_ctx *ctx, struct nft_set *set,if (err <0 ) goto err_elem_free; +if (!(flags &NFT_SET_ELEM_CATCHALL )) { +unsigned int max =nft_set_maxsize (set), nelems; + + nelems =atomic_inc_return (&set->nelems); +if (nelems > max) + set_full = true; + } + trans =nft_trans_elem_alloc (ctx,NFT_MSG_NEWSETELEM , set);if (trans ==NULL ) { err = -ENOMEM ; - goto err_elem_free; + goto err_set_size; } ext->genmask =nft_genmask_cur (ctx->net);
@@ -7516,7 +7525,7 @@ static int nft_add_set_elem(struct nft_ctx *ctx, struct nft_set *set, ue->priv = elem_priv;nft_trans_commit_list_add_elem (ctx->net, trans); - goto err_elem_free; + goto err_set_size; } } }
@@ -7534,23 +7543,16 @@ static int nft_add_set_elem(struct nft_ctx *ctx, struct nft_set *set, goto err_element_clash; } -if (!(flags &NFT_SET_ELEM_CATCHALL )) { -unsigned int max =nft_set_maxsize (set); - -if (!atomic_add_unless (&set->nelems,1 , max)) { - err = -ENFILE ; - goto err_set_full; - } - } -nft_trans_container_elem (trans)->elems[0 ].priv = elem.priv;nft_trans_commit_list_add_elem (ctx->net, trans); -return 0 ; -err_set_full: -nft_setelem_remove (ctx->net, set, elem.priv); +return set_full ? -ENFILE :0 ; + err_element_clash:kfree (trans); +err_set_size: +if (!(flags &NFT_SET_ELEM_CATCHALL )) +atomic_dec (&set->nelems); err_elem_free:nf_tables_set_elem_destroy (ctx, set, elem.priv); err_parse_data:
Signature · 1 line
2.52.0
Florian Westphal
maintainerPATCH 3/4 netfilter: nf_tables: clone set on flush only
In reply to Florian WestphalFrom: Pablo Neira Ayuso <[email protected]>
Syzbot with fault injection triggered a failing memory allocation with GFP_KERNEL which results in a WARN splat:
iter.err
WARNING: net/netfilter/nf_tables_api.c:845 at nft_map_deactivate+0x34e/0x3c0 net/netfilter/nf_tables_api.c:845, CPU#0: syz.0.17/5992 Modules linked in: CPU: 0 UID: 0 PID: 5992 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 RIP: 0010:nft_map_deactivate+0x34e/0x3c0 net/netfilter/nf_tables_api.c:845 Code: 8b 05 86 5a 4e 09 48 3b 84 24 a0 00 00 00 75 62 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 63 6d fa f7 90 <0f> 0b 90 43 +80 7c 35 00 00 0f 85 23 fe ff ff e9 26 fe ff ff 89 d9 RSP: 0018:ffffc900045af780 EFLAGS: 00010293 RAX: ffffffff89ca45bd RBX: 00000000fffffff4 RCX: ffff888028111e40 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc900045af870 R08: 0000000000400dc0 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d141db R12: ffffc900045af7e0 R13: 1ffff920008b5f24 R14: dffffc0000000000 R15: ffffc900045af920 FS: 000055557a6a5500(0000) GS:ffff888125496000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb5ea271fc0 CR3: 000000003269e000 CR4: 00000000003526f0 Call Trace: <TASK> __nft_release_table+0xceb/0x11f0 net/netfilter/nf_tables_api.c:12115 nft_rcv_nl_event+0xc25/0xdb0 net/netfilter/nf_tables_api.c:12187 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 blocking_notifier_call_chain+0x6a/0x90 kernel/notifier.c:380 netlink_release+0x123b/0x1ad0 net/netlink/af_netlink.c:761 __sock_release net/socket.c:662 [inline] sock_close+0xc3/0x240 net/socket.c:1455
Restrict set clone to the flush set command in the preparation phase. Add NFT_ITER_UPDATE_CLONE and use it for this purpose, update the rbtree and pipapo backends to only clone the set when this iteration type is used.
As for the existing NFT_ITER_UPDATE type, update the pipapo backend to use the existing set clone if available, otherwise use the existing set representation. After this update, there is no need to clone a set that is being deleted, this includes bound anonymous set.
An alternative approach to NFT_ITER_UPDATE_CLONE is to add a .clone interface and call it from the flush set path.
--- include/net/netfilter/nf_tables.h | 2 ++ net/netfilter/nf_tables_api.c | 10 +++++++++- net/netfilter/nft_set_hash.c | 1 + net/netfilter/nft_set_pipapo.c | 11 +++++++++-- net/netfilter/nft_set_rbtree.c | 8 +++++--- 5 files changed, 26 insertions(+), 6 deletions(-)
include/net/netfilter/nf_tables.h +2 -0
@@ -320,11 +320,13 @@ static inline void *nft_elem_priv_cast(const struct nft_elem_priv *priv)* @NFT_ITER_UNSPEC: unspecified, to catch errors * @NFT_ITER_READ: read-only iteration over set elements * @NFT_ITER_UPDATE: iteration under mutex to update set element state +* @NFT_ITER_UPDATE_CLONE: clone set before iteration under mutex to update element */ enum nft_iter_type {NFT_ITER_UNSPEC ,NFT_ITER_READ ,NFT_ITER_UPDATE , +NFT_ITER_UPDATE_CLONE , };struct nft_set ;
net/netfilter/nf_tables_api.c +9 -1
@@ -833,6 +833,11 @@ static void nft_map_catchall_deactivate(const struct nft_ctx *ctx, } } +/* Use NFT_ITER_UPDATE iterator even if this may be called from the preparation +* phase, the set clone might already exist from a previous command, or it might +* be a set that is going away and does not require a clone. The netns and +* netlink release paths also need to work on the live set. +*/ static void nft_map_deactivate (const struct nft_ctx *ctx,struct nft_set *set) {struct nft_set_iter iter = {
@@ -7903,9 +7908,12 @@ static int nft_set_catchall_flush(const struct nft_ctx *ctx,static int nft_set_flush (struct nft_ctx *ctx,struct nft_set *set,u8 genmask) { +/* The set backend might need to clone the set, do it now from the +* preparation phase, use NFT_ITER_UPDATE_CLONE iterator type. +*/ struct nft_set_iter iter = { .genmask = genmask, - .type =NFT_ITER_UPDATE , + .type =NFT_ITER_UPDATE_CLONE , .fn = nft_setelem_flush, };
net/netfilter/nft_set_hash.c +1 -0
@@ -374,6 +374,7 @@ static void nft_rhash_walk(const struct nft_ctx *ctx, struct nft_set *set, {switch (iter->type) {case NFT_ITER_UPDATE : +case NFT_ITER_UPDATE_CLONE :/* only relevant for netlink dumps which use READ type */ WARN_ON_ONCE (iter->skip !=0 );
net/netfilter/nft_set_pipapo.c +9 -2
@@ -2144,13 +2144,20 @@ static void nft_pipapo_walk(const struct nft_ctx *ctx, struct nft_set *set,const struct nft_pipapo_match *m;switch (iter->type) { -case NFT_ITER_UPDATE : +case NFT_ITER_UPDATE_CLONE : m =pipapo_maybe_clone (set);if (!m) { iter->err = -ENOMEM ;return ; } - +nft_pipapo_do_walk (ctx, set, m, iter); +break ; +case NFT_ITER_UPDATE : +if (priv->clone) + m = priv->clone; +else + m =rcu_dereference_protected (priv->match, +nft_pipapo_transaction_mutex_held (set));nft_pipapo_do_walk (ctx, set, m, iter);break ;case NFT_ITER_READ :
net/netfilter/nft_set_rbtree.c +5 -3
@@ -861,13 +861,15 @@ static void nft_rbtree_walk(const struct nft_ctx *ctx,struct nft_rbtree *priv =nft_set_priv (set);switch (iter->type) { -case NFT_ITER_UPDATE : -lockdep_assert_held (&nft_pernet (ctx->net)->commit_mutex); - +case NFT_ITER_UPDATE_CLONE :if (nft_array_may_resize (set) <0 ) { iter->err = -ENOMEM ;break ; } + fallthrough; +case NFT_ITER_UPDATE : +lockdep_assert_held (&nft_pernet (ctx->net)->commit_mutex); +nft_rbtree_do_walk (ctx, set, iter);break ;case NFT_ITER_READ :
Signature · 1 line
2.52.0
Florian Westphal
maintainerPATCH 4/4 netfilter: nft_set_pipapo: split gc into unlink and reclaim phase
In reply to Florian WestphalYiming Qian reports Use-after-free in the pipapo set type:
Under a large number of expired elements, commit-time GC can run for a very long time in a non-preemptible context, triggering soft lockup warnings and RCU stall reports (local denial of service).
We must split GC in an unlink and a reclaim phase.
We cannot queue elements for freeing until pointers have been swapped. Expired elements are still exposed to both the packet path and userspace dumpers via the live copy of the data structure.
call_rcu() does not protect us: dump operations or element lookups starting after call_rcu has fired can still observe the free'd element, unless the commit phase has made enough progress to swap the clone and live pointers before any new reader has picked up the old version.
This a similar approach as done recently for the rbtree backend in commit 35f83a75529a ("netfilter: nft_set_rbtree: don't gc elements on insert").
--- include/net/netfilter/nf_tables.h | 5 +++ net/netfilter/nf_tables_api.c | 5 --- net/netfilter/nft_set_pipapo.c | 51 ++++++++++++++++++++++++++----- net/netfilter/nft_set_pipapo.h | 2 ++ 4 files changed, 50 insertions(+), 13 deletions(-)
include/net/netfilter/nf_tables.h +5 -0
@@ -1863,6 +1863,11 @@ struct nft_trans_gc {struct rcu_head rcu; }; +static inline int nft_trans_gc_space (const struct nft_trans_gc *trans) +{ +return NFT_TRANS_GC_BATCHCOUNT - trans->count; +} +static inline void nft_ctx_update (struct nft_ctx *ctx,const struct nft_trans *trans) {
net/netfilter/nf_tables_api.c +0 -5
@@ -10493,11 +10493,6 @@ static void nft_trans_gc_queue_work(struct nft_trans_gc *trans)schedule_work (&trans_gc_work); } -static int nft_trans_gc_space (struct nft_trans_gc *trans) -{ -return NFT_TRANS_GC_BATCHCOUNT - trans->count; -} -struct nft_trans_gc *nft_trans_gc_queue_async (struct nft_trans_gc *gc,unsigned int gc_seq,gfp_t gfp) {
net/netfilter/nft_set_pipapo.c +43 -8
110 lines not on this page · raw message
net/netfilter/nft_set_pipapo.h +2 -0
@@ -156,12 +156,14 @@ struct nft_pipapo_match {* @clone: Copy where pending insertions and deletions are kept * @width: Total bytes to be matched for one packet, including padding * @last_gc: Timestamp of last garbage collection run, jiffies +* @gc_head: list of nft_trans_gc to queue up for mem reclaim */ struct nft_pipapo {struct nft_pipapo_match __rcu *match;struct nft_pipapo_match *clone;int width;unsigned long last_gc; +struct list_head gc_head; };struct nft_pipapo_elem ;
Signature · 1 line
2.52.0
Pablo Neira Ayuso
maintainerHi Florian,
Quoted 10 lines · Florian Westphal
Hi,
The following patchset contains Netfilter fixes for *net*:
1) Fix a bug with vlan headers in the flowtable infrastructure. Existing code uses
skb_vlan_push()helper, but that helper requiresskb->datato point to the MAC header, which isn't the case for flowtables. Switch to a new helper, modeled on the existing PPPoE helper. From Eric Woudstra. This bug was added in v6.19-rc1.
In patch 1/4, why is this new function so different wrt. skb_vlan_push?
int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci)
{
if (skb_vlan_tag_present(skb)) {
int offset = skb->data - skb_mac_header(skb);
int err;
if (WARN_ONCE(offset,
"skb_vlan_push got skb with skb->data not at mac header (offset %d)\n",
offset)) {
return -EINVAL;
}
err = __vlan_insert_tag(skb, skb->vlan_proto,
skb_vlan_tag_get(skb));
if (err)
return err;
skb->protocol = skb->vlan_proto;
skb->network_header -= VLAN_HLEN;
skb_postpush_rcsum(skb, skb->data + (2 * ETH_ALEN), VLAN_HLEN);
}
__vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci);In case there are two VLANs, the existing in hwaccel gets pushed into the VLAN header, and the outer VLAN becomes the one that is offloaded?
Is this reversed in this patch? The first VLAN tag is offloaded, then the next one coming is pushed as a VLAN header?
Thanks.
Florian Westphal
maintainerQuoted 7 lines · Pablo Neira Ayuso
Hi Florian,
Quoted 4 lines · Florian Westphal
Hi,
The following patchset contains Netfilter fixes for *net*:
Quoted 9 lines
Quoted 6 lines
1) Fix a bug with vlan headers in the flowtable infrastructure. Existing code uses
skb_vlan_push()helper, but that helper requiresskb->datato point to the MAC header, which isn't the case for flowtables. Switch to a new helper, modeled on the existing PPPoE helper. From Eric Woudstra. This bug was added in v6.19-rc1.In patch 1/4, why is this new function so different wrt.
skb_vlan_push?
I asked that to Eric when I reviewed this, and that was his reply:
--------------------------------------------------------------------
The code here for the inner header is an almost exact copy of nf_flow_pppoe_push(), which was also implemented at the same time. So handling pppoe and inner-vlan header is implemented in the same manner, which keeps it simple and uniform. If one functions (in)correctly, then so would the other.
I've been implementing handling the inner vlan header like this for a half year now. My version of nf_flow_encap_push() was a bit different, but after this patch it is quite similar.
--------------------------------------------------------------------
Quoted 10 lines
skb_postpush_rcsum(skb, skb->data + (2 * ETH_ALEN), VLAN_HLEN); } __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci);In case there are two VLANs, the existing in hwaccel gets pushed into the VLAN header, and the outer VLAN becomes the one that is offloaded?
Is this reversed in this patch? The first VLAN tag is offloaded, then the next one coming is pushed as a VLAN header?
Yes, it looks broken. I wonder why we have no tests for this stuff. First a vlan push function that cannot have worked, ever, now this seemingly reversing-headers variant:
For PPPOE, its pushing the ppppe header to packet, so we get strict ordering, later header coming in the stack gets placed on top, before older one.
Here, first vlan push gets placed into hw tag in skb (which makes sense, let HW take care of it).
But if 2nd comes along, then that gets placed in the packet and the hwaccel tag remains?
What to do? Should be nuke vlan offload support from flowtable? It appears to be an unused feature.
I have low confidence in this code.
Pablo Neira Ayuso
maintainerQuoted 39 lines · Florian Westphal
Quoted 7 lines · Pablo Neira Ayuso
Hi Florian,
Quoted 4 lines · Florian Westphal
Hi,
The following patchset contains Netfilter fixes for *net*:
Quoted 9 lines
Quoted 6 lines
1) Fix a bug with vlan headers in the flowtable infrastructure. Existing code uses
skb_vlan_push()helper, but that helper requiresskb->datato point to the MAC header, which isn't the case for flowtables. Switch to a new helper, modeled on the existing PPPoE helper. From Eric Woudstra. This bug was added in v6.19-rc1.In patch 1/4, why is this new function so different wrt.
skb_vlan_push?I asked that to Eric when I reviewed this, and that was his reply:
--------------------------------------------------------------------
The code here for the inner header is an almost exact copy ofnf_flow_pppoe_push(), which was also implemented at the same time. So handling pppoe and inner-vlan header is implemented in the same manner, which keeps it simple and uniform. If one functions (in)correctly, then so would the other.I've been implementing handling the inner vlan header like this for a half year now. My version of
nf_flow_encap_push()was a bit different, but after this patch it is quite similar.
--------------------------------------------------------------------Quoted 8 lines
skb_postpush_rcsum(skb, skb->data + (2 * ETH_ALEN), VLAN_HLEN); } __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci);In case there are two VLANs, the existing in hwaccel gets pushed into the VLAN header, and the outer VLAN becomes the one that is offloaded?
Quoted 6 lines
Quoted 2 lines
Is this reversed in this patch? The first VLAN tag is offloaded, then the next one coming is pushed as a VLAN header?
Yes, it looks broken. I wonder why we have no tests for this stuff. First a vlan push function that cannot have worked, ever, now this seemingly reversing-headers variant:
This used to work, I just accidentally broke it when using skb_vlan_push() in net-next.
I will post fix.
Quoted 7 lines
For PPPOE, its pushing the ppppe header to packet, so we get strict ordering, later header coming in the stack gets placed on top, before older one.
Here, first vlan push gets placed into hw tag in skb (which makes sense, let HW take care of it).
Quoted 7 lines
But if 2nd comes along, then that gets placed in the packet and the hwaccel tag remains?
What to do? Should be nuke vlan offload support from flowtable? It appears to be an unused feature.
I have low confidence in this code.
Could you elaborate more precisely?
Thanks.
Florian Westphal
maintainerQuoted 8 lines · Pablo Neira Ayuso
Quoted 3 lines
Yes, it looks broken. I wonder why we have no tests for this stuff. First a vlan push function that cannot have worked, ever, now this seemingly reversing-headers variant:
This used to work, I just accidentally broke it when using
skb_vlan_push()in net-next.I will post fix.
Ok, thanks.
Quoted 10 lines
Quoted 10 lines
For PPPOE, its pushing the ppppe header to packet, so we get strict ordering, later header coming in the stack gets placed on top, before older one.
Here, first vlan push gets placed into hw tag in skb (which makes sense, let HW take care of it).
But if 2nd comes along, then that gets placed in the packet and the hwaccel tag remains?
Quoted 6 lines
Quoted 4 lines
What to do? Should be nuke vlan offload support from flowtable? It appears to be an unused feature.
I have low confidence in this code.
Could you elaborate more precisely?
Add bug in nf_queue -> kselftest will likely barf Add bug in nf_tables control plane -> nftables shell and/or python tests will likely barf
Add bug in conntrack -> kselftest will likely barf
Add new bug in flowtable vlan -> nada.
I think we should refuse both new features and refactoring patches going forward unless they come with either update to existing kselftest, or a new test or a test in nftables.git.
Florian Westphal
maintainerQuoted 6 lines · Florian Westphal
1) Fix a bug with vlan headers in the flowtable infrastructure. Existing code uses
skb_vlan_push()helper, but that helper requiresskb->datato point to the MAC header, which isn't the case for flowtables. Switch to a new helper, modeled on the existing PPPoE helper. From Eric Woudstra. This bug was added in v6.19-rc1.
Please toss this MR, I will create a new one in a few minutes, axing this fix from the series.