bridge: Reset IPCB when entering IP stack on NF_FORWARD
commit5f1c356a3fadc0c19922d660da723b79bcc9aad7
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Mar 2011 05:27:28 +0000 (18 05:27 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Apr 2011 21:32:37 +0000 (21 14:32 -0700)
tree01d51e76a565970281a995d978b74f4a237fa352
parent01b7e60bf848901c3a95794c90888e4e33ab751f
bridge: Reset IPCB when entering IP stack on NF_FORWARD

[ Upstream commit 6b1e960fdbd75dcd9bcc3ba5ff8898ff1ad30b6e ]

Whenever we enter the IP stack proper from bridge netfilter we
need to ensure that the skb is in a form the IP stack expects
it to be in.

The entry point on NF_FORWARD did not meet the requirements of
the IP stack, therefore leading to potential crashes/panics.

This patch fixes the problem.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bridge/br_netfilter.c