Skip to content

Netfilter fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyApplied 14/14

Patches in v1 All 14 applied

#Subject and filesSizeRepliesApplied
1/14netfilter: ebtables: reject blobs that don't provide all entry pointsinclude/linux/netfilter_bridge/ebtables.h net/bridge/netfilter/ebtable_broute.c net/bridge/netfilter/ebtable_filter.c +2 more+1 -350 repliesApplied
2/14netfilter: conntrack: work around exceeded receive windownet/netfilter/nf_conntrack_proto_tcp.c+31 -00 repliesApplied
3/14netfilter: nft_tproxy: restrict to prerouting hooknet/netfilter/nft_tproxy.c+8 -00 repliesApplied
4/14netfilter: nf_tables: disallow updates of implicit chainnet/netfilter/nf_tables_api.c+3 -00 repliesApplied
5/14netfilter: nf_tables: make table handle allocation per-netns friendlyinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+2 -20 repliesApplied
6/14netfilter: nft_payload: report ERANGE for too long offset and lengthnet/netfilter/nft_payload.c+8 -20 repliesApplied
7/14netfilter: nft_payload: do not truncate csum_offset and csum_typenet/netfilter/nft_payload.c+13 -60 repliesApplied
8/14netfilter: nf_tables: do not leave chain stats enabled on errornet/netfilter/nf_tables_api.c+4 -20 repliesApplied
9/14netfilter: nft_osf: restrict osf to ipv4, ipv6 and inet familiesnet/netfilter/nft_osf.c+15 -30 repliesApplied
10/14netfilter: nft_tunnel: restrict it to netdev familynet/netfilter/nft_tunnel.c+1 -00 repliesApplied
11/14netfilter: nf_tables: disallow binding to already bound chainnet/netfilter/nf_tables_api.c+2 -00 repliesApplied
12/14netfilter: flowtable: add function to invoke garbage collection immediatelyinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_core.c+10 -30 repliesApplied
13/14netfilter: flowtable: fix stuck flows on cleanup due to pending workinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_core.c net/netfilter/nf_flow_table_offload.c+13 -40 repliesApplied
14/14netfilter: nf_defrag_ipv6: allow nf_conntrack_frag6_high_thresh increasesnet/ipv6/netfilter/nf_conntrack_reasm.c+0 -11 replyApplied

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchFlorian WestphalPaul Blakey
1/14
2/14
3/14
4/14
5/14R-b
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14T-b
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 00/14] Netfilter fixes for net

Hi,

The following patchset contains Netfilter fixes for net. All fixes included in this batch address problems appearing in several releases:

1) Fix crash with malformed ebtables blob which do not provide all entry points, from Florian Westphal.

2) Fix possible TCP connection clogging up with default 5-days timeout in conntrack, from Florian.

3) Fix crash in nf_tables tproxy with unsupported chains, also from Florian.

4) Do not allow to update implicit chains.

5) Make table handle allocation per-netns to fix data race.

6) Do not truncated payload length and offset, and checksum offset. Instead report EINVAl.

7) Enable chain stats update via static key iff no error occurs.

8) Restrict osf expression to ip, ip6 and inet families.

9) Restrict tunnel expression to netdev family.

10) Fix crash when trying to bind again an already bound chain.

11) Flowtable garbage collector might leave behind pending work to delete entries. This patch comes with a previous preparation patch as dependency.

12) Allow net.netfilter.nf_conntrack_frag6_high_thresh to be lowered, from Eric Dumazet.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git

Thanks.

----------------------------------------------------------------

The following changes since commit 855a28f9c96c80e6cbd2d986a857235e34868064:

net: dsa: don't dereference NULL extack in dsa_slave_changeupper() (2022-08-23 07:54:16 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git HEAD

for you to fetch changes up to 00cd7bf9f9e06769ef84d5102774c8becd6a498a:

netfilter: nf_defrag_ipv6: allow nf_conntrack_frag6_high_thresh increases (2022-08-24 08:06:44 +0200)

----------------------------------------------------------------
Eric Dumazet (1):
netfilter: nf_defrag_ipv6: allow nf_conntrack_frag6_high_thresh increases

Florian Westphal (3):
netfilter: ebtables: reject blobs that don't provide all entry points
netfilter: conntrack: work around exceeded receive window
netfilter: nft_tproxy: restrict to prerouting hook

Pablo Neira Ayuso (10):
netfilter: nf_tables: disallow updates of implicit chain
netfilter: nf_tables: make table handle allocation per-netns friendly
netfilter: nft_payload: report ERANGE for too long offset and length
netfilter: nft_payload: do not truncate csum_offset and csum_type
netfilter: nf_tables: do not leave chain stats enabled on error
netfilter: nft_osf: restrict osf to ipv4, ipv6 and inet families
netfilter: nft_tunnel: restrict it to netdev family
netfilter: nf_tables: disallow binding to already bound chain
netfilter: flowtable: add function to invoke garbage collection immediately
netfilter: flowtable: fix stuck flows on cleanup due to pending work

 include/linux/netfilter_bridge/ebtables.h |  4 ----
 include/net/netfilter/nf_flow_table.h     |  3 +++
 include/net/netfilter/nf_tables.h         |  1 +
 net/bridge/netfilter/ebtable_broute.c     |  8 --------
 net/bridge/netfilter/ebtable_filter.c     |  8 --------
 net/bridge/netfilter/ebtable_nat.c        |  8 --------
 net/bridge/netfilter/ebtables.c           |  8 +-------
 net/ipv6/netfilter/nf_conntrack_reasm.c   |  1 -
 net/netfilter/nf_conntrack_proto_tcp.c    | 31 +++++++++++++++++++++++++++++++
 net/netfilter/nf_flow_table_core.c        | 15 ++++++++++-----
 net/netfilter/nf_flow_table_offload.c     |  8 ++++++++
 net/netfilter/nf_tables_api.c             | 14 ++++++++++----
 net/netfilter/nft_osf.c                   | 18 +++++++++++++++---
 net/netfilter/nft_payload.c               | 29 +++++++++++++++++++++--------
 net/netfilter/nft_tproxy.c                |  8 ++++++++
 net/netfilter/nft_tunnel.c                |  1 +
 16 files changed, 109 insertions(+), 56 deletions(-)