ipvs: skb_orphan in case of forwarding
authorAlex Gartrell <agartrell@fb.com>
Sun, 5 Jul 2015 21:28:26 +0000 (14:28 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 14 Jul 2015 07:41:27 +0000 (16:41 +0900)
commit71563f3414e917c62acd8e0fb0edf8ed6af63e4b
treed90fc5e742b2156894795aa275c31c565e2722fb
parent05f00505a89acd21f5d0d20f5797dfbc4cf85243
ipvs: skb_orphan in case of forwarding

It is possible that we bind against a local socket in early_demux when we
are actually going to want to forward it.  In this case, the socket serves
no purpose and only serves to confuse things (particularly functions which
implicitly expect sk_fullsock to be true, like ip_local_out).
Additionally, skb_set_owner_w is totally broken for non full-socks.

Signed-off-by: Alex Gartrell <agartrell@fb.com>
Fixes: 41063e9dd119 ("ipv4: Early TCP socket demux.")
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_xmit.c