Linux NFS development
 help / color / mirror / Atom feed
* Questions Regarding Delegation Claim Behavior
@ 2025-05-22 15:51 Petro Pavlov
  2025-05-23 14:40 ` Chuck Lever
  0 siblings, 1 reply; 9+ messages in thread
From: Petro Pavlov @ 2025-05-22 15:51 UTC (permalink / raw)
  To: linux-nfs; +Cc: Roi Azarzar


[-- Attachment #1.1: Type: text/plain, Size: 1570 bytes --]

Hello,

My name is Petro Pavlov, I'm a developer at VAST.

I have a few questions about the delegation claim behavior observed in the
Linux kernel version 3.10.0-1160.118.1.el7.x86_64.

I’ve written the following test case:

   1. Client1 opens *file1* with a write delegation; the server grants both
   the open and delegation (*delegation1*).
   2. Client1 closes the open but does not return the delegation.
   3. Client2 opens *file2* and also receives a write delegation (
   *delegation2*).
   4. Client1 then issues an open request with CLAIM_DELEGATE_CUR,
   providing the filename from step 3 *(file2*), but using the delegation
   stateid from step 1 (*delegation1*).
   5. The server begins a recall of *delegation2*, treating the request in
   step 4 as a normal open rather than returning a BAD_STATEID error.

My understanding is that the server should have verified whether the
delegation stateid provided actually belongs to the file being opened.
Since it does not, I expected the server to return a BAD_STATEID error
instead of proceeding with a standard open.

From additional tests, it seems the server only checks whether the
delegation stateid is valid (i.e., whether it was ever granted), but does
not verify that it is associated with the correct file or client. Please
see the attached PCAP for reference.

Questions:

Is this behavior considered a bug?

Are there any known plans to address or fix this issue in future kernel
versions?

Thank you in advance for your help.

Best regards,
Petro Pavlov

[-- Attachment #1.2: Type: text/html, Size: 1669 bytes --]

[-- Attachment #2: delegation_claim.pcap --]
[-- Type: application/octet-stream, Size: 29868 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-06-09 20:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-22 15:51 Questions Regarding Delegation Claim Behavior Petro Pavlov
2025-05-23 14:40 ` Chuck Lever
2025-05-26 11:10   ` Petro Pavlov
2025-05-26 13:36     ` Rick Macklem
2025-05-26 14:55     ` Jeff Layton
2025-05-27 12:58     ` Chuck Lever
2025-05-27 13:22       ` Chuck Lever
     [not found]         ` <CAN5pLa66Fg0kWcwreggDP1btu=guC7ZgZrKX74sKSuej3mXwfQ@mail.gmail.com>
2025-06-08 15:57           ` Chuck Lever
2025-06-09 20:34     ` Dai Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox