linux/net/sctp
Xin Long e08786942e sctp: allow receiving msg when TCP-style sk is in CLOSED state
Commit 141ddefce7 ("sctp: change sk state to CLOSED instead of
CLOSING in sctp_sock_migrate") changed sk state to CLOSED if the
assoc is closed when sctp_accept clones a new sk.

If there is still data in sk receive queue, users will not be able
to read it any more, as sctp_recvmsg returns directly if sk state
is CLOSED.

This patch is to add CLOSED state check in sctp_recvmsg to allow
reading data from TCP-style sk with CLOSED state as what TCP does.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-30 22:06:22 -07:00
..
associola.c
auth.c
bind_addr.c
chunk.c
debug.c
endpointola.c
input.c sctp: fix BH handling on socket backlog 2016-07-25 11:22:22 -07:00
inqueue.c sctp: fix BH handling on socket backlog 2016-07-25 11:22:22 -07:00
ipv6.c sctp: use inet_recvmsg to support sctp RFS well 2016-07-25 10:56:28 -07:00
Kconfig
Makefile
objcnt.c
offload.c
output.c sctp: fix the issue sctp requeue auth chunk incorrectly 2016-07-30 22:06:22 -07:00
outqueue.c
primitive.c
probe.c
proc.c
protocol.c sctp: use inet_recvmsg to support sctp RFS well 2016-07-25 10:56:28 -07:00
sctp_diag.c
sm_make_chunk.c
sm_sideeffect.c
sm_statefuns.c
sm_statetable.c
socket.c sctp: allow receiving msg when TCP-style sk is in CLOSED state 2016-07-30 22:06:22 -07:00
ssnmap.c
sysctl.c
transport.c
tsnmap.c
ulpevent.c sctp: also point GSO head_skb to the sk when it's available 2016-07-25 11:23:27 -07:00
ulpqueue.c sctp: allow delivering notifications after receiving SHUTDOWN 2016-07-30 22:06:22 -07:00