Skip to content

Commit 38a2204

Browse files
pks-tJ. Bruce Fields
authored andcommitted
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 6aaa67b (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 df486a2 (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: df486a2 (NFS: Fix the selection of security flavours in Kconfig) Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 18f428d commit 38a2204

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfsd/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ config NFSD_V4
7373
select NFSD_V3
7474
select FS_POSIX_ACL
7575
select SUNRPC_GSS
76+
select CRYPTO_MD5
7677
select CRYPTO_SHA256
7778
select GRACE_PERIOD
7879
help

0 commit comments

Comments
 (0)