Linux NFS development
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: Benji Wiebe <itsme@benjiwiebe.com>, Chuck Lever <cel@kernel.org>
Cc: Linux kernel regressions list <regressions@lists.linux.dev>,
	 linux-nfs@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [REGRESSION] reads and writes hang if NFS server has v3 disabled
Date: Tue, 08 Sep 2026 05:49:06 -0400	[thread overview]
Message-ID: <4a4a2c6522a0574af0bd0925aad9bd75987e933a.camel@kernel.org> (raw)
In-Reply-To: <b5134cbf-f73e-4326-8969-5d8ac070b3eb@benjiwiebe.com>

On Mon, 2026-09-07 at 13:57 -0500, Benji Wiebe wrote:
> On 9/4/26 8:45 AM, Jeff Layton wrote:
> > On Fri, 2026-09-04 at 09:09 -0400, Chuck Lever wrote:
> > > [ Adding correct addresses from MAINTAINERS ]
> > > 
> > > On Fri, Sep 4, 2026, at 9:05 AM, Chuck Lever wrote:
> > > > I'm using a minimal Fedora 45 VM (kvm) for testing.   I export a
> > > > directory with rw and mount it from my personal computer running Fedora
> > > > 45 as well. If /etc/nfs. conf has vers3=n, then reads and writes hang in
> > > > D+ state, and there's a continuous
> > > > 
> > > > 
> > > > I'm using a minimal Fedora 45 VM (kvm) for testing.  I export a
> > > > directory with rw and mount it from my personal computer running Fedora
> > > > 45 as well.
> > > > If /etc/nfs.conf has vers3=n, then reads and writes hang in D+ state,
> > > > and there's a continuous loop of V3 NULL calls, with the server replying
> > > > that it only supports v4.
> > > > If nfs.conf has vers3=y, then the reads and writes succeed.
> > > > Introduced in 70b7e3526c53d9dd, still present in the latest
> > > > mainline/master (841e384b841a).
> > > > 
> > > > The hung state can be rescued by changing the setting and restarting
> > > > nfs-server, at which point the read/write will complete.
> > > > 
> > > > I can do more testing / get more information as needed.
> > > > 
> > > > Here's links to pcap files with it working/bugged:
> > > > http://grepper.net/lkml-files/nfs-working.pcap
> > > > http://grepper.net/lkml-files/nfs-bugged.pcap
> > > > http://grepper.net/lkml-files/nfs-bug-kernel.config
> > > > 
> > > > #regzbot introduced:  70b7e3526c53d9dd7caccdbeff5b0485640d8cf1
> > > 
> > > It's not immediately obvious to me why 70b7e3526c53d9dd should
> > > cause this kind of behavior regression.
> > > 
> > > Jeff, it's a netlink change. Can you triage?
> > > 
> > 
> > Sure.
> > 
> > Looking at the captures, it looks like the server is handing out a
> > flexfiles v3 pNFS layout for the trivial server, and that's (of course)
> > failing in this situation.
> > 
> > So we have at least one server bug there -- it shouldn't advertise a
> > flexfiles v3 layout when it's not serving v3! I'll plan to fix that
> > soon.
> > 
> > That doesn't seem to have anything to do with commit 70b7e3526c53d9dd
> > though. I'm not sure why a bisect would have landed there.
> I checked and rechecked several times (and again now!) and 
> 70b7e3526c53d9dd always had the bug present and 565ee23ea2374 did not 
> have the bug present.>

The bug is in 565ee23ea2374, but until 70b7e3526c53d9dd is applied, the
code it's in is not used, so that explains why you're seeing it there.
 
> > What does the /etc/exports entry for this export look like? Disabling
> > pnfs should work around this for now too if you have it explicitly
> > enabled here.
> 
> The /etc/exports entry I'm using:
> /home/export *(rw,no_root_squash)
> 
> I'm new to the kernel development process; is there a patch I can apply 
> now to see if it fixes the bug?

You want commit f76017a7663c4ce5e379f8a8d39f032bdb1fd865 from Chuck's
nfsd-fixes branch. Basically, what's happening is that pnfs is being
enabled even though you haven't requested it:

https://lore.kernel.org/linux-nfs/20260414-pnfs-exp-fix-v1-1-9face14c16c2@kernel.org/

-- 
Jeff Layton <jlayton@kernel.org>

      reply	other threads:[~2026-09-08  9:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c26ff09f-48d6-4ef3-9feb-8a8e6d6f37ba@benjiwiebe.com>
     [not found] ` <c3d06b9f-7da5-479f-be4f-9c0136631ce9@oracle.com>
2026-09-04 13:09   ` [REGRESSION] reads and writes hang if NFS server has v3 disabled Chuck Lever
2026-09-04 13:45     ` Jeff Layton
2026-09-04 14:15       ` Chuck Lever
2026-09-04 14:51         ` Jeff Layton
2026-09-07 18:57       ` Benji Wiebe
2026-09-08  9:49         ` Jeff Layton [this message]

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=4a4a2c6522a0574af0bd0925aad9bd75987e933a.camel@kernel.org \
    --to=jlayton@kernel.org \
    --cc=cel@kernel.org \
    --cc=itsme@benjiwiebe.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=regressions@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    /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