[TCP]: Restore SKB socket owner setting in tcp_transmit_skb().
Revert 931731123a
We can't elide the skb_set_owner_w() here because things like certain
netfilter targets (such as owner MATCH) need a socket to be set on the
SKB for correct operation.
Thanks to Jan Engelhardt and other netfilter list members for
pointing this out.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -281,8 +281,9 @@ int ip_output(struct sk_buff *skb)
|
||||
!(IPCB(skb)->flags & IPSKB_REROUTED));
|
||||
}
|
||||
|
||||
int ip_queue_xmit(struct sk_buff *skb, struct sock *sk, int ipfragok)
|
||||
int ip_queue_xmit(struct sk_buff *skb, int ipfragok)
|
||||
{
|
||||
struct sock *sk = skb->sk;
|
||||
struct inet_sock *inet = inet_sk(sk);
|
||||
struct ip_options *opt = inet->opt;
|
||||
struct rtable *rt;
|
||||
|
Reference in New Issue
Block a user