]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
chelsio/chtls: fix deadlock issue
authorVinay Kumar Yadav <vinay.yadav@chelsio.com>
Sun, 25 Oct 2020 19:35:39 +0000 (01:05 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Oct 2020 23:48:03 +0000 (16:48 -0700)
commit28e9dcd9172028263c8225c15c4e329e08475e89
treedb13cc573418d2e66fe9fdd2505df456c17d8548
parente3364c5ff3ff975b943a7bf47e21a2a4bf20f3fe
chelsio/chtls: fix deadlock issue

In chtls_pass_establish() we hold child socket lock using bh_lock_sock
and we are again trying bh_lock_sock in add_to_reap_list, causing deadlock.
Remove bh_lock_sock in add_to_reap_list() as lock is already held.

Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition")
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Link: https://lore.kernel.org/r/20201025193538.31112-1-vinay.yadav@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c