commit | 15a7dea750e0162f273c6e61a94f96944b75b31e | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Fri Aug 30 12:25:47 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sat Aug 31 23:44:28 2019 -0700 |
tree | 3d5d9bed6fd3f7e42183e803c1540895d89c4b71 | |
parent | ed6e8103ba72af6921989cf0cf2ccde5efa7af22 [diff] |
net/tls: use RCU protection on icsk->icsk_ulp_data 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: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>