Re: [PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-14 Thread Marcelo Ricardo Leitner
On Tue, Nov 14, 2017 at 04:27:41PM +0800, Xin Long wrote: > On Tue, Nov 14, 2017 at 3:54 AM, Marcelo Ricardo Leitner > wrote: > > On Mon, Nov 13, 2017 at 11:15:40PM +0800, Xin Long wrote: > >> On Mon, Nov 13, 2017 at 11:09 PM, Neil Horman > >>

Re: [PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-14 Thread Xin Long
On Tue, Nov 14, 2017 at 8:46 PM, Neil Horman wrote: > On Mon, Nov 13, 2017 at 11:15:40PM +0800, Xin Long wrote: >> On Mon, Nov 13, 2017 at 11:09 PM, Neil Horman wrote: >> > On Mon, Nov 13, 2017 at 01:39:27PM +0800, Xin Long wrote: >> >> Now when

Re: [PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-14 Thread Neil Horman
On Mon, Nov 13, 2017 at 11:15:40PM +0800, Xin Long wrote: > On Mon, Nov 13, 2017 at 11:09 PM, Neil Horman wrote: > > On Mon, Nov 13, 2017 at 01:39:27PM +0800, Xin Long wrote: > >> Now when resetting stream, if both in and out flags are set, the info > >> len can reach: > >>

Re: [PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-14 Thread Xin Long
On Tue, Nov 14, 2017 at 3:54 AM, Marcelo Ricardo Leitner wrote: > On Mon, Nov 13, 2017 at 11:15:40PM +0800, Xin Long wrote: >> On Mon, Nov 13, 2017 at 11:09 PM, Neil Horman wrote: >> > On Mon, Nov 13, 2017 at 01:39:27PM +0800, Xin Long wrote: >>

Re: [PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-13 Thread Marcelo Ricardo Leitner
On Mon, Nov 13, 2017 at 11:15:40PM +0800, Xin Long wrote: > On Mon, Nov 13, 2017 at 11:09 PM, Neil Horman wrote: > > On Mon, Nov 13, 2017 at 01:39:27PM +0800, Xin Long wrote: > >> Now when resetting stream, if both in and out flags are set, the info > >> len can reach: > >>

Re: [PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-13 Thread Xin Long
On Mon, Nov 13, 2017 at 11:09 PM, Neil Horman wrote: > On Mon, Nov 13, 2017 at 01:39:27PM +0800, Xin Long wrote: >> Now when resetting stream, if both in and out flags are set, the info >> len can reach: >> sizeof(struct sctp_strreset_outreq) + SCTP_MAX_STREAM(65535) + >>

Re: [PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-13 Thread Neil Horman
On Mon, Nov 13, 2017 at 01:39:27PM +0800, Xin Long wrote: > Now when resetting stream, if both in and out flags are set, the info > len can reach: > sizeof(struct sctp_strreset_outreq) + SCTP_MAX_STREAM(65535) + > sizeof(struct sctp_strreset_inreq) + SCTP_MAX_STREAM(65535) > even without

[PATCH net] sctp: check stream reset info len before making reconf chunk

2017-11-12 Thread Xin Long
Now when resetting stream, if both in and out flags are set, the info len can reach: sizeof(struct sctp_strreset_outreq) + SCTP_MAX_STREAM(65535) + sizeof(struct sctp_strreset_inreq) + SCTP_MAX_STREAM(65535) even without duplicated stream no, this value is far greater than the chunk's max