• Artem Savkov's avatar
    security/keys: make BIG_KEYS dependent on stdrng. · 615662b0
    Artem Savkov authored
    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: 13100a72 ('Security: Keys: Big keys stored encrypted')
    Signed-off-by: default avatarArtem Savkov <asavkov@redhat.com>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Stephan Mueller <smueller@chronox.de>
    cc: Kirill Marinushkin <k.marinushkin@gmail.com>
    cc: stable@vger.kernel.org
    615662b0
Kconfig 3.25 KB