Re: [PATCH net] sctp: walk the list of asoc safely

2019-02-01 Thread David Miller
From: Greg Kroah-Hartman Date: Fri, 1 Feb 2019 15:15:22 +0100 > In sctp_sendmesg(), when walking the list of endpoint associations, the > association can be dropped from the list, making the list corrupt. > Properly handle this by using list_for_each_entry_safe() > > Fixes: 4910280503f3 ("sctp:

Re: [PATCH net] sctp: walk the list of asoc safely

2019-02-01 Thread Neil Horman
On Fri, Feb 01, 2019 at 03:15:22PM +0100, Greg Kroah-Hartman wrote: > In sctp_sendmesg(), when walking the list of endpoint associations, the > association can be dropped from the list, making the list corrupt. > Properly handle this by using list_for_each_entry_safe() > > Fixes: 4910280503f3 ("sc

Re: [PATCH net] sctp: walk the list of asoc safely

2019-02-01 Thread Marcelo Ricardo Leitner
On Fri, Feb 01, 2019 at 03:43:59PM +0100, Greg Kroah-Hartman wrote: > On Fri, Feb 01, 2019 at 12:20:37PM -0200, Marcelo Ricardo Leitner wrote: > > On Fri, Feb 01, 2019 at 03:15:22PM +0100, Greg Kroah-Hartman wrote: > > > In sctp_sendmesg(), when walking the list of endpoint associations, the > > >

Re: [PATCH net] sctp: walk the list of asoc safely

2019-02-01 Thread Greg Kroah-Hartman
On Fri, Feb 01, 2019 at 12:20:37PM -0200, Marcelo Ricardo Leitner wrote: > On Fri, Feb 01, 2019 at 03:15:22PM +0100, Greg Kroah-Hartman wrote: > > In sctp_sendmesg(), when walking the list of endpoint associations, the > > association can be dropped from the list, making the list corrupt. > > Prope

Re: [PATCH net] sctp: walk the list of asoc safely

2019-02-01 Thread Marcelo Ricardo Leitner
On Fri, Feb 01, 2019 at 03:15:22PM +0100, Greg Kroah-Hartman wrote: > In sctp_sendmesg(), when walking the list of endpoint associations, the > association can be dropped from the list, making the list corrupt. > Properly handle this by using list_for_each_entry_safe() > > Fixes: 4910280503f3 ("sc

[PATCH net] sctp: walk the list of asoc safely

2019-02-01 Thread Greg Kroah-Hartman
In sctp_sendmesg(), when walking the list of endpoint associations, the association can be dropped from the list, making the list corrupt. Properly handle this by using list_for_each_entry_safe() Fixes: 4910280503f3 ("sctp: add support for snd flag SCTP_SENDALL process in sendmsg") Reported-by: S