Red Hat Bugzilla – Bug 160600
Accessing automounted directories can cause a process to hang forever
Last modified: 2007-11-30 17:07:07 EST
Description of problem:
Automount can cause a program to hang when accessing a directory that is being
Version-Release number of selected component (if applicable):
No reproducer available.
Steps to Reproduce:
If the race is triggered, the process performing the lookup will hang
indefinitely. You will be able to interrupt it, though.
This issue was reported upstream, and is resolved with the attached patch. The
race is pretty clear, once you understand the code path, and the fix looks
straight forward and correct.
Created attachment 115514 [details]
Fix a race in the tail end of an expire event, causing a process to hang forever.
Posting patch to internal mailing list for review.
A fix for this problem has just been committed to the RHEL3 U8
patch pool this evening (in kernel version 2.4.21-40.1.EL).
Adding a couple dozen bugs to CanFix list so I can complete the stupid advisory.
*** Bug 180343 has been marked as a duplicate of this bug. ***
I do see "no reproducer available," however can you provide steps you used
to make it reproduce in your environment?
You could setup a simple map with a low timeout (say 5 seconds). Then, have a
script constantly access the mount point at 5 second intervals. Ensure that
mounts and unmounts are occurring. If not, up the script interval to 6 seconds.
The unmount/mount pair must occur quite close to each other.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.