[Pkg-samba-maint] Bug#1069598: cifs-utils: When mounting a samba-share by a client with kernel 6.1.0-20-amd64, some subdirectories and files within the mounted share are missing

tmx314 at d54.de tmx314 at d54.de
Sun Apr 21 11:49:19 BST 2024


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

Dear Maintainer,

When mounting a samba-share by a Debian Bookworm client, kernel 6.1.0-20-amd64, on this client some subdirectories and files within the mounted share are missing.
I didn't change the permissions on the server and all the files and directories are furthermore existent on the server.
After booting the Client journalctl shows on this client many lines like:
Apr 16 14:33:08 tmx314 kernel: CIFS: VFS: directory entry name would overflow frame end of buf 00000000a18bb84d
Apr 16 14:33:08 tmx314 kernel: CIFS: VFS: directory entry name would overflow frame end of buf 000000002b19fed0
...... 

Booting the client with kernel 6.1.0-15-amd64 or 6.1.0-18-amd64 removes the error.
Using the mount-option "noserverino" or changing "vers" from default to another value has no effect.

Server: Debian Bookworm, Kernel 6.1.0-20-amd64, Samba 2:4.17.12+dfsg-0+deb12u1
# testparm
    interfaces = 127.0.0.0/8 192.168.1.0/24
    log file = /var/log/samba/log.%m
    logging = file
    map to guest = Bad User
    max log size = 1000
    obey pam restrictions = Yes
    pam password change = Yes
    panic action = /usr/share/samba/panic-action %d
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    passwd program = /usr/bin/passwd %u
    preferred master = Yes
    server min protocol = SMB2
    server role = standalone server
    unix password sync = Yes
    usershare allow guests = Yes
    workgroup = theo
    idmap config * : backend = tdb

    ......
    [daten-theo]
    create mask = 0660
    directory mask = 0770
    force create mode = 0020
    force directory mode = 0030
    force group = theo
    force user = theo
    path = /daten/daten-theo
    valid users = user1 user2 ...
    write list = user1 

No errors are found in the server logs.

Client also Debian Bookworm, Kernel 6.1.0-20-amd64, cifs-utils 2:7.0-2
I am writing this message on the involved client and boots it now with the Kernel listed below in the System Information to avoid the error.
Same problem is found on a second Debian Bookworm client.
/etc/fstab:
....
//server/daten-theo /home/theo/daten-theo cifs vers=default,_netdev,credentials=/root/smbcredtheo,uid=theo,gid=theo,rw,file_mode=0660,dir_mode=0770,nofail 0 0 



-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-18-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cifs-utils depends on:
ii  libc6             2.36-9+deb12u4
ii  libcap-ng0        0.8.3-1+b3
ii  libgssapi-krb5-2  1.20.1-2+deb12u1
ii  libkeyutils1      1.6.3-2
ii  libkrb5-3         1.20.1-2+deb12u1
ii  libpam0g          1.5.2-6+deb12u1
ii  libtalloc2        2.4.0-f2
ii  libwbclient0      2:4.17.12+dfsg-0+deb12u1
ii  python3           3.11.2-1+b1

Versions of packages cifs-utils recommends:
pn  keyutils  <none>

Versions of packages cifs-utils suggests:
ii  bash-completion  1:2.11-6
ii  smbclient        2:4.17.12+dfsg-0+deb12u1
pn  winbind          <none>

-- no debconf information



More information about the Pkg-samba-maint mailing list