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>
Showing
- include/net/inet_connection_sock.h 1 addition, 1 deletioninclude/net/inet_connection_sock.h
- include/net/tls.h 7 additions, 2 deletionsinclude/net/tls.h
- net/core/sock_map.c 1 addition, 1 deletionnet/core/sock_map.c
- net/tls/tls_device.c 1 addition, 1 deletionnet/tls/tls_device.c
- net/tls/tls_main.c 19 additions, 7 deletionsnet/tls/tls_main.c
Loading
Please register or sign in to comment