]> git.baikalelectronics.ru Git - kernel.git/commit
security/keys: make BIG_KEYS dependent on stdrng.
authorArtem Savkov <asavkov@redhat.com>
Wed, 26 Oct 2016 14:02:09 +0000 (15:02 +0100)
committerJames Morris <james.l.morris@oracle.com>
Thu, 27 Oct 2016 05:03:33 +0000 (16:03 +1100)
commitcda7ec5252f186a4ea268db3e30010f62bc2ffc6
treeba04b350b84151753936b5a2ed9087bc4721d8cd
parent323fbdb0bef52289d53a9ef9cd33173c56a1832f
security/keys: make BIG_KEYS dependent on stdrng.

Since BIG_KEYS can't be compiled as module it requires one of the "stdrng"
providers to be compiled into kernel. Otherwise big_key_crypto_init() fails
on crypto_alloc_rng step and next dereference of big_key_skcipher (e.g. in
big_key_preparse()) results in a NULL pointer dereference.

Fixes: 60377bdcc526a86628cccd40d4ca500acd8ebc20 ('Security: Keys: Big keys stored encrypted')
Signed-off-by: Artem Savkov <asavkov@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Stephan Mueller <smueller@chronox.de>
cc: Kirill Marinushkin <k.marinushkin@gmail.com>
cc: stable@vger.kernel.org
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/keys/Kconfig