Re: [PATCH net] sctp: check and update stream->out_curr when allocating stream_out

2018-11-27 Thread Neil Horman
On Tue, Nov 27, 2018 at 07:30:49PM +0900, Xin Long wrote: > On Mon, Nov 26, 2018 at 10:59 PM Neil Horman wrote: > > > > On Mon, Nov 26, 2018 at 10:46:33PM +0900, Xin Long wrote: > > > On Mon, Nov 26, 2018 at 9:54 PM Neil Horman wrote: > > > > > > > > On Mon, Nov 26, 2018 at 07:22:05PM +0800, Xin

Re: [PATCH net] sctp: check and update stream->out_curr when allocating stream_out

2018-11-27 Thread Xin Long
On Tue, Nov 27, 2018 at 7:30 PM Xin Long wrote: > > On Mon, Nov 26, 2018 at 10:59 PM Neil Horman wrote: > > > > On Mon, Nov 26, 2018 at 10:46:33PM +0900, Xin Long wrote: > > > On Mon, Nov 26, 2018 at 9:54 PM Neil Horman wrote: > > > > > > > > On Mon, Nov 26, 2018 at 07:22:05PM +0800, Xin Long

Re: [PATCH net] sctp: check and update stream->out_curr when allocating stream_out

2018-11-27 Thread Xin Long
On Mon, Nov 26, 2018 at 10:59 PM Neil Horman wrote: > > On Mon, Nov 26, 2018 at 10:46:33PM +0900, Xin Long wrote: > > On Mon, Nov 26, 2018 at 9:54 PM Neil Horman wrote: > > > > > > On Mon, Nov 26, 2018 at 07:22:05PM +0800, Xin Long wrote: > > > > Now when using stream reconfig to add out

Re: [PATCH net] sctp: check and update stream->out_curr when allocating stream_out

2018-11-26 Thread Neil Horman
On Mon, Nov 26, 2018 at 10:46:33PM +0900, Xin Long wrote: > On Mon, Nov 26, 2018 at 9:54 PM Neil Horman wrote: > > > > On Mon, Nov 26, 2018 at 07:22:05PM +0800, Xin Long wrote: > > > Now when using stream reconfig to add out streams, stream->out > > > will get re-allocated, and all old streams'

Re: [PATCH net] sctp: check and update stream->out_curr when allocating stream_out

2018-11-26 Thread Xin Long
On Mon, Nov 26, 2018 at 9:54 PM Neil Horman wrote: > > On Mon, Nov 26, 2018 at 07:22:05PM +0800, Xin Long wrote: > > Now when using stream reconfig to add out streams, stream->out > > will get re-allocated, and all old streams' information will > > be copied to the new ones and the old ones will

Re: [PATCH net] sctp: check and update stream->out_curr when allocating stream_out

2018-11-26 Thread Neil Horman
On Mon, Nov 26, 2018 at 07:22:05PM +0800, Xin Long wrote: > Now when using stream reconfig to add out streams, stream->out > will get re-allocated, and all old streams' information will > be copied to the new ones and the old ones will be freed. > > So without stream->out_curr updated, next time

[PATCH net] sctp: check and update stream->out_curr when allocating stream_out

2018-11-26 Thread Xin Long
Now when using stream reconfig to add out streams, stream->out will get re-allocated, and all old streams' information will be copied to the new ones and the old ones will be freed. So without stream->out_curr updated, next time when trying to send from stream->out_curr stream, a panic would be