ipv4: use sk_fullsock() in ipv4_conntrack_defrag()
authorEric Dumazet <edumazet@google.com>
Thu, 5 Nov 2015 19:34:06 +0000 (11:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Nov 2015 19:36:09 +0000 (14:36 -0500)
commitf668f5f7e0861087ef9d64d473a9c1399fc25471
tree1c8d2a2a9ac34b6b5340a1d102288c7f1aa33e22
parent805c4bc05705fb2b71ec970960b456eee9900953
ipv4: use sk_fullsock() in ipv4_conntrack_defrag()

Before converting a 'socket pointer' into inet socket,
use sk_fullsock() to detect timewait or request sockets.

Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_defrag_ipv4.c