Re: [PATCH net] sctp: allow receiving msg when TCP-style sk is in CLOSED state

2016-07-30 Thread David Miller
From: Xin Long Date: Sat, 30 Jul 2016 14:14:41 +0800 > Commit 141ddefce7c8 ("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 wil

Re: [PATCH net] sctp: allow receiving msg when TCP-style sk is in CLOSED state

2016-07-30 Thread Marcelo Ricardo Leitner
On Sat, Jul 30, 2016 at 02:14:41PM +0800, Xin Long wrote: > Commit 141ddefce7c8 ("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

[PATCH net] sctp: allow receiving msg when TCP-style sk is in CLOSED state

2016-07-29 Thread Xin Long
Commit 141ddefce7c8 ("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 direct