All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paulo Alcantara <pc@manguebit.com>
To: "Steinbeißer, Sebastian" <Sebastian.Steinbeisser@lrz.de>,
	"tom@talpey.com" <tom@talpey.com>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Cc: "smfrench@gmail.com" <smfrench@gmail.com>,
	"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: Potential smb/dfs regression introduced in kernel 6.6
Date: Wed, 31 Jul 2024 11:25:53 -0300	[thread overview]
Message-ID: <ff56ae33c66856c0cf21b4049dc84bcb@manguebit.com> (raw)
In-Reply-To: <ff47edb26e0cd9e591cfb3ece2407971202dfc09.camel@lrz.de>

Steinbeißer, Sebastian	<Sebastian.Steinbeisser@lrz.de> writes:

> one thing I should have tested but forgot and now did:
> With the patch applied it is also possible to mount one of the SMB 3.1
> signed & encrypted shares that were originally affected on the
> production system and not only the test one!

Thank you very much for testing it!  The fix was sent upstream already.

BTW, I've noticed that the previous network trace showed that the
FSCTL_GET_REPARSE_POINT in the compounded response returned
STATUS_SUCCESS rather than STATUS_INVALID_DEVICE_REQUEST.  So I compared
it with other network traces and it seems that NetApp server is
requiring the client to open the file with FILE_READ_EA bit set in
SMB2_CREATE::AccessMask.  Windows client also sets FILE_READ_EA it, so
the FSCTL_GET_REPARSE_POINT request would probably work against NetApp
server.

I don't see anything in the specs that would require FILE_READ_EA being
set for FSCTL_GET_REPARSE_POINT, but could you please do another testing
with below changes on top of existing patch just to confirm my findings?

Thanks.

diff --git a/fs/smb/client/smb2inode.c b/fs/smb/client/smb2inode.c
index 062b86a4936f..e241a966997e 100644
--- a/fs/smb/client/smb2inode.c
+++ b/fs/smb/client/smb2inode.c
@@ -1258,7 +1258,8 @@ int smb2_query_reparse_point(const unsigned int xid,
 	cifs_dbg(FYI, "%s: path: %s\n", __func__, full_path);
 
 	cifs_get_readable_path(tcon, full_path, &cfile);
-	oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES,
+	oparms = CIFS_OPARMS(cifs_sb, tcon, full_path,
+			     FILE_READ_EA | FILE_READ_ATTRIBUTES | SYNCHRONIZE,
 			     FILE_OPEN, OPEN_REPARSE_POINT, ACL_NO_MODE);
 	rc = smb2_compound_op(xid, tcon, cifs_sb,
 			      full_path, &oparms, &in_iov,

  reply	other threads:[~2024-07-31 14: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
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 [this message]
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=ff56ae33c66856c0cf21b4049dc84bcb@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.