Samba multi-channel multi-connection race condition

Bug #2031619 reported by Mike Silva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba
Unknown
Unknown
samba (Ubuntu)
Fix Released
Undecided
Andreas Hasenack
Lunar
Won't Fix
Undecided
Unassigned
Mantic
Fix Released
Undecided
Andreas Hasenack

Bug Description

There is a race condition bug in Samba 4.17 to 4.18.5 that repeatably causes connection mounts to fail when:
- A client is connecting to a multi-channel server. (Multi-channel has defaulted to on for all Samba package installs for some time.)
- A client is making multiple connections to said multi-channel server.

A patch has been released in Samba 4.18.6.

For the Samba bug on this issue, see:
https://bugzilla.samba.org/show_bug.cgi?id=15346

For details on the race condition and patch see:
https://gitlab.com/samba-team/samba/-/merge_requests/3209/diffs?commit_id=6961ad7ae2e02a8e5afe6bcfe0368d38a6117699

System Details: (note the bug is not architecture specific)
-----------------------------------------------------------
uname -a
Linux 6.2.0-1009-raspi #11-Ubuntu SMP PREEMPT Mon Jul 17 10:19:57 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

lsb_release -rd
No LSB modules are available.
Description: Ubuntu Mantic Minotaur (development branch)
Release: 23.10

Package version
----------------------------------------------------------
samba/mantic,now 2:4.18.5+dfsg-1ubuntu2 arm64 [installed]
  SMB/CIFS file, print, and login server for Unix

Related branches

Changed in samba (Ubuntu Mantic):
status: New → In Progress
assignee: nobody → Andreas Hasenack (ahasenack)
Revision history for this message
Mike Silva (mikesilva) wrote :

Sorry, for not linking this to Lunatic and Minotaur, Andreas. Didn't realize I could get that specific.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package samba - 2:4.18.6+dfsg-1ubuntu1

---------------
samba (2:4.18.6+dfsg-1ubuntu1) mantic; urgency=medium

  * Merge with Debian unstable (LP: #2031655, LP: #2031619). Remaining changes:
    - debian/control: Ubuntu i386 binary compatibility:
      + drop ceph support
      + enable the liburing vfs module, except on i386 where liburing is
        not available
    - d/t/control, d/t/util,d/t/samba-ad-dc-provisioning-internal-dns:
      samba AD DC provisioning and domain join tests with internal DNS
      (LP #1977746, LP #2011745)
  * Dropped:
    - build-depend on libglusterfs-dev only on !i386 arches
      [In 2:4.18.5+dfsg-2]
    - Add changes to fix uncaught exception when updating old password
      containing regex metacharacters by simplifying samba-tool password
      redaction (LP #2002949).
      + d/p/lib-cmdline-Return-if-the-commandline-was-redacted-i.patch
      + d/p/lib-cmdline-Also-redact-newpassword-in-samba_cmdline.patch
      + d/p/lib-cmdline-Also-burn-the-password2-parameter-if-giv.patch
      + d/p/samba-tool-Use-samba.glue.get_burnt_cmdline-rather-t.patch
      + d/p/python-Add-glue.burn_commandline-method.patch
      + d/p/python-Move-PyList_AsStringList-to-common-code-so-we.patch
      + d/p/python-Remove-const-from-PyList_AsStringList.patch
        [Fixed upstream in 4.18.6]
  * Added:
    - d/control: adjust breaks/replaces for file move that Debian did in
      4.16.6+dfsg-5, and Ubuntu only did in 4.17.7+dfsg-1ubuntu1, to avoid
      file conflict in a dist-upgrade from earlier Ubuntu releases, like
      Kinetic (LP: #2024663)
    - d/rules: ceph is not available in Ubuntu i386, disable it

 -- Andreas Hasenack <email address hidden> Thu, 17 Aug 2023 09:52:00 -0300

Changed in samba (Ubuntu Mantic):
status: In Progress → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

Ubuntu 23.04 (Lunar Lobster) has reached end of life, so this bug will not be fixed for that specific release.

Changed in samba (Ubuntu Lunar):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.