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 Latest13 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13ipvs: stop tot_stats estimator only under CONFIG_SYSCTLnet/netfilter/ipvs/ip_vs_ctl.c+1 -10 replies
2/13netfilter: ctnetlink: fix dumping of dying/unconfirmed conntracksnet/netfilter/nf_conntrack_netlink.c+3 -50 replies
3/13netfilter: ctnetlink: fix refcnt leak in dying/unconfirmed list dumpernet/netfilter/nf_conntrack_netlink.c+5 -30 replies
4/13netfilter: nf_tables: use RCU-safe list insertion when replacing rulesnet/netfilter/nf_tables_api.c+1 -10 replies
5/13netfilter: nf_tables: use u32 for chain use counterinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+6 -30 replies
6/13netfilter: nf_tables: decrement chain use counter when replacing rulesnet/netfilter/nf_tables_api.c+2 -00 replies
7/13netfilter: nf_tables: fix wrong type in transaction when replacing rulesnet/netfilter/nf_tables_api.c+1 -10 replies
8/13netfilter: nft_compat: call {target, match}->destroy() to cleanup entrynet/netfilter/nft_compat.c+18 -00 replies
9/13netfilter: nf_tables: indicate family when dumping set elementsnet/netfilter/nf_tables_api.c+1 -10 replies
10/13netfilter: nft_nat: don't dump port information if unsetnet/netfilter/nft_nat.c+8 -60 replies
11/13netfilter: ctnetlink: add zone size to lengthnet/netfilter/nf_conntrack_netlink.c+6 -00 replies
12/13netfilter: nf_nat: fix oops on netns removalnet/netfilter/nf_nat_core.c+34 -10 replies
13/13MAINTAINERS: merge ebtables into netfilter entryMAINTAINERS+1 -100 replies

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by.

PatchJet ChenSamu Kallio
1/13T-b
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13Debugged-by T-b
13/13

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 00/13] netfilter fixes for net

Hi David,

The following patchset contains netfilter updates for your net tree, they are:

1) Fix refcount leak when dumping the dying/unconfirmed conntrack lists, from Florian Westphal.

2) Fix crash in NAT when removing a netnamespace, also from Florian.

3) Fix a crash in IPVS when trying to remove an estimator out of the sysctl scope, from Julian Anastasov.

4) Add zone attribute to the routing to calculate the message size in ctnetlink events, from Ken-ichirou MATSUZAWA.

5) Another fix for the dying/unconfirmed list which was preventing to dump more than one memory page of entries (~17 entries in x86_64).

6) Fix missing RCU-safe list insertion in the rule replacement code in nf_tables.

7) Since the new transaction infrastructure is in place, we have to upgrade the chain use counter from u16 to u32 to avoid overflow after more than 2^16 rules are added.

8) Fix refcount leak when replacing rule in nf_tables. This problem was also introduced in new transaction.

9) Call the ->destroy() callback when releasing nft-xt rules to fix module refcount leaks.

10) Set the family in the netlink messages that contain set elements in nf_tables to make it consistent with other object types.

11) Don't dump NAT port information if it is unset in nft_nat.

12) Update the MAINTAINERS file, I have merged the ebtables entry into netfilter. While at it, also removed the netfilter users mailing list, the development list should be enough.

You can pull these changes from:

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

Thanks!

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

The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f:

Linux 3.16-rc1 (2014-06-15 17:45:28 -1000)

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 db9cf3a345d310bd459f369e8fa5f039076293f2:

MAINTAINERS: merge ebtables into netfilter entry (2014-06-18 11:27:03 +0200)

----------------------------------------------------------------
Florian Westphal (2):
netfilter: ctnetlink: fix refcnt leak in dying/unconfirmed list dumper
netfilter: nf_nat: fix oops on netns removal

Julian Anastasov (1):
ipvs: stop tot_stats estimator only under CONFIG_SYSCTL

Ken-ichirou MATSUZAWA (1):
netfilter: ctnetlink: add zone size to length

Pablo Neira Ayuso (10):
netfilter: ctnetlink: fix dumping of dying/unconfirmed conntracks
netfilter: nf_tables: use RCU-safe list insertion when replacing rules
netfilter: nf_tables: use u32 for chain use counter
netfilter: nf_tables: decrement chain use counter when replacing rules
netfilter: nf_tables: fix wrong type in transaction when replacing rules
netfilter: nft_compat: call {target, match}->destroy() to cleanup entry
netfilter: nf_tables: indicate family when dumping set elements
netfilter: nft_nat: don't dump port information if unset Merge branch 'ipvs'
MAINTAINERS: merge ebtables into netfilter entry

 MAINTAINERS                          |   11 +----------
 include/net/netfilter/nf_tables.h    |    6 +++---
 net/netfilter/ipvs/ip_vs_ctl.c       |    2 +-
 net/netfilter/nf_conntrack_netlink.c |   20 ++++++++++++-------
 net/netfilter/nf_nat_core.c          |   35 +++++++++++++++++++++++++++++++++-
 net/netfilter/nf_tables_api.c        |   11 ++++++++---
 net/netfilter/nft_compat.c           |   18 +++++++++++++++++
 net/netfilter/nft_nat.c              |   14 ++++++++------
 8 files changed, 86 insertions(+), 31 deletions(-)