Re: [PATCH v3 net] tcp/dccp: fix other lockdep splats accessing ireq_opt

2017-10-26 Thread David Miller
From: Eric Dumazet Date: Tue, 24 Oct 2017 08:20:31 -0700 > From: Eric Dumazet > > In my first attempt to fix the lockdep splat, I forgot we could > enter inet_csk_route_req() with a freshly allocated request socket, > for which refcount has not yet been elevated, due to complex > SLAB_TYPESAFE_

[PATCH v3 net] tcp/dccp: fix other lockdep splats accessing ireq_opt

2017-10-24 Thread Eric Dumazet
From: Eric Dumazet In my first attempt to fix the lockdep splat, I forgot we could enter inet_csk_route_req() with a freshly allocated request socket, for which refcount has not yet been elevated, due to complex SLAB_TYPESAFE_BY_RCU rules. We either are in rcu_read_lock() section _or_ we own a r