Re: [PATCH net] sctp: not free the new asoc when sctp_wait_for_connect returns err

2018-10-17 Thread David Miller
From: Xin Long Date: Wed, 17 Oct 2018 03:06:12 +0800 > When sctp_wait_for_connect is called to wait for connect ready > for sp->strm_interleave in sctp_sendmsg_to_asoc, a panic could > be triggered if cpu is scheduled out and the new asoc is freed > elsewhere, as it will return err and later the

Re: [PATCH net] sctp: not free the new asoc when sctp_wait_for_connect returns err

2018-10-17 Thread Marcelo Ricardo Leitner
On Wed, Oct 17, 2018 at 03:06:12AM +0800, Xin Long wrote: > When sctp_wait_for_connect is called to wait for connect ready > for sp->strm_interleave in sctp_sendmsg_to_asoc, a panic could > be triggered if cpu is scheduled out and the new asoc is freed > elsewhere, as it will return err and later

[PATCH net] sctp: not free the new asoc when sctp_wait_for_connect returns err

2018-10-16 Thread Xin Long
When sctp_wait_for_connect is called to wait for connect ready for sp->strm_interleave in sctp_sendmsg_to_asoc, a panic could be triggered if cpu is scheduled out and the new asoc is freed elsewhere, as it will return err and later the asoc gets freed again in sctp_sendmsg. [ 285.840764]