Re: [PATCH net] sctp: hold transport before accessing its asoc in sctp_epaddr_lookup_transport

2018-11-20 Thread Neil Horman
On Tue, Nov 20, 2018 at 07:12:10PM +0800, Xin Long wrote: > Without holding transport to dereference its asoc, a use after > free panic can be caused in sctp_epaddr_lookup_transport. Note > that a sock lock can't protect these transports that belong to > other socks. > > A similar fix as Commit

[PATCH net] sctp: hold transport before accessing its asoc in sctp_epaddr_lookup_transport

2018-11-20 Thread Xin Long
Without holding transport to dereference its asoc, a use after free panic can be caused in sctp_epaddr_lookup_transport. Note that a sock lock can't protect these transports that belong to other socks. A similar fix as Commit bab1be79a516 ("sctp: hold transport before accessing its asoc in