Bug 1217310

Summary: Kernel 6.6.1 breaks cifs?
Product: [openSUSE] openSUSE Tumbleweed Reporter: Keks Dose <cookie170>
Component: Kernel:NetworkingAssignee: Paulo Alcantara <palcantara>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ematsumiya, palcantara, samba-maintainers, tiwai
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Keks Dose 2023-11-19 21:47:48 UTC
I’m using smb4k to mount remote cifs-shares via vpn.

Doesn’t work with kernel 6.6.1, works with kernel 6.5.9

kernel 6.5.9, mounting the shares, dmesg:

[ 2474.704244] Key type dns_resolver registered
[ 2474.813664] Key type cifs.spnego registered
[ 2474.813682] Key type cifs.idmap registered
[ 2474.814304] CIFS: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
[ 2474.814307] CIFS: Attempting to mount //sbs1234/ShareA
[ 2475.721425] CIFS: Attempting to mount //sbs1234/ShareB
[ 2476.467871] CIFS: Attempting to mount //sbs1234/ShareC
[ 2477.185436] CIFS: Attempting to mount //dsrvABCD/ShareD

kernel 6.6.1, mounting not possible, dmesg:

[   69.457034] Key type dns_resolver registered
[   69.577215] Key type cifs.spnego registered
[   69.577232] Key type cifs.idmap registered
[   69.577843] CIFS: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
[   69.577846] CIFS: Attempting to mount //sbs1234/ShareA
[   69.587109] CIFS: VFS: cifs_mount failed w/return code = -4
[   69.671802] CIFS: Attempting to mount //sbs1234/ShareB
[   69.680376] CIFS: VFS: cifs_mount failed w/return code = -4
[   69.706663] CIFS: Attempting to mount //sbs1234/ShareC
[   69.713894] CIFS: VFS: cifs_mount failed w/return code = -4
[   69.799015] CIFS: Attempting to mount //dsrvABCD/ShareD
[   69.806418] CIFS: VFS: cifs_mount failed w/return code = -4

So, there is a bug in kernel 6.6.1

I've asked for help here: https://forums.opensuse.org/t/kernel-6-6-1-breaks-cifs/170506
Comment 1 Keks Dose 2023-11-20 09:59:38 UTC
I'm in my office now and mounting the server shares works with kernel 6.6.1, so the culprit is the tunnel. But still out of ideas. The VPN used to work for years and still works under the old kernel.
Comment 3 Keks Dose 2023-11-23 15:04:54 UTC
(In reply to Paulo Alcantara from comment #2)
> This might be related to [1] and there's a fix[2] for it already.
> 
> Could you please try TEST kernel package[3] with the fix backported?
> 
> Thanks.
> 
> [1]
> https://lore.kernel.org/linux-cifs/
> CAH2r5mviYaW1qDW9+tqJLDv1ZCnGrgiGJ3kNMWPJBxx=UU+8Tg@mail.gmail.com/T/
> #m93ed27341bb7692c7f208b1ed3d34c76ca4cd428
> [2]
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/
> smb/client/namespace.c?id=5e2fd17f434d2fed78efb123e2fc6711e4f598f1
> [3]
> https://build.opensuse.org/package/show/home:pauloac:kernel-bsc1217310/
> kernel-default

I installed the kernel and the error is gone, mounting remote shares through vpn works again. Thank you very much. 

I'm closing this bugreport as solved.
Comment 4 Keks Dose 2023-11-23 15:06:22 UTC
New kernel without bug as described in comment #2
Comment 5 Keks Dose 2023-12-02 17:06:34 UTC
Fixed in kernel 6.6.3-1-default