]> Git Repo - linux.git/commitdiff
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
authorDavid S. Miller <[email protected]>
Thu, 5 Nov 2015 01:47:50 +0000 (20:47 -0500)
committerDavid S. Miller <[email protected]>
Thu, 5 Nov 2015 01:47:50 +0000 (20:47 -0500)
Conflicts:
net/netfilter/xt_TEE.c

Pablo Neira Ayuso says:

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

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

1) Fix crash when TEE target is used with no --oif, from Eric Dumazet.

2) Oneliner to fix a crash on the redirect traffic to localhost
   infrastructure when interface has not yet an address, from
   Munehisa Kamata.

3) Oneliner not to request module all the time from nfnetlink due to
   wrong type value, from Florian Westphal.

I'll make sure these patches 1 and 2 hit -stable.
====================

The conflict in net/netfilter/xt_TEE.c was minor, a change
to the 'oif' selection overlapping a function signature
change for the nf_dup_ipv{4,6}() routines.

Signed-off-by: David S. Miller <[email protected]>
1  2 
net/netfilter/nfnetlink.c
net/netfilter/xt_TEE.c

index f1d9e887f5b157b58578a5a7244d65be788bb13b,27b93daee61f63cbceb093192daa9b460b6fcef6..46453ab318db0bf2a4bc957dcad6742ccbcacc92
@@@ -64,7 -64,7 +64,7 @@@ void nfnl_unlock(__u8 subsys_id
  EXPORT_SYMBOL_GPL(nfnl_unlock);
  
  #ifdef CONFIG_PROVE_LOCKING
 -int lockdep_nfnl_is_held(u8 subsys_id)
 +bool lockdep_nfnl_is_held(u8 subsys_id)
  {
        return lockdep_is_held(&table[subsys_id].mutex);
  }
@@@ -492,7 -492,7 +492,7 @@@ static int nfnetlink_bind(struct net *n
        type = nfnl_group2type[group];
  
        rcu_read_lock();
-       ss = nfnetlink_get_subsys(type);
+       ss = nfnetlink_get_subsys(type << 8);
        rcu_read_unlock();
        if (!ss)
                request_module("nfnetlink-subsys-%d", type);
diff --combined net/netfilter/xt_TEE.c
index 899b06115fc53c87ea34eb1bf975666e1992ca98,c5fdea18a9afbd8d98214c11e362875f0e9011ed..3eff7b67cdf2f5277c2004cf48c2f4e37c218068
@@@ -31,8 -31,9 +31,9 @@@ static unsigned in
  tee_tg4(struct sk_buff *skb, const struct xt_action_param *par)
  {
        const struct xt_tee_tginfo *info = par->targinfo;
+       int oif = info->priv ? info->priv->oif : 0;
  
-       nf_dup_ipv4(par->net, skb, par->hooknum, &info->gw.in, info->priv->oif);
 -      nf_dup_ipv4(skb, par->hooknum, &info->gw.in, oif);
++      nf_dup_ipv4(par->net, skb, par->hooknum, &info->gw.in, oif);
  
        return XT_CONTINUE;
  }
@@@ -42,8 -43,9 +43,9 @@@ static unsigned in
  tee_tg6(struct sk_buff *skb, const struct xt_action_param *par)
  {
        const struct xt_tee_tginfo *info = par->targinfo;
+       int oif = info->priv ? info->priv->oif : 0;
  
-       nf_dup_ipv6(par->net, skb, par->hooknum, &info->gw.in6, info->priv->oif);
 -      nf_dup_ipv6(skb, par->hooknum, &info->gw.in6, oif);
++      nf_dup_ipv6(par->net, skb, par->hooknum, &info->gw.in6, oif);
  
        return XT_CONTINUE;
  }
This page took 0.059814 seconds and 4 git commands to generate.