Skip to content

Netfilter fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9netfilter: nf_tables_offload: check for register data length mismatchesnet/netfilter/nft_bitwise.c net/netfilter/nft_cmp.c+4 -30 replies
2/9netfilter: ipset: Fix an error code in ip_set_sockfn_get()net/netfilter/ipset/ip_set_core.c+5 -30 replies
3/9netfilter: ipset: Copy the right MAC address in hash:ip,mac IPv6 setsnet/netfilter/ipset/ip_set_hash_ipmac.c+1 -10 replies
4/9netfilter: ipset: Fix nla_policies to fully support NL_VALIDATE_STRICTnet/netfilter/ipset/ip_set_core.c net/netfilter/ipset/ip_set_hash_net.c net/netfilter/ipset/ip_set_hash_netnet.c+30 -130 replies
5/9netfilter: nf_tables: Align nft_expr private data to 64-bitinclude/net/netfilter/nf_tables.h+2 -10 replies
6/9netfilter: nf_tables: fix unexpected EOPNOTSUPP errornet/netfilter/nf_tables_api.c+2 -40 replies
7/9bridge: ebtables: don't crash when using dnat target in output chainsnet/bridge/netfilter/ebt_dnat.c+15 -40 replies
8/9netfilter: nf_tables: bogus EOPNOTSUPP on basechain updatenet/netfilter/nf_tables_api.c+1 -00 replies
9/9netfilter: nf_tables_offload: skip EBUSY on chain updatenet/netfilter/nf_tables_offload.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Netfilter fixes for net

Hi David,

The following patchset contains Netfilter fixes for net:

1) Missing register size validation in bitwise and cmp offloads.

2) Fix error code in ip_set_sockfn_get() when copy_to_user() fails, from Dan Carpenter.

3) Oneliner to copy MAC address in IPv6 hash:ip,mac sets, from Stefano Brivio.

4) Missing policy validation in ipset with NL_VALIDATE_STRICT, from Jozsef Kadlecsik.

5) Fix unaligned access to private data area of nf_tables instructions, from Lukas Wunner.

6) Relax check for object updates, reported as a regression by Eric Garver, patch from Fernando Fernandez Mancera.

7) Crash on ebtables dnat extension when used from the output path. From Florian Westphal.

8) Fix bogus EOPNOTSUPP when updating basechain flags.

9) Fix bogus EBUSY when updating a basechain that is already offloaded.

You can pull these changes from:

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

Thanks.

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

The following changes since commit 1204c70d9dcba31164f78ad5d8c88c42335d51f8:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2019-11-01 17:48:11 -0700)

are available in the git repository at:

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

for you to fetch changes up to 774e4d34dbebc9dc441535c4712794d336a9478c:

Merge branch 'master' of git://blackhole.kfki.hu/nf (2019-11-04 20:59:00 +0100)

----------------------------------------------------------------
Dan Carpenter (1):
netfilter: ipset: Fix an error code in ip_set_sockfn_get()

Fernando Fernandez Mancera (1):
netfilter: nf_tables: fix unexpected EOPNOTSUPP error

Florian Westphal (1):
bridge: ebtables: don't crash when using dnat target in output chains

Jozsef Kadlecsik (1):
netfilter: ipset: Fix nla_policies to fully support NL_VALIDATE_STRICT

Lukas Wunner (1):
netfilter: nf_tables: Align nft_expr private data to 64-bit

Pablo Neira Ayuso (4):
netfilter: nf_tables_offload: check for register data length mismatches
netfilter: nf_tables: bogus EOPNOTSUPP on basechain update
netfilter: nf_tables_offload: skip EBUSY on chain update Merge branch 'master' of git://blackhole.kfki.hu/nf

Stefano Brivio (1):
netfilter: ipset: Copy the right MAC address in hash:ip,mac IPv6 sets

 include/net/netfilter/nf_tables.h        |  3 +-
 net/bridge/netfilter/ebt_dnat.c          | 19 ++++++++++---
 net/netfilter/ipset/ip_set_core.c        | 49 +++++++++++++++++++++-----------
 net/netfilter/ipset/ip_set_hash_ipmac.c  |  2 +-
 net/netfilter/ipset/ip_set_hash_net.c    |  1 +
 net/netfilter/ipset/ip_set_hash_netnet.c |  1 +
 net/netfilter/nf_tables_api.c            |  7 ++---
 net/netfilter/nf_tables_offload.c        |  3 +-
 net/netfilter/nft_bitwise.c              |  5 ++--
 net/netfilter/nft_cmp.c                  |  2 +-
 10 files changed, 62 insertions(+), 30 deletions(-)