Skip to content

Netfilter/IPVS 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 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8netfilter: nfnetlink_log: unset nf_loggers for netns when unloading modulenet/netfilter/nfnetlink_log.c+1 -00 replies
2/8netfilter: nft_exthdr: call ipv6_find_hdr() with explicitly initialized offsetnet/netfilter/nft_exthdr.c+1 -10 replies
3/8netfilter: nf_ct_timestamp: Fix BUG_ON after netns deletionnet/netfilter/nf_conntrack_timestamp.c+0 -10 replies
4/8netfilter: WARN about wrong usage of sequence number adjustmentsnet/netfilter/nf_conntrack_seqadj.c+5 -00 replies
5/8ipvs: correct usage/allocation of seqadj ext in ipvsnet/netfilter/ipvs/ip_vs_nfct.c+6 -00 replies
6/8netfilter: nf_tables: fix dumping with large number of setsnet/netfilter/nf_tables_api.c+7 -30 replies
7/8netfilter: nf_tables: fix oops when updating table with user chainsnet/netfilter/nf_tables_api.c+10 -20 replies
8/8netfilter: nf_tables: fix wrong datatype in nft_validate_data_load()net/netfilter/nf_tables_api.c+3 -10 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchJulian Anastasov
1/8
2/8
3/8
4/8A-b
5/8A-b
6/8
7/8
8/8

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 0/8] Netfilter/IPVS fixes for net

Hi David,

This patchset contains four nf_tables fixes, one IPVS fix due to missing updates in the interaction with the new sedadj conntrack extension that was added to support the netfilter synproxy code, and a couple of one-liners to fix netnamespace netfilter issues. More specifically, they are:

* Fix ipv6_find_hdr() call without offset being explicitly initialized in nft_exthdr, as required by that function, from Daniel Borkmann.

* Fix oops in nfnetlink_log when using netns and unloading the kernel module, from Gao feng.

* Fix BUG_ON in nf_ct_timestamp extension after netns is destroyed, from Helmut Schaa.

* Fix crash in IPVS due to missing sequence adjustment extension being allocated in the conntrack, from Jesper Dangaard Brouer.

* Add bugtrap to spot a warning in case you deference sequence adjustment conntrack area when not available, this should help to catch similar invalid dereferences in the Netfilter tree, also from Jesper.

* Fix incomple dumping of sets in nf_tables when retrieving by family, from me.

* Fix oops when updating the table state (dormant <-> active) and having user (not base ) chains, from me.

* Fix wrong validation in set element data that results in returning -EINVAL when using the nf_tables dictionary feature with mappings, also from me.

We don't usually have this amount of fixes by this time (as we're already in -rc5 of the development cycle), although half of them are related to nf_tables which is a relatively new thing, and I also belive that holidays have also delayed the flight of bugfixes to mainstream a bit.

You can pull these changes from:

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

Thanks!

P.S: Have a nice entrance to new year.

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

The following changes since commit a7c12639bdf571a09578aed626875848d209d24f:

Merge branch 'qlcnic' (2013-12-17 16:25:24 -0500)

are available in the git repository at:

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

for you to fetch changes up to 2ee0d3c80fdb7974cfa1c7e25b5048e9fcaf69b6:

netfilter: nf_tables: fix wrong datatype in nft_validate_data_load() (2013-12-28 22:32:28 +0100)

----------------------------------------------------------------
Daniel Borkmann (1):
netfilter: nft_exthdr: call ipv6_find_hdr() with explicitly initialized offset

Gao feng (1):
netfilter: nfnetlink_log: unset nf_loggers for netns when unloading module

Helmut Schaa (1):
netfilter: nf_ct_timestamp: Fix BUG_ON after netns deletion

Jesper Dangaard Brouer (2):
netfilter: WARN about wrong usage of sequence number adjustments
ipvs: correct usage/allocation of seqadj ext in ipvs

Pablo Neira Ayuso (3):
netfilter: nf_tables: fix dumping with large number of sets
netfilter: nf_tables: fix oops when updating table with user chains
netfilter: nf_tables: fix wrong datatype in nft_validate_data_load()

 net/netfilter/ipvs/ip_vs_nfct.c        |    6 ++++++
 net/netfilter/nf_conntrack_seqadj.c    |    5 +++++
 net/netfilter/nf_conntrack_timestamp.c |    1 -
 net/netfilter/nf_tables_api.c          |   26 ++++++++++++++++++++------
 net/netfilter/nfnetlink_log.c          |    1 +
 net/netfilter/nft_exthdr.c             |    2 +-
 6 files changed, 33 insertions(+), 8 deletions(-)