Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Julian Sikorski <belegdol@gmail.com>
To: Paulo Alcantara <pc@cjr.nz>, ronnie sahlberg <ronniesahlberg@gmail.com>
Cc: CIFS <linux-cifs@vger.kernel.org>
Subject: Re: kernel-5.18.8 breaks cifs mounts
Date: Thu, 30 Jun 2022 20:11:57 +0200	[thread overview]
Message-ID: <10efd255-16ea-6993-5e58-2d70e452a019@gmail.com> (raw)
In-Reply-To: <87h7423ukh.fsf@cjr.nz>

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

Am 30.06.22 um 19:55 schrieb Paulo Alcantara:
> Julian Sikorski <belegdol@gmail.com> writes:
> 
>> Not much is there:
>>
>> Jun 30 18:19:34 snowball3 kernel: CIFS: Attempting to mount
>> \\odroidxu4.local\julian
>>
>> Jun 30 18:19:34 snowball3 kernel: CIFS: VFS: cifs_mount failed w/return
>> code = -22
>>
>>
>> I tried reverting 16d5d91 as it was the only commit referencing smb, but
>> it did not help unfortunately.
> 
> Could you please run
> 
> 	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
> 	dmesg --clear
> 	tcpdump -s 0 -w trace.pcap port 445 & pid=$!
> 	mount ...
> 	kill $pid
> 	dmesg > trace.log
> 
> and then send trace.log and trace.pcap.

Attached.

> 
> What SMB server and version?

Openmediavault 6.0.30 running on top of armbian bullseye. The samba 
package version is 4.13.13+dfsg-1~deb11u3.

Best regards,
Julian

[-- Attachment #2: trace.log --]
[-- Type: text/x-log, Size: 2868 bytes --]

[  862.910364] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'source'
[  862.910381] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'ip'
[  862.910387] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'unc'
[  862.910391] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'vers'
[  862.910395] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'nostrictsync'
[  862.910400] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'uid'
[  862.910405] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'gid'
[  862.910408] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'user'
[  862.910411] CIFS: fs/cifs/fs_context.c: CIFS: parsing cifs mount option 'pass'
[  862.910416] CIFS: fs/cifs/cifsfs.c: Devname: \\odroidxu4.local\julian flags: 0
[  862.910422] CIFS: fs/cifs/connect.c: Username: julas
[  862.910425] CIFS: fs/cifs/connect.c: file mode: 0755  dir mode: 0755
[  862.910431] CIFS: fs/cifs/connect.c: VFS: in mount_get_conns as Xid: 4 with uid: 0
[  862.910435] CIFS: fs/cifs/connect.c: UNC: \\odroidxu4.local\julian
[  862.910441] CIFS: fs/cifs/connect.c: generic_ip_connect: connecting to 192.168.0.220:445
[  862.910462] CIFS: fs/cifs/connect.c: Socket created
[  862.910464] CIFS: fs/cifs/connect.c: sndbuf 16384 rcvbuf 131072 rcvtimeo 0x1b58
[  862.916973] CIFS: fs/cifs/connect.c: cifs_get_tcp_session: next dns resolution scheduled for 600 seconds in the future
[  862.916977] CIFS: fs/cifs/connect.c: Demultiplex PID: 4568
[  862.916982] CIFS: fs/cifs/connect.c: VFS: in cifs_get_smb_ses as Xid: 5 with uid: 0
[  862.916986] CIFS: fs/cifs/connect.c: Existing smb sess not found
[  862.916994] CIFS: fs/cifs/smb2pdu.c: Negotiate protocol
[  862.917003] CIFS: fs/cifs/transport.c: wait_for_free_credits: remove 1 credits total=0
[  862.917023] CIFS: fs/cifs/transport.c: Sending smb: smb_len=236
[  862.964239] CIFS: fs/cifs/connect.c: RFC1002 header 0x49
[  862.964269] CIFS: fs/cifs/smb2misc.c: SMB2 data length 0 offset 0
[  862.964273] CIFS: fs/cifs/smb2misc.c: SMB2 len 73
[  862.964279] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 1 credits total=1
[  862.964379] CIFS: fs/cifs/transport.c: cifs_sync_mid_result: cmd=0 mid=0 state=4
[  862.964401] CIFS: fs/cifs/smb2maperror.c: Mapping SMB2 status code 0xc000000d to POSIX err -22
[  862.964416] CIFS: fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
[  862.964431] CIFS: fs/cifs/connect.c: VFS: leaving cifs_get_smb_ses (xid = 5) rc = -22
[  862.964442] CIFS: fs/cifs/dfs_cache.c: cache_refresh_path: search path: \odroidxu4.local\julian
[  862.964451] CIFS: fs/cifs/dfs_cache.c: get_dfs_referral: get an DFS referral for \odroidxu4.local\julian
[  862.964478] CIFS: fs/cifs/connect.c: VFS: leaving mount_put_conns (xid = 4) rc = 0
[  862.964482] CIFS: VFS: cifs_mount failed w/return code = -22

[-- Attachment #3: trace.pcap --]
[-- Type: application/vnd.tcpdump.pcap, Size: 1173 bytes --]

  reply	other threads:[~2022-06-30 18:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30 16:47 kernel-5.18.8 breaks cifs mounts Julian Sikorski
2022-06-30 17:02 ` ronnie sahlberg
2022-06-30 17:41   ` Julian Sikorski
2022-06-30 17:55     ` Paulo Alcantara
2022-06-30 18:11       ` Julian Sikorski [this message]
2022-06-30 18:28         ` Paulo Alcantara
2022-06-30 19:12           ` Julian Sikorski
2022-06-30 20:32             ` Enzo Matsumiya
2022-07-04  8:12               ` Shyam Prasad N
2022-07-04 16:30                 ` Julian Sikorski
     [not found]               ` <CAH2r5mtVwZggJ9Fi0zsK5hCci4uxee-kOSC3brb56xpb0_xn7w@mail.gmail.com>
     [not found]                 ` <56afe80b-bf6a-2508-063a-7b091cdbbe0f@gmail.com>
     [not found]                   ` <CAH2r5mvoyhZGjf_wgvjgmkCz=+2iDxCSpbyJ79NMtpE1Ecjdnw@mail.gmail.com>
     [not found]                     ` <fccdb4af-697e-b7fc-6421-f16e9b35bb8e@samba.org>
2022-07-04 16:29                       ` Julian Sikorski
2022-07-05  5:28                         ` Shyam Prasad N
2022-07-05 10:55                           ` Julian Sikorski
2022-07-06 11:18                         ` Julian Sikorski
2022-07-12  4:36                           ` Steve French
2022-07-13 21:25                             ` Georg Müller

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=10efd255-16ea-6993-5e58-2d70e452a019@gmail.com \
    --to=belegdol@gmail.com \
    --cc=linux-cifs@vger.kernel.org \
    --cc=pc@cjr.nz \
    --cc=ronniesahlberg@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox