From: Tom Talpey <tom@talpey.com>
To: "Paulo Alcantara" <pc@manguebit.com>,
"Steinbeißer, Sebastian" <Sebastian.Steinbeisser@lrz.de>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Cc: "regressions@lists.linux.dev" <regressions@lists.linux.dev>,
Steve French <smfrench@gmail.com>
Subject: Re: Potential smb/dfs regression introduced in kernel 6.6
Date: Wed, 17 Jul 2024 16:03:27 -0400 [thread overview]
Message-ID: <98d458ba-4258-4598-b8fc-0fe6cfeb2f87@talpey.com> (raw)
In-Reply-To: <4b718a0b9a967d4bc0428a3f706e3b15@manguebit.com>
Thanks for cc'ing me, I don't think I saw the original message.
On 7/17/2024 2:24 PM, Paulo Alcantara wrote:
> Hi Sebastian,
>
> Sorry for the delay as I've been quite busy with other stuff lately.
> [Cc Steve, Tom]
>
> Steinbeißer, Sebastian <Sebastian.Steinbeisser@lrz.de> writes:
>
>> we have set up a share without signing & encryption and I reran the
>> commands.
>>
>> Find the output attached.
>
> Thanks!
>
> By looking at the trace_fail.pcap file, the problem seems related to
> NetApp server not allowing the client to query the reparse point data
> buffer from volume0{2,3} files by failing the SMB2_IOCTL
> FSCTL_GET_REPARSE_POINT requests with STATUS_INVALID_DEVICE_REQUEST:
>
> ...
> SMB2 546 Create Request File: volume02;GetInfo Request FILE_INFO/SMB2_FILE_ALL_INFO;Ioctl Request FSCTL_GET_REPARSE_POINT;Close Request
> SMB2 678 Create Response File: volume02;GetInfo Response;Ioctl Response,Error: STATUS_INVALID_DEVICE_REQUEST;Close Response
> ...
> SMB2 546 Create Request File: volume03;GetInfo Request FILE_INFO/SMB2_FILE_ALL_INFO;Ioctl Request FSCTL_GET_REPARSE_POINT;Close Request
> SMB2 678 Create Response File: volume03;GetInfo Response;Ioctl Response, Error: STATUS_INVALID_DEVICE_REQUEST;Close Response
>
> The client knows that volume0{2,3} files both contain reparse points by
> parsing the SMB2_CREATE responses in packets #545 and #551 (as specified
> in MS-SMB2 2.2.14), so in order to figure out what kind of reparse
> points they have, the client then sends SMB2_IOCTL
> FSCTL_GET_REPARSE_POINT requests which the server fails with
> STATUS_INVALID_DEVICE_REQUEST.
I don't have the original trace, so I can't see packets #545 and #551.
On the face of it, failing the FSCTL_GET_REPARSE_POINT with this error
would be quite unexpected. MS-FSA says:
-- Support for this operation is optional. If the object store does not
-- implement this functionality, the operation MUST be failed with
-- STATUS_INVALID_DEVICE_REQUEST
So it appears the server reported the file as a reparse point, but does
not support FSCTL_GET_REPARSE_POINT. On the other hand, it did not
return STATUS_REPARSE to the SMB2_CREATE? Seems like an incomplete
implementation.
> The old behavior was simply accessing those volumes as regular
> directories which became problematic due to users reporting duplicated
> inode numbers when accessing them from within SMB shares, which could
> potentially lead to data corruptions. Newer kernels set those files as
> automounts with 'noserverino' set to avoid inode number collisions.
I guess the older clients saw the directory bit, ignored the reparse,
and just sent the next op as if it were simply a directory. The server
in turn fixed up the reparse and followed it, operating on the target
directory. Duplicate inode numbers seems like the tip of that iceberg.
The new behavior is much more correct from an SMB2 protocol standpoint.
Clients are supposed to know they've been reparsed/redirected.
> Please find attached a similar network trace when accessing a directory
> with same reparse point (IO_REPARSE_TAG_MOUNT_POINT) against Windows
> Server 2022.
Yes, this confirms the behavior (packet #43), and indicates the Windows
client is doing the same thing, and probably never succeeded. It would
surprise me a lot if NetApp never heard this.
> What does NetApp say about failing those FSCTL_GET_REPARSE_POINT IOCTL
> requests?
I'd love to hear their response too. It's technically optional, but
doesn't make much sense.
Tom.
> Do you think that any of these server-side options [1] would help?
>
> [-is-use-junctions-as-reparse-points-enabled {true|false}]
> [-widelink-as-reparse-point-versions <CIFS Dialects>,…]
>
> Tom & Steve, any thoughts on this? Are we missing something in the
> client to handle such case?
>
> [1] https://docs.netapp.com/us-en/ontap-cli-98/vserver-cifs-options-modify.html
>
next prev parent reply other threads:[~2024-07-17 20:03 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 13:28 Potential smb/dfs regression introduced in kernel 6.6 Steinbeißer, Sebastian
2024-06-27 13:37 ` Greg KH
[not found] ` <f3a02647b6fcb27a70da4c334930ad3c@manguebit.com>
2024-06-28 8:19 ` Steinbeißer, Sebastian
2024-07-11 6:20 ` Steinbeißer, Sebastian
2024-07-11 7:27 ` gregkh
2024-07-11 15:20 ` Christian Heusel
2024-07-14 19:12 ` Paulo Alcantara
2024-07-15 5:41 ` Steinbeißer, Sebastian
2024-07-15 12:21 ` Paulo Alcantara
2024-07-15 13:26 ` Steinbeißer, Sebastian
2024-07-15 14:24 ` Paulo Alcantara
2024-07-16 6:14 ` Steinbeißer, Sebastian
2024-07-17 18:24 ` Paulo Alcantara
2024-07-17 20:03 ` Tom Talpey [this message]
2024-07-18 5:43 ` Steinbeißer, Sebastian
2024-07-25 1:28 ` Paulo Alcantara
2024-07-26 8:19 ` Steinbeißer, Sebastian
2024-07-26 18:00 ` Paulo Alcantara
2024-07-29 5:57 ` Steinbeißer, Sebastian
2024-07-29 12:34 ` Paulo Alcantara
2024-07-30 5:25 ` Steinbeißer, Sebastian
2024-07-31 2:35 ` Paulo Alcantara
2024-07-31 5:02 ` Steinbeißer, Sebastian
2024-07-31 5:07 ` Steinbeißer, Sebastian
2024-07-31 14:25 ` Paulo Alcantara
2024-08-01 13:07 ` Steinbeißer, Sebastian
2024-08-01 16:25 ` Paulo Alcantara
2024-08-01 19:02 ` Tom Talpey
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=98d458ba-4258-4598-b8fc-0fe6cfeb2f87@talpey.com \
--to=tom@talpey.com \
--cc=Sebastian.Steinbeisser@lrz.de \
--cc=gregkh@linuxfoundation.org \
--cc=pc@manguebit.com \
--cc=regressions@lists.linux.dev \
--cc=smfrench@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.