[Pkg-samba-maint] Bug#1029192: after kernel update to linux-image-6.1.0-1-amd64 6.1.4-1 - mount.cifs fails with "CIFS: VFS: bogus file nlink value 0"

only4com only4com at web.de
Thu Jan 19 11:23:27 GMT 2023


Package: cifs-utils
Version: 2:7.0-2

Debian distribution: bookworm

Linux linbox 6.1.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.4-1 (2023-01-07) x86_64 GNU/Linux

libc6 2.36-8

After updating the linux image from linux-image-6.0.0-6-amd64 to linux-image-6.1.0-1-amd64 Version 6.1.4-1 I cannot mount a samba share from an older server any more:

Client: cifs-utils 2:7.0-2

Samba Server: Version 4.3.11-Ubuntu

fstab line:
//server/institute/   /home/me/mnt/server/institute   cifs   exec,iocharset=utf8,users,noauto,file_mode=0660,dir_mode=0770,domain=DOM,user=me,vers=1.0 0 0

$ mount /home/me/mnt/server/institute
Password for me@//server/institute/:
mount error(20): Not a directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

# journalctl -kf

CIFS: Attempting to mount \\server\institute
CIFS: VFS: bogus file nlink value 0

I discovered a WORK AROUND: the mount.cifs WOULD SUCCEED if the server has "unix extensions = yes" in smb.conf.

Unfortunately this could be a security issue together with the needed "wide links = yes"

The bug has been first filled against linux-image-6.1.0-1-amd64 in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029130 and https://bugzilla.kernel.org/show_bug.cgi?id=216881.
It has has already patches, which will come with linux 6.1.7-1:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.1.y&id=d54a3ef8b8bdb9e12dc5ff97d44b9827416eed54 and
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.1.y&id=5a574327d1c5f7036af84ebe99cddba88f7d2038

But I am unable to understand them, if they address the interplay with the action of "unix extensions = yes", or even create a work around at kernel level.

Please check if there is an issue at all with samba/cifs
That's the reason for me to double fill the bug also with the cifs-util

Thank you



More information about the Pkg-samba-maint mailing list