]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: depend on CRYPTO_MD5 for legacy client tracking
authorPatrick Steinhardt <ps@pks.im>
Wed, 4 Dec 2019 06:13:22 +0000 (07:13 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 7 Dec 2019 16:28:52 +0000 (11:28 -0500)
commitf9df4c210928aa0e607c09b1de5d41b1c2938d78
treedcf3016f7ed59361d3834905bedbf4b33101c722
parent29bb2d6d3325625261326e67dfe4e70db0922ee2
nfsd: depend on CRYPTO_MD5 for legacy client tracking

The legacy client tracking infrastructure of nfsd makes use of MD5 to
derive a client's recovery directory name. As the nfsd module doesn't
declare any dependency on CRYPTO_MD5, though, it may fail to allocate
the hash if the kernel was compiled without it. As a result, generation
of client recovery directories will fail with the following error:

    NFSD: unable to generate recoverydir name

The explicit dependency on CRYPTO_MD5 was removed as redundant back in
27e240fdf617 (NFSD: Remove redundant "select" clauses in fs/Kconfig
2008-02-11) as it was already implicitly selected via RPCSEC_GSS_KRB5.
This broke when RPCSEC_GSS_KRB5 was made optional for NFSv4 in commit
006c174a09d1 (NFS: Fix the selection of security flavours in Kconfig) at
a later point.

Fix the issue by adding back an explicit dependency on CRYPTO_MD5.

Fixes: 006c174a09d1 (NFS: Fix the selection of security flavours in Kconfig)
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/Kconfig