From: Eric Biggers <ebiggers@kernel.org>
To: linux-nfs@vger.kernel.org, Chuck Lever <chuck.lever@oracle.com>,
Jeff Layton <jlayton@kernel.org>
Cc: NeilBrown <neil@brown.name>,
Olga Kornievskaia <okorniev@redhat.com>,
Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey <tom@talpey.com>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] nfsd: Use MD5 library instead of crypto_shash
Date: Thu, 16 Oct 2025 11:20:02 -0700 [thread overview]
Message-ID: <20251016182002.GA6416@sol> (raw)
In-Reply-To: <20251016181534.17252-1-ebiggers@kernel.org>
On Thu, Oct 16, 2025 at 11:15:34AM -0700, Eric Biggers wrote:
> Update NFSD's support for "legacy client tracking" (which uses MD5) to
> use the MD5 library instead of crypto_shash. This has several benefits:
>
> - Simpler code. Notably, much of the error-handling code is no longer
> needed, since the library functions can't fail.
>
> - Improved performance due to reduced overhead. A microbenchmark of
> nfs4_make_rec_clidname() shows a speedup from 1455 cycles to 425.
>
> - The MD5 code can now safely be built as a loadable module when nfsd is
> built as a loadable module. (Previously, nfsd forced the MD5 code to
> built-in, presumably to work around the unreliability of the
> name-based loading.) Thus select MD5 from the tristate option NFSD if
> NFSD_LEGACY_CLIENT_TRACKING, instead of from the bool option NFSD_V4.
>
> - Fixes a bug where legacy client tracking was not supported on kernels
> booted with "fips=1", due to crypto_shash not allowing MD5 to be used.
> This particular use of MD5 is not for a cryptographic purpose, though,
> so it is acceptable even when fips=1 (see
> https://lore.kernel.org/r/dae495a93cbcc482f4ca23c3a0d9360a1fd8c3a8.camel@redhat.com/).
>
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>
I forgot the tags from v1. Please add when applying:
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Scott Mayhew <smayhew@redhat.com>
- Eric
next prev parent reply other threads:[~2025-10-16 18:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 18:15 Eric Biggers
2025-10-16 18:20 ` Eric Biggers [this message]
2025-10-16 18:31 ` Chuck Lever
2025-10-16 18:53 ` Eric Biggers
2025-10-16 19:00 ` Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251016182002.GA6416@sol \
--to=ebiggers@kernel.org \
--cc=Dai.Ngo@oracle.com \
--cc=chuck.lever@oracle.com \
--cc=jlayton@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neil@brown.name \
--cc=okorniev@redhat.com \
--cc=tom@talpey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®