Re: [PATCH net] sctp: init active key for the new asoc in dupcook_a and dupcook_b

2018-05-02 Thread David Miller
From: Xin Long Date: Wed, 2 May 2018 13:37:44 +0800 > When processing a duplicate cookie-echo chunk, for case 'A' and 'B', > after sctp_process_init for the new asoc, if auth is enabled for the > cookie-ack chunk, the active key should also be initialized. > > Otherwise, the cookie-ack chunk ma

Re: [PATCH net] sctp: init active key for the new asoc in dupcook_a and dupcook_b

2018-05-02 Thread Marcelo Ricardo Leitner
On Wed, May 02, 2018 at 01:37:44PM +0800, Xin Long wrote: > When processing a duplicate cookie-echo chunk, for case 'A' and 'B', > after sctp_process_init for the new asoc, if auth is enabled for the > cookie-ack chunk, the active key should also be initialized. > > Otherwise, the cookie-ack chunk

Re: [PATCH net] sctp: init active key for the new asoc in dupcook_a and dupcook_b

2018-05-02 Thread Neil Horman
On Wed, May 02, 2018 at 01:37:44PM +0800, Xin Long wrote: > When processing a duplicate cookie-echo chunk, for case 'A' and 'B', > after sctp_process_init for the new asoc, if auth is enabled for the > cookie-ack chunk, the active key should also be initialized. > > Otherwise, the cookie-ack chunk

[PATCH net] sctp: init active key for the new asoc in dupcook_a and dupcook_b

2018-05-01 Thread Xin Long
When processing a duplicate cookie-echo chunk, for case 'A' and 'B', after sctp_process_init for the new asoc, if auth is enabled for the cookie-ack chunk, the active key should also be initialized. Otherwise, the cookie-ack chunk made later can not be set with auth shkey properly, and a crash can