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

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8netfilter: nf_conntrack: allow server to become a client in TW handlingnet/netfilter/nf_conntrack_proto_tcp.c+2 -20 replies
2/8netfilter: ipset: off by one in ip_set_nfnl_get_byindex()net/netfilter/ipset/ip_set_core.c+1 -10 replies
3/8netfilter: nf_tables: check for NULL in nf_tables_newchain pcpu stats allocationnet/netfilter/nf_tables_api.c+2 -20 replies
4/8bridge: Do not compile options in br_parse_ip_optionsnet/bridge/br_netfilter.c+5 -190 replies
5/8netfilter: nf_log: account for size of NLMSG_DONE attributenet/netfilter/nfnetlink_log.c+3 -30 replies
6/8netfilter: nfnetlink_log: fix maximum packet length logged to userspacenet/netfilter/nfnetlink_log.c+5 -30 replies
7/8netfilter: nf_log: release skbuff on nlmsg put failurenet/netfilter/nfnetlink_log.c+8 -90 replies
8/8netfilter: nft_compat: fix wrong target lookup in nft_target_select_ops()net/netfilter/nft_compat.c+1 -10 replies

Reviews trailers per patch

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

PatchJozsef KadlecsikFlorian Westphal
1/8A-b
2/8A-b
3/8
4/8T-b
5/8
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 fixes for net

Hi David,

The following patchset contains Netfilter fixes for your net tree, they are:

1) Allow to recycle a TCP port in conntrack when the change role from server to client, from Marcelo Leitner.

2) Fix possible off by one access in ip_set_nfnl_get_byindex(), patch from Dan Carpenter.

3) alloc_percpu returns NULL on error, no need for IS_ERR() in nf_tables chain statistic updates. From Sabrina Dubroca.

4) Don't compile ip options in bridge netfilter, this mangles the packet and bridge should not alter layer >= 3 headers when forwarding packets. Patch from Herbert Xu and tested by Florian Westphal.

5) Account the final NLMSG_DONE message when calculating the size of the nflog netlink batches. Patch from Florian Westphal.

6) Fix a possible netlink attribute length overflow with large packets. Again from Florian Westphal.

7) Release the skbuff if nfnetlink_log fails to put the final NLMSG_DONE message. This fixes a leak on error. This shouldn't ever happen though, otherwise this means we miscalculate the netlink batch size, so spot a warning if this ever happens so we can track down the problem. This patch from Houcheng Lin.

8) Look at the right list when recycling targets in the nft_compat, patch from Arturo Borrero.

You can pull these changes from:

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

Thanks!

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

The following changes since commit 7c1c97d54f9bfc810908d3903cb8bcacf734df18:

net: sched: initialize bstats syncp (2014-10-21 21:45:21 -0400)

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 7965ee93719921ea5978f331da653dfa2d7b99f5:

netfilter: nft_compat: fix wrong target lookup in nft_target_select_ops() (2014-10-27 22:17:46 +0100)

----------------------------------------------------------------
Arturo Borrero (1):
netfilter: nft_compat: fix wrong target lookup in nft_target_select_ops()

Dan Carpenter (1):
netfilter: ipset: off by one in ip_set_nfnl_get_byindex()

Florian Westphal (2):
netfilter: nf_log: account for size of NLMSG_DONE attribute
netfilter: nfnetlink_log: fix maximum packet length logged to userspace

Herbert Xu (1):
bridge: Do not compile options in br_parse_ip_options

Houcheng Lin (1):
netfilter: nf_log: release skbuff on nlmsg put failure

Marcelo Leitner (1):
netfilter: nf_conntrack: allow server to become a client in TW handling

Sabrina Dubroca (1):
netfilter: nf_tables: check for NULL in nf_tables_newchain pcpu stats allocation

 net/bridge/br_netfilter.c              |   24 +++++-------------------
 net/netfilter/ipset/ip_set_core.c      |    2 +-
 net/netfilter/nf_conntrack_proto_tcp.c |    4 ++--
 net/netfilter/nf_tables_api.c          |    4 ++--
 net/netfilter/nfnetlink_log.c          |   31 ++++++++++++++++---------------
 net/netfilter/nft_compat.c             |    2 +-
 6 files changed, 27 insertions(+), 40 deletions(-)