Re: [PATCH] sctp: Add rcu lock to protect dst entry in sctp_transport_route

2019-06-13 Thread Su Yanjun
在 2019/6/12 21:13, Neil Horman 写道: On Tue, Jun 11, 2019 at 10:33:17AM +0800, Su Yanjun wrote: 在 2019/6/10 19:12, Neil Horman 写道: On Mon, Jun 10, 2019 at 11:20:00AM +0800, Su Yanjun wrote: syzbot found a crash in rt_cache_valid. Problem is that when more threads release dst in

Re: [PATCH] sctp: Add rcu lock to protect dst entry in sctp_transport_route

2019-06-13 Thread Neil Horman
On Thu, Jun 13, 2019 at 10:37:51AM +0800, Su Yanjun wrote: > > 在 2019/6/12 21:13, Neil Horman 写道: > > On Tue, Jun 11, 2019 at 10:33:17AM +0800, Su Yanjun wrote: > > > 在 2019/6/10 19:12, Neil Horman 写道: > > > > On Mon, Jun 10, 2019 at 11:20:00AM +0800, Su Yanjun wrote: > > > > > syzbot found a

Re: [PATCH] sctp: Add rcu lock to protect dst entry in sctp_transport_route

2019-06-13 Thread Marcelo Ricardo Leitner
On Thu, Jun 13, 2019 at 07:35:44AM -0400, Neil Horman wrote: > On Thu, Jun 13, 2019 at 10:37:51AM +0800, Su Yanjun wrote: > > > > 在 2019/6/12 21:13, Neil Horman 写道: > > > On Tue, Jun 11, 2019 at 10:33:17AM +0800, Su Yanjun wrote: > > > > 在 2019/6/10 19:12, Neil Horman 写道: > > > > > On Mon, Jun

Re: [PATCH] sctp: Add rcu lock to protect dst entry in sctp_transport_route

2019-06-12 Thread Neil Horman
On Tue, Jun 11, 2019 at 10:33:17AM +0800, Su Yanjun wrote: > > 在 2019/6/10 19:12, Neil Horman 写道: > > On Mon, Jun 10, 2019 at 11:20:00AM +0800, Su Yanjun wrote: > > > syzbot found a crash in rt_cache_valid. Problem is that when more > > > threads release dst in sctp_transport_route, the route

Re: [PATCH] sctp: Add rcu lock to protect dst entry in sctp_transport_route

2019-06-10 Thread Neil Horman
On Mon, Jun 10, 2019 at 11:20:00AM +0800, Su Yanjun wrote: > syzbot found a crash in rt_cache_valid. Problem is that when more > threads release dst in sctp_transport_route, the route cache can > be freed. > > As follows, > p1: > sctp_transport_route > dst_release > get_dst > > p2: >

[PATCH] sctp: Add rcu lock to protect dst entry in sctp_transport_route

2019-06-09 Thread Su Yanjun
syzbot found a crash in rt_cache_valid. Problem is that when more threads release dst in sctp_transport_route, the route cache can be freed. As follows, p1: sctp_transport_route dst_release get_dst p2: sctp_transport_route dst_release get_dst ... If enough threads calling dst_release