[Bug 1982219] [NEW] autofs: regression on focal->jammy upgrade: automount daemon hangs

James Dingwall 1982219 at bugs.launchpad.net
Tue Jul 19 19:50:06 UTC 2022


Public bug reported:

I use automount maps held in a Samba active directory.  Autofs is
configured to use kerberos authentication to connect using LDAP to
retrieve the maps.  During the retrieval of the master map the daemon
hangs and makes no progress.

# apt-cache policy autofs
autofs:
  Installed: 5.1.8-1ubuntu1.1
  Candidate: 5.1.8-1ubuntu1.1
  Version table:
 *** 5.1.8-1ubuntu1.1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     5.1.8-1ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy

After adding some debugging I have traced this to an unbalanced
pthread_mutex_lock/unlock which appears to have been introduced in
d0d99cfc0737f34af326ba3f8f35f45625300576 autofs-5.1.6 - fix ldap sasl
reconnect problem.  The attached patch which performs a
pthread_mutex_unlock() in the alternate success path of
sasl_do_kinit_ext_cc() resolves the problem for me.  I intend to post
this to autofs at vger.kernel.org once my membership to the list is
accepted.

** Affects: autofs (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch

** Patch added: "sasl_do_kinit_ext_cc-unbalanced-lock.diff"
   https://bugs.launchpad.net/bugs/1982219/+attachment/5604131/+files/sasl_do_kinit_ext_cc-unbalanced-lock.diff

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1982219

Title:
  autofs: regression on focal->jammy upgrade: automount daemon hangs

Status in autofs package in Ubuntu:
  New

Bug description:
  I use automount maps held in a Samba active directory.  Autofs is
  configured to use kerberos authentication to connect using LDAP to
  retrieve the maps.  During the retrieval of the master map the daemon
  hangs and makes no progress.

  # apt-cache policy autofs
  autofs:
    Installed: 5.1.8-1ubuntu1.1
    Candidate: 5.1.8-1ubuntu1.1
    Version table:
   *** 5.1.8-1ubuntu1.1 500
          500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       5.1.8-1ubuntu1 500
          500 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

  # lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 22.04 LTS
  Release:        22.04
  Codename:       jammy

  After adding some debugging I have traced this to an unbalanced
  pthread_mutex_lock/unlock which appears to have been introduced in
  d0d99cfc0737f34af326ba3f8f35f45625300576 autofs-5.1.6 - fix ldap sasl
  reconnect problem.  The attached patch which performs a
  pthread_mutex_unlock() in the alternate success path of
  sasl_do_kinit_ext_cc() resolves the problem for me.  I intend to post
  this to autofs at vger.kernel.org once my membership to the list is
  accepted.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1982219/+subscriptions




More information about the foundations-bugs mailing list