Description of problem: Automount can cause a program to hang when accessing a directory that is being expired. Version-Release number of selected component (if applicable): autofs-4.1.3-130 kernel-2.4.21-32 How reproducible: No reproducer available. Steps to Reproduce: 1. 2. 3. Actual results: If the race is triggered, the process performing the lookup will hang indefinitely. You will be able to interrupt it, though. Expected results: Additional info: 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. http://rhn.redhat.com/errata/RHSA-2006-0437.html