]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: null - Use spin lock instead of mutex
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 12 Feb 2025 06:10:07 +0000 (14:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:34 +0000 (07:44 +0200)
commit1dd4a8561d85dea545cf93f56efc48df8176e218
treef78754cb0e4fa17510abc7e6dd45ed3db3250073
parent10829b24512a7201a29957803532fe58440fd609
crypto: null - Use spin lock instead of mutex

[ Upstream commit dcc47a028c24e793ce6d6efebfef1a1e92f80297 ]

As the null algorithm may be freed in softirq context through
af_alg, use spin locks instead of mutexes to protect the default
null algorithm.

Reported-by: syzbot+b3e02953598f447d4d2a@syzkaller.appspotmail.com
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/crypto_null.c