Re: [PATCH net-next 1/3] net/tls: use RCU protection on icsk->icsk_ulp_data

2019-08-19 Thread Davide Caratti
On Thu, 2019-08-15 at 14:32 -0700, Jakub Kicinski wrote: > On Thu, 15 Aug 2019 18:00:42 +0200, Davide Caratti wrote: > > From: Jakub Kicinski > > > > We need to make sure context does not get freed while diag > > code is interrogating it. Free struct tls_context with > > kfree_rcu(). > > > > We

Re: [PATCH net-next 1/3] net/tls: use RCU protection on icsk->icsk_ulp_data

2019-08-15 Thread Jakub Kicinski
On Thu, 15 Aug 2019 18:00:42 +0200, Davide Caratti wrote: > From: Jakub Kicinski > > We need to make sure context does not get freed while diag > code is interrogating it. Free struct tls_context with > kfree_rcu(). > > We add the __rcu annotation directly in icsk, and cast it > away in the data

[PATCH net-next 1/3] net/tls: use RCU protection on icsk->icsk_ulp_data

2019-08-15 Thread Davide Caratti
From: Jakub Kicinski We need to make sure context does not get freed while diag code is interrogating it. Free struct tls_context with kfree_rcu(). We add the __rcu annotation directly in icsk, and cast it away in the datapath accessor. Presumably all ULPs will do a similar thing. Signed-off-by