mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chuck Lever III <chuck.lever@oracle.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
	Trond Myklebust <trond.myklebust@hammerspace.com>,
	Anna Schumaker <anna@kernel.org>
Cc: "Linux NFS Mailing List" <linux-nfs@vger.kernel.org>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	"kernel test robot" <lkp@intel.com>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>
Subject: Re: [PATCH] NFSv4: Fix NFS_V4 select RPCSEC_GSS_KRB5
Date: Tue, 28 Mar 2023 13:40:44 +0000	[thread overview]
Message-ID: <2968C736-0150-4AFC-94BE-F9F8C2859F3E@oracle.com> (raw)
In-Reply-To: <42751e1fef65485a5441618bc39735f8b62b3a46.1679988298.git.geert+renesas@glider.be>



> On Mar 28, 2023, at 3:25 AM, Geert Uytterhoeven <geert+renesas@glider.be> wrote:
> 
> If CONFIG_CRYPTO=n (e.g. arm/shmobile_defconfig):
> 
>    WARNING: unmet direct dependencies detected for RPCSEC_GSS_KRB5
>      Depends on [n]: NETWORK_FILESYSTEMS [=y] && SUNRPC [=y] && CRYPTO [=n]
>      Selected by [y]:
>      - NFS_V4 [=y] && NETWORK_FILESYSTEMS [=y] && NFS_FS [=y]
> 
> As NFSv4 can work without crypto enabled, fix this by making the
> selection of RPCSEC_GSS_KRB5 conditional on CRYPTO.
> 
> Fixes: e57d065277387980 ("NFS & NFSD: Update GSS dependencies")
> Reported-by: kernel test robot <lkp@intel.com>
> Link: https://lore.kernel.org/oe-kbuild-all/202303241307.f6NeW9gZ-lkp@intel.com/
> Reported-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
> Link: https://lore.kernel.org/r/ZCG6tIoz0VN6d+oy@sleipner.dyn.berto.se
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Nfsroot ("root=/dev/nfs rw nfsroot=aaa.bbb.ccc.ddd:/path/to/fs,tcp,v4")
> works fine without CRYPTO and RPCSEC_GSS_KRB5.
> CONFIG_NFSD_V4 selects CRYPTO, so was not affected by the similar change.

Makes sense to me.

I can quickly take this through nfsd-fixes if the NFS maintainers
can send me an Acked-by.


> ---
> fs/nfs/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig
> index 450d6c3bc05e27dd..f05c13ce0155bd69 100644
> --- a/fs/nfs/Kconfig
> +++ b/fs/nfs/Kconfig
> @@ -75,7 +75,7 @@ config NFS_V3_ACL
> config NFS_V4
> 	tristate "NFS client support for NFS version 4"
> 	depends on NFS_FS
> -	select RPCSEC_GSS_KRB5
> +	select RPCSEC_GSS_KRB5 if CRYPTO
> 	select KEYS
> 	help
> 	  This option enables support for version 4 of the NFS protocol
> -- 
> 2.34.1
> 

--
Chuck Lever



  reply	other threads:[~2023-03-28 13:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28  7:25 Geert Uytterhoeven
2023-03-28 13:40 ` Chuck Lever III [this message]
2023-03-28 15:02   ` Trond Myklebust
2023-03-28 15:09     ` Chuck Lever III

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=2968C736-0150-4AFC-94BE-F9F8C2859F3E@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=anna@kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=trond.myklebust@hammerspace.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®