autofs: regression on focal->jammy upgrade: automount daemon hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Fix Released
|
Undecided
|
Christian Ehrhardt | ||
Jammy |
Fix Released
|
Undecided
|
Christian Ehrhardt | ||
Kinetic |
Fix Released
|
Undecided
|
Christian Ehrhardt |
Bug Description
[Impact]
* There is a locking issue in v5.1.8 of autofs where unbalanced
locking leads to a hang with certain operations.
* Fix was proposed and acknowledged upstream (see below)
* Backport that fix to releases with 5.1.8 (= Jammy and Kinetic)
[Test Plan]
* This needs a rather complex setup, but gladly the users/community
is rather active and responsive on this. So we will describe the test,
but rely on them to verify the fix (pre-checked on PPA,
was good there).
* Setup: Use automount with maps held in a Samba active directory
(or elsewhere, but so they have to be fetched). Autofs then needs
to be configured to use kerberos authentication (that is what
brings the cyrus-sasl code in) to connect using LDAP to retrieve
the maps.
Without the fix during the retrieval of the master map the daemon hangs
and makes no progress.
-m = list information about the configured automounter maps, then exit
-f = Run the daemon in the foreground and log to stderr
Good: `automount -m -f` dumps the configured maps and the daemon
starts correctly and manages the expect mounts correctly.
Bad: `automount -m -f` hangs
[Where problems could occur]
* Of the many things autofs can do this code change is only
in cyrus-sasl. So one can expect potential impact to be only
in that functionality - others should see no change at all.
Furthermore due to the nature of the change (locking) what
you'd expect as regression would be hangs or uncontrolled
concurrent access.
[Other Info]
* Upstream releases slowly and rarely, so the patch is
acknowledged but not yet in git or a release. But that
is as much as we can get for now.
--- original report ---
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://
100 /var/lib/
5.1.8-1ubuntu1 500
500 http://
# 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_
List post: https:/
Related branches
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 75 lines (+53/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/autofs-5.1.8-ldap-kerberos-leads-to-automount-hang-p.patch (+45/-0)
debian/patches/series (+1/-0)
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 75 lines (+53/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/autofs-5.1.8-ldap-kerberos-leads-to-automount-hang-p.patch (+45/-0)
debian/patches/series (+1/-0)
description: | updated |
description: | updated |
tags: |
added: verification-done verification-done-jammy removed: verification-needed verification-needed-jammy |
The attachment "sasl_do_ kinit_ext_ cc-unbalanced- lock.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]