From: Jeff Layton <jlayton@kernel.org>
To: Chuck Lever III <chuck.lever@oracle.com>
Cc: Petr Vorel <pvorel@suse.cz>,
"ltp@lists.linux.it" <ltp@lists.linux.it>,
Neil Brown <neilb@suse.de>, Cyril Hrubis <chrubis@suse.cz>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 1/1] proc01: Whitelist /proc/fs/nfsd/nfsv4recoverydir
Date: Mon, 15 Apr 2024 13:43:37 -0400 [thread overview]
Message-ID: <5052616ca4c2789ffcc51a27cbff060e2fbdb7b4.camel@kernel.org> (raw)
In-Reply-To: <6820832A-9F38-4DE7-8EE4-7AAC8CF06FD4@oracle.com>
On Mon, 2024-04-15 at 17:37 +0000, Chuck Lever III wrote:
>
> > On Apr 15, 2024, at 1:35 PM, Jeff Layton <jlayton@kernel.org> wrote:
> >
> > On Mon, 2024-04-15 at 17:27 +0000, Chuck Lever III wrote:
> > >
> > > > On Apr 15, 2024, at 1:21 PM, Petr Vorel <pvorel@suse.cz> wrote:
> > > >
> > > > /proc/fs/nfsd/nfsv4recoverydir started from kernel 6.8 report EINVAL.
> > > >
> > > > Signed-off-by: Petr Vorel <pvorel@suse.cz>
> > > > ---
> > > > Hi,
> > > >
> > > > @ Jeff, Chuck, Neil, NFS devs: The patch itself whitelist reading
> > > > /proc/fs/nfsd/nfsv4recoverydir in LTP test. I suspect reading failed
> > > > with EINVAL in 6.8 was a deliberate change and expected behavior when
> > > > CONFIG_NFSD_LEGACY_CLIENT_TRACKING is not set:
> > >
> > > I'm not sure it was deliberate. This seems like a behavior
> > > regression. Jeff?
> > >
> >
> > I don't think I intended to make it return -EINVAL. I guess that's what
> > happens when there is no entry for it in the write_op array.
> >
> > With CONFIG_NFSD_LEGACY_CLIENT_TRACKING disabled, that file has no
> > meaning or value at all anymore. Maybe we should just remove the dentry
> > altogether when CONFIG_NFSD_LEGACY_CLIENT_TRACKING is disabled?
>
> My understanding of the rules about modifying this part of
> the kernel-user interface is that the file has to stay, even
> though it's now a no-op.
>
Does it? Where are these rules written?
What should we have it do now when read and written? Maybe EOPNOTSUPP
would be better, if we can make it just return an error?
We could also make it just discard written data, and present a blank
string when read. What do the rules say we are required to do here?
--
Jeff Layton <jlayton@kernel.org>
next prev parent reply other threads:[~2024-04-15 17:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-15 17:21 [PATCH 1/1] proc01: Whitelist /proc/fs/nfsd/nfsv4recoverydir Petr Vorel
2024-04-15 17:27 ` Chuck Lever III
2024-04-15 17:35 ` Jeff Layton
2024-04-15 17:37 ` Chuck Lever III
2024-04-15 17:43 ` Jeff Layton [this message]
2024-04-15 18:00 ` Petr Vorel
2024-04-15 21:07 ` Chuck Lever
2024-04-15 23:52 ` NeilBrown
2024-04-16 10:10 ` Jeff Layton
2024-04-16 18:50 ` Chuck Lever
2024-04-17 6:06 ` Petr Vorel
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=5052616ca4c2789ffcc51a27cbff060e2fbdb7b4.camel@kernel.org \
--to=jlayton@kernel.org \
--cc=chrubis@suse.cz \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=ltp@lists.linux.it \
--cc=neilb@suse.de \
--cc=pvorel@suse.cz \
/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;
as well as URLs for NNTP newsgroup(s).