From: Paulo Alcantara <pc@manguebit.com>
To: "Steinbeißer, Sebastian" <Sebastian.Steinbeisser@lrz.de>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Cc: "regressions@lists.linux.dev" <regressions@lists.linux.dev>,
Tom Talpey <tom@talpey.com>, Steve French <smfrench@gmail.com>
Subject: Re: Potential smb/dfs regression introduced in kernel 6.6
Date: Wed, 17 Jul 2024 15:24:59 -0300 [thread overview]
Message-ID: <4b718a0b9a967d4bc0428a3f706e3b15@manguebit.com> (raw)
In-Reply-To: <dd0259752e3557fa1b60dda4db3bf790d9ff877c.camel@lrz.de>
[-- Attachment #1: Type: text/plain, Size: 2461 bytes --]
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.
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.
Please find attached a similar network trace when accessing a directory
with same reparse point (IO_REPARSE_TAG_MOUNT_POINT) against Windows
Server 2022.
What does NetApp say about failing those FSCTL_GET_REPARSE_POINT IOCTL
requests?
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
[-- Attachment #2: w2k22.pcapng --]
[-- Type: application/octet-stream, Size: 15648 bytes --]
next prev parent reply other threads:[~2024-07-17 18:25 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 [this message]
2024-07-17 20:03 ` Tom Talpey
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=4b718a0b9a967d4bc0428a3f706e3b15@manguebit.com \
--to=pc@manguebit.com \
--cc=Sebastian.Steinbeisser@lrz.de \
--cc=gregkh@linuxfoundation.org \
--cc=regressions@lists.linux.dev \
--cc=smfrench@gmail.com \
--cc=tom@talpey.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.