Bug 175778 - Accessing automounted directories can cause a process to hang forever
Summary: Accessing automounted directories can cause a process to hang forever
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jeff Moyer
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: 181409
TreeView+ depends on / blocked
 
Reported: 2005-12-14 21:09 UTC by Jeff Moyer
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RHSA-2006-0575
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 21:45:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
fix a race at the tail end of expire (515 bytes, patch)
2005-12-14 21:09 UTC, Jeff Moyer
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0575 0 normal SHIPPED_LIVE Important: Updated kernel packages available for Red Hat Enterprise Linux 4 Update 4 2006-08-10 04:00:00 UTC

Description Jeff Moyer 2005-12-14 21:09:57 UTC
+++ This bug was initially created as a clone of Bug #160600 +++

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.

-- Additional comment from jmoyer on 2005-06-15 19:54 EST --
Created an attachment (id=115514)
Fix a race in the tail end of an expire event, causing a process to hang forever.


-- Additional comment from jmoyer on 2005-06-15 19:55 EST --
Posting patch to internal mailing list for review.

Comment 1 Jeff Moyer 2005-12-14 21:09:57 UTC
Created attachment 122247 [details]
fix a race at the tail end of expire

Comment 2 Jeff Moyer 2006-01-04 18:02:59 UTC
Posted internally for review on 12/14/2005.

Comment 7 Jason Baron 2006-04-11 15:42:13 UTC
committed in stream U4 build 34.16. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/


Comment 12 Red Hat Bugzilla 2006-08-10 21:45:52 UTC
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-0575.html



Note You need to log in before you can comment on or make changes to this bug.