]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: use RCU protection on icsk->icsk_ulp_data
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 30 Aug 2019 10:25:47 +0000 (12:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 06:44:28 +0000 (23:44 -0700)
commit25d5e0a5ffb9a1a2eddeee2e4294078c4c6045ab
tree3d5d9bed6fd3f7e42183e803c1540895d89c4b71
parentf576ecd951d96e51bcdebc8d19df0b45ead2e7c6
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>
include/net/inet_connection_sock.h
include/net/tls.h
net/core/sock_map.c
net/tls/tls_device.c
net/tls/tls_main.c