Re: [PATCH net v2] sctp: asconf's process should verify address parameter is in the beginning

2015-08-25 Thread Vlad Yasevich
On 08/25/2015 10:01 AM, Marcelo Ricardo Leitner wrote: > On Tue, Aug 25, 2015 at 08:29:24PM +0800, Xin Long wrote: >> in sctp_process_asconf(), we get address parameter from the beginning of >> the addip params. but we never check if it's really there. if the addr >> param is not there, it still ca

Re: [PATCH net v2] sctp: asconf's process should verify address parameter is in the beginning

2015-08-25 Thread Marcelo Ricardo Leitner
On Tue, Aug 25, 2015 at 08:29:24PM +0800, Xin Long wrote: > in sctp_process_asconf(), we get address parameter from the beginning of > the addip params. but we never check if it's really there. if the addr > param is not there, it still can pass sctp_verify_asconf(), then to be > handled by sctp_pr

[PATCH net v2] sctp: asconf's process should verify address parameter is in the beginning

2015-08-25 Thread Xin Long
in sctp_process_asconf(), we get address parameter from the beginning of the addip params. but we never check if it's really there. if the addr param is not there, it still can pass sctp_verify_asconf(), then to be handled by sctp_process_asconf(), it will not be safe. so add a code in sctp_verify