Re: [PATCH net] sctp: assign assoc_id earlier in __sctp_connect

2016-11-07 Thread David Miller
From: Marcelo Ricardo Leitner Date: Thu, 3 Nov 2016 17:03:41 -0200 > sctp_wait_for_connect() currently already holds the asoc to keep it > alive during the sleep, in case another thread release it. But Andrey > Konovalov and Dmitry Vyukov reported an use-after-free in

Re: [PATCH net] sctp: assign assoc_id earlier in __sctp_connect

2016-11-04 Thread Neil Horman
On Thu, Nov 03, 2016 at 05:03:41PM -0200, Marcelo Ricardo Leitner wrote: > sctp_wait_for_connect() currently already holds the asoc to keep it > alive during the sleep, in case another thread release it. But Andrey > Konovalov and Dmitry Vyukov reported an use-after-free in such > situation. > >

Re: [PATCH net] sctp: assign assoc_id earlier in __sctp_connect

2016-11-04 Thread Marcelo Ricardo Leitner
Em 04-11-2016 08:55, David Laight escreveu: From: Of Marcelo Ricardo Leitner Sent: 03 November 2016 19:04 sctp_wait_for_connect() currently already holds the asoc to keep it alive during the sleep, in case another thread release it. But Andrey Konovalov and Dmitry Vyukov reported an

RE: [PATCH net] sctp: assign assoc_id earlier in __sctp_connect

2016-11-04 Thread David Laight
From: Of Marcelo Ricardo Leitner > Sent: 03 November 2016 19:04 > sctp_wait_for_connect() currently already holds the asoc to keep it > alive during the sleep, in case another thread release it. But Andrey > Konovalov and Dmitry Vyukov reported an use-after-free in such > situation. > > Problem

Re: [PATCH net] sctp: assign assoc_id earlier in __sctp_connect

2016-11-04 Thread Xin Long
On Fri, Nov 4, 2016 at 3:03 AM, Marcelo Ricardo Leitner wrote: > sctp_wait_for_connect() currently already holds the asoc to keep it > alive during the sleep, in case another thread release it. But Andrey > Konovalov and Dmitry Vyukov reported an use-after-free in such