]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit097e7426c6fc4e2d481236d5fbea1f64d4a901e1
tree04ee2f972b0b0a04efebdb79f14f391bec142170
parent3372a48ebf406395996516546e888af5c9e24f4a
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: 4b6a53b8f218 ("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