Linux NFS development
 help / color / mirror / Atom feed
From: "Frank Filz" <ffilzlnx@mindspring.com>
To: "'Jeff Layton'" <jlayton@kernel.org>,
	"'Roberto Bergantinos Corpas'" <rbergant@redhat.com>,
	<trondmy@kernel.org>, <anna@kernel.org>
Cc: <neil@brown.name>, <prabhakar.pujeri@dell.com>,
	<linux-nfs@vger.kernel.org>
Subject: RE: [PATCH v2] NFS: return DENIED in decode_lock_denied if we cannot decode owner
Date: Fri, 25 Sep 2026 11:01:45 -0700	[thread overview]
Message-ID: <015401dd4d17$f0df5e60$d29e1b20$@mindspring.com> (raw)
In-Reply-To: <fdb976f6e9b78e2618de70bcf6595e9f484fc30f.camel@kernel.org>

The thing is, it may not be a server bug. The protocol specifies a limit of 1024 bytes for the owner opaque. The owner may come from something other than another Linux client.

In fact, as has been pointed out by someone else, Ganesha returns a 21 byte "ganesha_unknown_owner" when the lock owner is not another NFS owner. Obviously we could (and probably will) shorten this, but the owner could just as well come from another client, or be some representation of a local owner. Nothing in the protocol even gives a hint that the owner should be limited to something as small as 20 bytes.

Personally I have wondered of the conflicting lock owner is really useful to anyone anyway. Obviously the Linux client does nothing with it (which really is reasonable since the POSIX fcntl call only allows for returning a pid). I guess there might be some use in a tcpdump trace (but even there, one might argue it would be nice to see the IP address of the client holding the conflicting lock along with its [probably 20 byte] lock owner).

Frank

-----Original Message-----
From: Jeff Layton [mailto:jlayton@kernel.org] 
Sent: Thursday, September 17, 2026 5:24 AM
To: Roberto Bergantinos Corpas <rbergant@redhat.com>; trondmy@kernel.org; anna@kernel.org
Cc: neil@brown.name; prabhakar.pujeri@dell.com; linux-nfs@vger.kernel.org
Subject: Re: [PATCH v2] NFS: return DENIED in decode_lock_denied if we cannot decode owner

...  

Typically, we don't work around server bugs in the client (and vice versa), but I think this is a reasonable thing to do in this case since we don't use remote lockowner information anywhere in the kernel.

Reviewed-by: Jeff Layton <jlayton@kernel.org>


  reply	other threads:[~2026-09-25 18:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17 10:49 [PATCH v2] NFS: return DENIED in decode_lock_denied if we cannot decode owner Roberto Bergantinos Corpas
2026-09-17 12:24 ` Jeff Layton
2026-09-25 18:01   ` Frank Filz [this message]
2026-09-24  9:15 ` Tomas Dabasinskas

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='015401dd4d17$f0df5e60$d29e1b20$@mindspring.com' \
    --to=ffilzlnx@mindspring.com \
    --cc=anna@kernel.org \
    --cc=jlayton@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neil@brown.name \
    --cc=prabhakar.pujeri@dell.com \
    --cc=rbergant@redhat.com \
    --cc=trondmy@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