]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: use skb_to_full_sk in ip_route_me_harder
authorFlorian Westphal <fw@strlen.de>
Fri, 17 Feb 2017 07:39:28 +0000 (08:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Feb 2017 11:49:36 +0000 (12:49 +0100)
commit4cfc8f8959b703cde7042468212ca124cf98eb8a
tree4d5e5d45ffea14cbcba7a9751abfd13f3c8ccfa8
parentcc217160becfb0562a295ef7ee99b969c82834de
netfilter: use skb_to_full_sk in ip_route_me_harder

inet_sk(skb->sk) is illegal in case skb is attached to request socket.

Fixes: 9ac0bfc1a9dd ("tcp: attach SYNACK messages to request sockets instead of listener")
Reported by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Tested-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter.c