Re: [PATCH net] sctp: listen on the sock only when it's state is listening or closed

2017-04-06 Thread David Miller
From: Xin Long Date: Thu, 6 Apr 2017 13:10:52 +0800 > Now sctp doesn't check sock's state before listening on it. It could > even cause changing a sock with any state to become a listening sock > when doing sctp_listen. > > This patch is to fix it by checking sock's state in sctp_listen, so > t

Re: [PATCH net] sctp: listen on the sock only when it's state is listening or closed

2017-04-06 Thread Marcelo Ricardo Leitner
On Thu, Apr 06, 2017 at 01:10:52PM +0800, Xin Long wrote: > Now sctp doesn't check sock's state before listening on it. It could > even cause changing a sock with any state to become a listening sock > when doing sctp_listen. > > This patch is to fix it by checking sock's state in sctp_listen, so

[PATCH net] sctp: listen on the sock only when it's state is listening or closed

2017-04-05 Thread Xin Long
Now sctp doesn't check sock's state before listening on it. It could even cause changing a sock with any state to become a listening sock when doing sctp_listen. This patch is to fix it by checking sock's state in sctp_listen, so that it will listen on the sock with right state. Reported-by: Andr