Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: af_alg - Use bh_lock_sock in sk_destruct
As af_alg_release_parent may be called from BH context (most notably due to an async request that only completes after socket closure, or as reported here because of an RCU-delayed sk_destruct call), we must use bh_lock_sock instead of lock_sock. Reported-by: [email protected] Reported-by: Eric Dumazet <[email protected]> Fixes: c840ac6 ("crypto: af_alg - Disallow bind/setkey/...") Cc: <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information