[Pkg-samba-maint] Bug#1014453: samba: error 22 when attempting to mount a share from linux-5.18.8 or newer client

Julian Sikorski belegdol at gmail.com
Wed Jul 6 12:12:09 BST 2022


Package: samba
Version: 2:4.13.13+dfsg-1~deb11u3
Severity: important
Tags: patch
X-Debbugs-Cc: belegdol at gmail.com

Dear Maintainer,

After updating my client to kernel 5.18.8, I was no longer able to mount samba shares hosted by my debian install. I was getting mount error 22.
Upon discussing the problem on linux-cifs [1], it was discovered that the issue can be fixed by a patch available in samba versions 4.15 and later [2]. I can confirm that adding this patch to the debian 4.13 package fixes the issue too. Please add this patch to the package.

[1] https://lore.kernel.org/linux-cifs/8ccad303-7489-d90a-2255-ca36b7253810@gmail.com/T/#t
[2] https://git.samba.org/?p=samba.git;a=commitdiff;h=147dd9d58a429695a3b6c6e45c8b0eaafc67908a

-- Package-specific info:
* /etc/samba/smb.conf present, and attached
* /var/lib/samba/dhcp.conf not present

-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: armhf (armv7l)

Kernel: Linux 5.4.199-odroidxu4 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages samba depends on:
ii  adduser              3.118
ii  dpkg                 1.20.10
ii  init-system-helpers  1.60
ii  libbsd0              0.11.3-1
ii  libc6                2.31-13+deb11u3
ii  libgnutls30          3.7.1-5
ii  libldb2              2:2.2.3-2~deb11u1
ii  libpam-modules       1.4.0-9+deb11u1
ii  libpam-runtime       1.4.0-9+deb11u1
ii  libpopt0             1.18-2
ii  libpython3.9         3.9.2-1
ii  libtalloc2           2.3.1-2+b1
ii  libtasn1-6           4.16.0-2
ii  libtdb1              1.4.3-1+b1
ii  libtevent0           0.10.2-1
ii  libwbclient0         2:4.13.13+dfsg-1~deb11u3.1
ii  lsb-base             11.1.0
ii  procps               2:3.3.17-5
ii  python3              3.9.2-3
ii  python3-dnspython    2.0.0-1
ii  python3-samba        2:4.13.13+dfsg-1~deb11u3.1
ii  samba-common         2:4.13.13+dfsg-1~deb11u3.1
ii  samba-common-bin     2:4.13.13+dfsg-1~deb11u3.1
ii  samba-libs           2:4.13.13+dfsg-1~deb11u3.1
ii  tdb-tools            1.4.3-1+b1

Versions of packages samba recommends:
pn  attr                <none>
ii  logrotate           3.18.0-2
pn  python3-markdown    <none>
pn  samba-dsdb-modules  <none>
ii  samba-vfs-modules   2:4.13.13+dfsg-1~deb11u3.1

Versions of packages samba suggests:
pn  bind9          <none>
pn  bind9utils     <none>
ii  chrony         4.0-8+deb11u2
pn  ctdb           <none>
pn  ldb-tools      <none>
pn  smbldap-tools  <none>
pn  ufw            <none>
pn  winbind        <none>

-- Configuration Files:
/etc/logrotate.d/samba changed:
/var/log.hdd/samba/log.smbd {
	weekly
	missingok
	rotate 7
	postrotate
		[ ! -x /usr/bin/smbcontrol ] || [ ! -f /run/samba/smbd.pid ] || /usr/bin/smbcontrol smbd reload-config
	endscript
	compress
	delaycompress
	notifempty
}
/var/log.hdd/samba/log.nmbd {
	weekly
	missingok
	rotate 7
	postrotate
		[ ! -x /usr/bin/smbcontrol ] || [ ! -f /run/samba/nmbd.pid ] || /usr/bin/smbcontrol nmbd reload-config
	endscript
	compress
	delaycompress
	notifempty
}
/var/log.hdd/samba/log.samba {
	weekly
	missingok
	rotate 7
	postrotate
		if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet samba-ad-dc; then
			systemctl kill --kill-who all --signal=SIGHUP samba-ad-dc
		elif [ -f /run/samba/samba.pid ]; then
			# This only sends to main pid, See #803924
			kill -HUP `cat /run/samba/samba.pid`
		fi
	endscript
	compress
	delaycompress
	notifempty
}


-- no debconf information
-------------- next part --------------
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 0
log file = /var/log/samba/log.%m
max log size = 1000
logging = syslog
panic action = /usr/share/samba/panic-action %d
passdb backend = tdbsam
obey pam restrictions = no
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
create mask = 0777
directory mask = 0777
use sendfile = yes
aio read size = 16384
aio write size = 16384
time server = no
wins support = no
disable netbios = yes
multicast dns register = no
# Special configuration for Apple's Time Machine
fruit:aapl = yes
# Extra options
min receivefile size = 16384
getwd cache = yes
#======================= Share Definitions =======================
[julian]
path = /srv/dev-disk-by-label-omv/julian/
guest ok = no
guest only = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects = 
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users = "julas"
invalid users = 
read list = 
write list = "julas"

[yasy]
path = /srv/dev-disk-by-label-omv/yasy/
guest ok = no
guest only = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects = 
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users = "yasy"
invalid users = 
read list = 
write list = "yasy"

[austausch]
path = /srv/dev-disk-by-label-omv/austausch/
guest ok = no
guest only = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects = 
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users = "julas","yasy"
invalid users = 
read list = 
write list = "julas","yasy"

[Bilder2019]
path = /srv/dev-disk-by-label-omv/julian/Pictures/2019/
guest ok = no
guest only = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects = 
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users = "julas","yasy"
invalid users = 
read list = 
write list = "julas","yasy"



More information about the Pkg-samba-maint mailing list