Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1200601ybl; Fri, 6 Dec 2019 13:03:25 -0800 (PST) X-Google-Smtp-Source: APXvYqx8jznHRkyh/g+/ob42SA0jbLFWg5f0qd5TciShjGPtxWeBW4T0o83svSCYWcIAdGir44FF X-Received: by 2002:a9d:53c9:: with SMTP id i9mr12737841oth.172.1575666205138; Fri, 06 Dec 2019 13:03:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575666205; cv=none; d=google.com; s=arc-20160816; b=Q2vhLvOnemAM7GnFpB996T+7oEwooRS6MI663if2vb4sYScDIX6O2PRAreOjWgJFpe 1ATid1c+AjQaEk3+MWrWzO9RAwzi3RPf7TlaZwz/BeH/wes4Xn3Cwqe5VeZzBoLMepxP pzl+K59TeMsvotCmZdvjg5MEOUKW1qIZebHoQhwLkz/0d2P2Ggd6F+pPdeYmSI/vpAbm VIDDACmsJljh4aEmgGqp36ehYo2mHXRo/PwJVqD3TKPTqKxTrA5MR8bL/0le2t68zpuQ eWNp9MCd93YNRUVtWnc+HcZZcDrBRZU/s1+qTtKQCbOmhS3law49usXIwbLcfABGGYqq Ep6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=R46YA/mTly7hVAzOeohoT4vzB8hnV+UvKiegRtYHvLw=; b=CfSQh5T1gmVD28CB1DpFg8oqNMPoxIzTk3XsEGqWS4sr3tpS943e9i4+lTbF3R3oAi d3tZnwlPIpZ9maf4m+v4Q+8Lj90YD3fMzAfIRRtDOGsJrRrWP+kqSBdYTXCJkv5LOrIx RGwrOTCMAuG5FMcqHf7AwWTHY//A294FWOZxDP66CyF8sByHLY43CWTLL9YI9gzA2QUx zDlVn0n0ThcmXp7vNvxwVkn1PHO1uEZ8vW+suS9Ll3nszDh+dNuHZ7e1lDBtSeCCbzhf wRx5WPfynzuM1R7aiefHUK1r1K2jUxSCPOGkGPYfYEr2ruf32C4SXg+gQ5noJo6eWpd1 kE+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si3820037otq.137.2019.12.06.13.03.03; Fri, 06 Dec 2019 13:03:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbfLFVDB (ORCPT + 99 others); Fri, 6 Dec 2019 16:03:01 -0500 Received: from fieldses.org ([173.255.197.46]:54200 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbfLFVDB (ORCPT ); Fri, 6 Dec 2019 16:03:01 -0500 Received: by fieldses.org (Postfix, from userid 2815) id 067631C95; Fri, 6 Dec 2019 16:03:01 -0500 (EST) Date: Fri, 6 Dec 2019 16:03:00 -0500 From: "J. Bruce Fields" To: Patrick Steinhardt Cc: linux-nfs@vger.kernel.org, Chuck Lever Subject: Re: [PATCH v2] nfsd: depend on CRYPTO_MD5 for legacy client tracking Message-ID: <20191206210300.GA17524@fieldses.org> References: <7af3028bd374451f35e36a6c289c44d9c932ee71.1575439669.git.ps@pks.im> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7af3028bd374451f35e36a6c289c44d9c932ee71.1575439669.git.ps@pks.im> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Thanks, applied your v2. --b. On Wed, Dec 04, 2019 at 07:13:22AM +0100, Patrick Steinhardt wrote: > 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 > 6aaa67b5f3b9 (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 > df486a25900f (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: df486a25900f (NFS: Fix the selection of security flavours in Kconfig) > Signed-off-by: Patrick Steinhardt > --- > > The only change compared to v1 is in the commit message. As > pointed out by Chuck, it wasn't actually commit 6aaa67b5f3b9 > which broke it, but the later df486a25900f. I've reworded the > commit message and fixed the Fixes tag to account for that. > > fs/nfsd/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/nfsd/Kconfig b/fs/nfsd/Kconfig > index c4b1a89b8845..f2f81561ebb6 100644 > --- a/fs/nfsd/Kconfig > +++ b/fs/nfsd/Kconfig > @@ -73,6 +73,7 @@ config NFSD_V4 > select NFSD_V3 > select FS_POSIX_ACL > select SUNRPC_GSS > + select CRYPTO_MD5 > select CRYPTO_SHA256 > select GRACE_PERIOD > help > -- > 2.24.0