linux/drivers/crypto/chelsio
Ayush Sawal 876aa9f527 Crypto: chelsio - Fixes a deadlock between rtnl_lock and uld_mutex
The locks are taken in this order during driver registration
(uld_mutex), at: cxgb4_register_uld.part.14+0x49/0xd60 [cxgb4]
(rtnl_mutex), at: rtnetlink_rcv_msg+0x2db/0x400
(uld_mutex), at: cxgb_up+0x3a/0x7b0 [cxgb4]
(rtnl_mutex), at: chcr_add_xfrmops+0x83/0xa0 [chcr](stucked here)

To avoid this now the netdev features are updated after the
cxgb4_register_uld function is completed.

Fixes: 6dad4e8ab3 ("chcr: Add support for Inline IPSec").

Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-30 10:33:23 -07:00
..
chtls Crypto/chtls: add/delete TLS header in driver 2020-03-23 13:04:48 -07:00
chcr_algo.c crypto: remove propagation of CRYPTO_TFM_RES_* flags 2020-01-09 11:30:53 +08:00
chcr_algo.h crypto: chelsio - switch to skcipher API 2019-11-17 09:02:47 +08:00
chcr_common.h chcr: Handle first or middle part of record 2020-03-08 21:16:23 -07:00
chcr_core.c Crypto: chelsio - Fixes a deadlock between rtnl_lock and uld_mutex 2020-03-30 10:33:23 -07:00
chcr_core.h cxgb4/chcr: complete record tx handling 2020-03-08 21:16:23 -07:00
chcr_crypto.h crypto: chelsio - switch to skcipher API 2019-11-17 09:02:47 +08:00
chcr_ipsec.c Crypto: chelsio - Fixes a deadlock between rtnl_lock and uld_mutex 2020-03-30 10:33:23 -07:00
chcr_ktls.c chcr: remove set but not used variable 'status' 2020-03-16 02:02:04 -07:00
chcr_ktls.h cxgb4/chcr: Add ipv6 support and statistics 2020-03-08 21:16:23 -07:00
Kconfig cxgb4/chcr : Register to tls add and del callback 2020-03-08 21:16:23 -07:00
Makefile cxgb4/chcr : Register to tls add and del callback 2020-03-08 21:16:23 -07:00