Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2175017

Summary: deadlock while reading amd maps
Product: Red Hat Enterprise Linux 8 Reporter: Frank Sorenson <fsorenso>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED CURRENTRELEASE QA Contact: Kun Wang <kunwan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: dwysocha, fhirtz, ikent, kunwan, lmiksik, pvlasin, xzhou
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: autofs-5.1.4-102.el8_8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2177998 2179753 (view as bug list) Environment:
Last Closed: 2023-05-31 02:40:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2177998, 2179753    

Description Frank Sorenson 2023-03-02 21:29:44 UTC
Created attachment 1947589 [details]
core file of deadlocked automount process

Description of problem:

A deadlock can occur while reading amd maps, leading to hung automount process.



Version-Release number of selected component (if applicable):

autofs-5.1.4-88



How reproducible:

Unknown


Steps to Reproduce:

the 'reproducer' in bz2139504 can sometimes hit this deadlock


Actual results:

deadlock leads to unresponsive automount process

Expected results:

no deadlock



Additional info:

core file attached

Comment 3 Ian Kent 2023-03-03 08:07:17 UTC
(In reply to Frank Sorenson from comment #0)
> Created attachment 1947589 [details]
> core file of deadlocked automount process
> 
> Description of problem:
> 
> A deadlock can occur while reading amd maps, leading to hung automount
> process.
> 
> 
> 
> Version-Release number of selected component (if applicable):
> 
> autofs-5.1.4-88
> 
> 
> 
> How reproducible:
> 
> Unknown
> 
> 
> Steps to Reproduce:
> 
> the 'reproducer' in bz2139504 can sometimes hit this deadlock

I think the reproducer may be encountering this problem more than you realise.

The way I discovered it was running the reproducer and terminating the test
before error conditions started occurring then waiting for the mounts to expire.
Fairly often I would see the mounts one level below the top level not able to
expire away, something I've started seeing for a while now, and looking at back
traces showed there was actually a deadlock occurring. Something I have missed
completely while working on this problem so far.

Ian

Comment 9 Ian Kent 2023-03-12 23:32:51 UTC
I have a scratch build at
https://brew-task-repos.engineering.redhat.com/repos/scratch/ikent/autofs/5.1.4/101.el8/

It's just patch cleanups, mostly descriptions/spelling.
Please use this for testing.

Comment 10 Ian Kent 2023-03-12 23:36:04 UTC
Kun,

Could you test this please, as in comment #5 we need that for the
exception review before this Thursday.

Comment 50 Red Hat Bugzilla 2023-09-29 04:25:10 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days