ktls / af_ktls

Linux Kernel TLS/DTLS Module
GNU General Public License v2.0
159 stars 25 forks source link

Sleeping with lock held #66

Closed lancerchao closed 8 years ago

lancerchao commented 8 years ago

tls_rx_async_work acquires tsk->rx_lock, then tries to lock_sock() twice (for both tsk and the underlying socket). lock_sock() potentially sleeps

lancerchao commented 8 years ago

Need to investigate this further. tsk->rx_lock is not a spinlock, so it should be okay. But for some reason the kernel locking debug module still complained.