Skip to content

netfilter updates for net-next (upcoming 3.6), batch 5

[email protected] netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18netfilter: ctnetlink: add new messages to obtain statisticsinclude/linux/netfilter/nfnetlink_conntrack.h net/netfilter/nf_conntrack_netlink.c+264 -10 replies
2/18netfilter: nf_conntrack: fix nf_conntrack_l3proto_registernet/netfilter/nf_conntrack_proto.c+23 -130 replies
3/18netfilter: nf_conntrack: prepare l4proto->init_net cleanupinclude/net/netfilter/nf_conntrack_l4proto.h net/ipv4/netfilter/nf_conntrack_proto_icmp.c net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +8 more+16 -150 replies
4/18netfilter: nf_conntrack: add nf_ct_kfree_compat_sysctl_tableinclude/net/netfilter/nf_conntrack_l4proto.h net/netfilter/nf_conntrack_proto.c+9 -20 replies
5/18netfilter: nf_conntrack: use l4proto->users as refcount for per-net datanet/netfilter/nf_conntrack_proto.c+46 -300 replies
6/18netfilter: nf_conntrack: fix memory leak if sysctl registration failsnet/netfilter/nf_conntrack_proto.c+5 -20 replies
7/18netfilter: nf_ct_tcp: merge tcpv[4,6]_net_init into tcp_net_initnet/netfilter/nf_conntrack_proto_tcp.c+21 -500 replies
8/18netfilter: nf_ct_udp: merge udpv[4,6]_net_init into udp_net_initnet/netfilter/nf_conntrack_proto_udp.c+23 -420 replies
9/18netfilter: nf_ct_udplite: add udplite_kmemdup_sysctl_table functionnet/netfilter/nf_conntrack_proto_udplite.c+26 -170 replies
10/18netfilter: nf_ct_sctp: merge sctpv[4,6]_net_init into sctp_net_initnet/netfilter/nf_conntrack_proto_sctp.c+22 -430 replies
11/18netfilter: nf_ct_generic: add generic_kmemdup_sysctl_table functionnet/netfilter/nf_conntrack_proto_generic.c+31 -80 replies
12/18netfilter: nf_ct_dccp: add dccp_kmemdup_sysctl_table functionnet/netfilter/nf_conntrack_proto_dccp.c+30 -240 replies
13/18netfilter: nf_ct_icmp: add icmp_kmemdup[_compat]_sysctl_table functionnet/ipv4/netfilter/nf_conntrack_proto_icmp.c+32 -90 replies
14/18netfilter: nf_ct_icmpv6: add icmpv6_kmemdup_sysctl_table functionnet/ipv6/netfilter/nf_conntrack_proto_icmpv6.c+13 -40 replies
15/18netfilter: nf_conntrack: generalize nf_ct_l4proto_netinclude/net/netfilter/nf_conntrack_l4proto.h net/ipv4/netfilter/nf_conntrack_proto_icmp.c net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +4 more+41 -160 replies
16/18netfilter: nf_ct_tcp: missing per-net support for cttimeoutnet/netfilter/nf_conntrack_proto_tcp.c+1 -10 replies
17/18netfilter: nfnetlink: check callbacks before using those in nfnetlink_rcv_msgnet/netfilter/nfnetlink.c+3 -10 replies
18/18netfilter: nfnetlink_queue: do not allow to set unsupported flag bitsinclude/linux/netfilter/nfnetlink_queue.h net/netfilter/nfnetlink_queue_core.c+6 -00 replies

Reviews trailers per patch

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

PatchGao feng
1/18
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18A-b
16/18A-b
17/18
18/18

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/18] netfilter updates for net-next (upcoming 3.6), batch 5

From: Pablo Neira Ayuso <[email protected]>

Hi David,

The following patchset includes Netfilter updates for your net-next tree, more specifically:

* Updates to clean-up the sysctl namespace support for nf_conntrack from Gao Feng and a couple of patches from myself. After these, we can prepare follow-up patches to reduce ifdef pollution regarding sysctl support in nf_conntrack_proto_*.c files.

* Check for invalid flags set via NFQA_CFG_FLAGS in nfnetlink_queue from Krishna Kumar.

* Allow to obtain conntrack statistics via ctnetlink from mysqlf. This supersedes /proc/net/stat/nf_conntrack and /proc/sys/net/netfilter/nf_conntrack_count.

* Don't crash if we send a message to nfnetlink and there is not defined callback to handle such message. Instead, nfnetlink returns -EINVAL from Tomasz Bursztyka. This one does not really fix anything now, that's why I'm passing this via net-next.

You can pull these changes from:

git://1984.lsi.us.es/nf-next master

Thanks!

Gao feng (13):
netfilter: nf_conntrack: fix nf_conntrack_l3proto_register
netfilter: nf_conntrack: prepare l4proto->init_net cleanup
netfilter: nf_conntrack: add nf_ct_kfree_compat_sysctl_table
netfilter: nf_conntrack: use l4proto->users as refcount for per-net data
netfilter: nf_conntrack: fix memory leak if sysctl registration fails
netfilter: nf_ct_tcp: merge tcpv[4,6]_net_init into tcp_net_init
netfilter: nf_ct_udp: merge udpv[4,6]_net_init into udp_net_init
netfilter: nf_ct_udplite: add udplite_kmemdup_sysctl_table function
netfilter: nf_ct_sctp: merge sctpv[4,6]_net_init into sctp_net_init
netfilter: nf_ct_generic: add generic_kmemdup_sysctl_table function
netfilter: nf_ct_dccp: add dccp_kmemdup_sysctl_table function
netfilter: nf_ct_icmp: add icmp_kmemdup[_compat]_sysctl_table function
netfilter: nf_ct_icmpv6: add icmpv6_kmemdup_sysctl_table function

Krishna Kumar (1):
netfilter: nfnetlink_queue: do not allow to set unsupported flag bits

Pablo Neira Ayuso (3):
netfilter: ctnetlink: add new messages to obtain statistics
netfilter: nf_conntrack: generalize nf_ct_l4proto_net
netfilter: nf_ct_tcp: missing per-net support for cttimeout

Tomasz Bursztyka (1):
netfilter: nfnetlink: check callbacks before using those in nfnetlink_rcv_msg

 include/linux/netfilter/nfnetlink_conntrack.h  |   38 ++++
 include/linux/netfilter/nfnetlink_queue.h      |    1 +
 include/net/netfilter/nf_conntrack_l4proto.h   |   13 +-
 net/ipv4/netfilter/nf_conntrack_proto_icmp.c   |   47 ++++-
 net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c |   23 ++-
 net/netfilter/nf_conntrack_netlink.c           |  227 +++++++++++++++++++++++-
 net/netfilter/nf_conntrack_proto.c             |  139 ++++++++-------
 net/netfilter/nf_conntrack_proto_dccp.c        |   56 +++---
 net/netfilter/nf_conntrack_proto_generic.c     |   45 ++++-
 net/netfilter/nf_conntrack_proto_gre.c         |    2 +-
 net/netfilter/nf_conntrack_proto_sctp.c        |   65 +++----
 net/netfilter/nf_conntrack_proto_tcp.c         |   74 +++-----
 net/netfilter/nf_conntrack_proto_udp.c         |   66 +++----
 net/netfilter/nf_conntrack_proto_udplite.c     |   43 +++--
 net/netfilter/nfnetlink.c                      |    4 +-
 net/netfilter/nfnetlink_queue_core.c           |    5 +
 16 files changed, 591 insertions(+), 257 deletions(-)
Signature · 1 line
1.7.10