xfrm: take care of request sockets
authorEric Dumazet <edumazet@google.com>
Mon, 7 Dec 2015 16:53:17 +0000 (08:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 22:07:33 +0000 (17:07 -0500)
commitbd5eb35f16a9c55afcf5eb1c920cbbaf09747369
tree04ee2f972b0b0a04efebdb79f14f391bec142170
parent69ce6487dcd364245a3d26322fc8f4ffd1e8d947
xfrm: take care of request sockets

TCP SYNACK messages might now be attached to request sockets.

XFRM needs to get back to a listener socket.

Adds new helpers that might be used elsewhere :
sk_to_full_sk() and sk_const_to_full_sk()

Note: We also need to add RCU protection for xfrm lookups,
now TCP/DCCP have lockless listener processing. This will
be addressed in separate patches.

Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener")
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h
net/xfrm/xfrm_policy.c