All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steinbeißer, Sebastian" <Sebastian.Steinbeisser@lrz.de>
To: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"pc@manguebit.com" <pc@manguebit.com>
Cc: "regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: Potential smb/dfs regression introduced in kernel 6.6
Date: Thu, 11 Jul 2024 06:20:08 +0000	[thread overview]
Message-ID: <5210f9e7b720dc1d150bd2ebd9f4edadf39685aa.camel@lrz.de> (raw)
In-Reply-To: <9654b28ff276b5b78ffcc3078bd4dd1ccf80ec73.camel@lrz.de>


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

Dear Greg,
Dear Paulo,

Have you been able to take a look at the logs I sent?
Is there any additional information I can provide?

Thanks!

Best
Sebastian
+-------------------------------------------------------------+
 Sebastian Steinbeißer
 Leibniz-Rechenzentrum   Tel.:+49-89-35831-8779
 Boltzmannstraße 1       E-Mail: Sebastian.Steinbeisser@lrz.de
 D-85748 Garching
+-------------------------------------------------------------+


-----Original Message-----
From: Sebastian Steinbeißer <Sebastian.Steinbeisser@lrz.de>
To: Greg KH <gregkh@linuxfoundation.org>, Paulo Alcantara
<pc@manguebit.com>
Cc: regressions@lists.linux.dev <regressions@lists.linux.dev>
Subject: Re: Potential smb/dfs regression introduced in kernel 6.6
Date: 28.06.2024 10:19:24

Dear Greg,
Dear Paulo,

thanks for the quick reply and sorry for my late one - getting
information internally and from the customer who reported the issue
took some time.
Here we go:

1. We do currently not have the capacity to bisect, but the customer
reporting the issue speculated that it might have been introduced
between commits 9a49e221a64111535f65e9c8804db24d11eaff8b and
539aad7f14dab7f947e5ab81901c0b20513a50db

2. I can not for sure confirm or deny if the subvolume is realized as a
DFS link.

3. The logs as requested are attached.

4. About the setup used in the example:
Two fresh virtual machines running lubuntu 22.04 and 24.04 with kernels
6.5.0 and 6.8.0, respectively.
Both of them were installed today and updated.
After that the smb-client and cifs-utils packages were installed and
both VMs were rebooted.
The tracing was done in parallel.

4. About the infrastructure in the example:
The "badw" share contains several folders, three of which are realized
as their own volumes:

volume         junction-path
-------------- ---------------
mwn_share_badw /mwn_share_badw
mwn_share_badwifv
               /mwn_share_badw/ifv
mwn_share_badwlrz
               /mwn_share_badw/lrz
mwn_share_badwver
               /mwn_share_badw/ver
These are the ones that can not be accessed -> see the ls_error_message
attachement.
We're exporting shares with CIFS 3.2 and the following security
settings:
                            Kerberos Clock Skew: 5 minutes
                            Kerberos Ticket Age: 10 hours
                           Kerberos Renewal Age: 7 days
                           Kerberos KDC Timeout: 3 seconds
                            Is Signing Required: true
                Is Password Complexity Required: true
           Use start_tls for AD LDAP connection: true
         (DEPRECATED)-Is AES Encryption Enabled: true
                         LM Compatibility Level: lm-ntlm-ntlmv2-krb
                     Is SMB Encryption Required: true
                        Client Session Security: seal
   (DEPRECATED)-SMB1 Enabled for DC Connections: false
                SMB2 Enabled for DC Connections: true
  LDAP Referral Enabled For AD LDAP connections: false
               Use LDAPS for AD LDAP connection: false
      Encryption is required for DC Connections: true
   AES session key enabled for NetLogon channel: false
    Try Channel Binding For AD LDAP Connections: true
        Encryption Types Advertised to Kerberos: aes-256, aes-128, rc4,
des


Thus traces are most likely encrypted.

Thanks a lot!

Best
Sebastian
+-------------------------------------------------------------+
 Sebastian Steinbeißer
 Leibniz-Rechenzentrum   Tel.:+49-89-35831-8779
 Boltzmannstraße 1       E-Mail: Sebastian.Steinbeisser@lrz.de
 D-85748 Garching
+-------------------------------------------------------------+


-----Original Message-----
From: Paulo Alcantara <pc@manguebit.com>
To: "Steinbeißer, Sebastian" <Sebastian.Steinbeisser@lrz.de>
Subject: Re: Potential smb/dfs regression introduced in kernel 6.6
Date: 27.06.2024 17:50:07

Paulo Alcantara <pc@manguebit.com> writes:

> Steinbeißer, Sebastian  <Sebastian.Steinbeisser@lrz.de> writes:
> 
> > The way this works with NetApp is that a volume, e.g., myvol,
> > within
> > the storage virtual machine (SVM - vserver) is exported and can be
> > accessed by mounting //SVM_IP/myvol into, e.g., /mnt/myvol
> > Subvolumes can be added to the junction path, e.g., mysubvol can be
> > mounted under myvol and used to be transparently accessable via
> > /mnt/myvol/mysubvol just like any directory within myvol would be.
> > This now is no longer the case and the subvolume needs to be
> > mounted
> > separately.
> > 
> > This has started when customers upgraded distributions that shipped
> > with kernel >=6.6.
> > https://wiki.samba.org/index.php/LinuxCIFSKernel#6.6_(module_version_2.45)_(47_changesets)
> > 
> > We've been able to reproduce the behavior with Fedora/Ubuntu and
> > kernels 6.6 to 6.9.
> 
> Are you talking about DFS shares?  The "mysubvol" would be an DFS
> link?

Can you please provide verbose logs and network traces of both working
and non-working kernels:

 # umount all SMB shares in the system
 dmesg --clear
 modprobe dns_resolver
 modprobe cifs
 echo 'module cifs +p' > /sys/kernel/debug/dynamic_debug/control
 echo 'file fs/cifs/* +p' > /sys/kernel/debug/dynamic_debug/control
 echo 1 > /proc/fs/cifs/cifsFYI
 echo 1 > /sys/module/dns_resolver/parameters/debug
 echo 0 > /proc/sys/kernel/printk_ratelimit
 echo 0 > /proc/fs/cifs/dfscache
 tcpdump -s 0 -w trace.pcap port 445 & pid=$!
 cat /proc/fs/cifs/DebugData > trace.log
 cat /proc/fs/cifs/dfscache >> trace.log
 dmesg >> trace.log
 # mount.cifs ... /mnt -o ...
 # attempt to subvol under mounted share (i.e. ls /mnt/mysubvol)
 cat /proc/fs/cifs/DebugData >> trace.log
 cat /proc/fs/cifs/dfscache >> trace.log
 dmesg >> trace.log
 sleep 3
 kill $pid

Then send trace.log and trace.pcap files of both kernels.

Thanks.

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5874 bytes --]

  reply	other threads:[~2024-07-11  6:20 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 [this message]
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
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=5210f9e7b720dc1d150bd2ebd9f4edadf39685aa.camel@lrz.de \
    --to=sebastian.steinbeisser@lrz.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=pc@manguebit.com \
    --cc=regressions@lists.linux.dev \
    /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.