Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
authorDavid S. Miller <davem@davemloft.net>
Sun, 6 Sep 2015 00:36:30 +0000 (17:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Sep 2015 04:57:42 +0000 (21:57 -0700)
Conflicts:
include/net/netfilter/nf_conntrack.h

The conflict was an overlap between changing the type of the zone
argument to nf_ct_tmpl_alloc() whilst exporting nf_ct_tmpl_free.

Pablo Neira Ayuso says:

====================
Netfilter fixes for net

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

1) Oneliner to restore maps in nf_tables since we support addressing registers
   at 32 bits level.

2) Restore previous default behaviour in bridge netfilter when CONFIG_IPV6=n,
   oneliner from Bernhard Thaler.

3) Out of bound access in ipset hash:net* set types, reported by Dave Jones'
   KASan utility, patch from Jozsef Kadlecsik.

4) Fix ipset compilation with gcc 4.4.7 related to C99 initialization of
   unnamed unions, patch from Elad Raz.

5) Add a workaround to address inconsistent endianess in the res_id field of
   nfnetlink batch messages, reported by Florian Westphal.

6) Fix error paths of CT/synproxy since the conntrack template was moved to use
   kmalloc, patch from Daniel Borkmann.

All of them look good to me to reach 4.2, I can route this to -stable myself
too, just let me know what you prefer.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
1  2 
include/net/netfilter/nf_conntrack.h
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_synproxy_core.c
net/netfilter/xt_CT.c

index f5e23c6dee8bcbcc66705a4d5cefdaef311eb98b,4023c4ce260f0ed55ad30907667e2e135ddfde24..e8ad46834df87453e1335bccb7e80dda2ba9fbe5
@@@ -295,9 -291,8 +295,10 @@@ extern unsigned int nf_conntrack_max
  extern unsigned int nf_conntrack_hash_rnd;
  void init_nf_conntrack_hash_rnd(void);
  
 -struct nf_conn *nf_ct_tmpl_alloc(struct net *net, u16 zone, gfp_t flags);
 +struct nf_conn *nf_ct_tmpl_alloc(struct net *net,
 +                               const struct nf_conntrack_zone *zone,
 +                               gfp_t flags);
+ void nf_ct_tmpl_free(struct nf_conn *tmpl);
  
  #define NF_CT_STAT_INC(net, count)      __this_cpu_inc((net)->ct.stat->count)
  #define NF_CT_STAT_INC_ATOMIC(net, count) this_cpu_inc((net)->ct.stat->count)
Simple merge
Simple merge
Simple merge