aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_main.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2018-12-10 19:49:55 +0000
committerDavid S. Miller <[email protected]>2018-12-14 21:16:33 +0000
commit15ef70e286176165d28b0b8a969b422561a68dfc (patch)
treeef79c96eb556365029d89323ab6b74b92495f12c /net/tls/tls_main.c
parentnet: netlink: rename NETLINK_DUMP_STRICT_CHK -> NETLINK_GET_STRICT_CHK (diff)
downloadkernel-15ef70e286176165d28b0b8a969b422561a68dfc.tar.gz
kernel-15ef70e286176165d28b0b8a969b422561a68dfc.zip
tipc: use lock_sock() in tipc_sk_reinit()
lock_sock() must be used in process context to be race-free with other lock_sock() callers, for example, tipc_release(). Otherwise using the spinlock directly can't serialize a parallel tipc_release(). As it is blocking, we have to hold the sock refcnt before rhashtable_walk_stop() and release it after rhashtable_walk_start(). Fixes: 07f6c4bc048a ("tipc: convert tipc reference table to use generic rhashtable") Reported-by: Dmitry Vyukov <[email protected]> Cc: Ying Xue <[email protected]> Cc: Jon Maloy <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tls/tls_main.c')
0 files changed, 0 insertions, 0 deletions