Bug 173983 - autofs and kernel crash when host name cannot be resolved in DNS.
Summary: autofs and kernel crash when host name cannot be resolved in DNS.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: autofs
Version: 3.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Moyer
QA Contact: Brock Organ
URL:
Whiteboard:
: 173982 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-23 13:07 UTC by Steve Traylen
Modified: 2007-11-30 22:07 UTC (History)
3 users (show)

Fixed In Version: autofs-4.1.3-154.i386.rpm
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-24 16:49:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Steve Traylen 2005-11-23 13:07:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:

Hi 

  Since redhat exterprise 3 moved from 

  autofs-4.1.3-12

  to

  autofs-4.1.3-130

  we have found that for entry like 

  # /etc/auto.master
  /stage  /etc/auto.stage

  #/etc/auto.stage

  *  non-existant-host.stage.rl.ac.uk:/stage/&

  then a command such as 

  cd /stage/rhel3 

  hangs and the kernel crashes instantly when the hostname cannot be 
  resolved.

  From the changelog there were some changes in autofs in this area with
  this version.


Version-Release number of selected component (if applicable):
kernel-smp-2.4.21-37.EL     autofs-4.1.3-130

How reproducible:
Always

Steps to Reproduce:
1. Install autofs-4.1.3-130
2. echo "/stage /etc/auto.stage" >> /etc/auto.master
3. echo "* non-existent-host.example.org:/stage/&" >> /etc/auto.stage
4. /etc/init.d/autofs restart
5. ls /stage/alpha




Actual Results:  autofs tries to nfs mount 

non-existent-host.example.org:/stage/alpha

presumably the DNS lookup fails

the ls command hangs and kernel panics.

Expected Results:  It should just inform you that is imposible to mount this filesystem with
a no such host as non-existent-host.example.org or something.

Additional info:



This unfortuantly hits us quite hard since we have always used a & in
the hostname in our mount map.

*     &.rl.ac.uk:/stage/&

and then maintain DNS aliases pointing at the various disks.

 Steve

Comment 1 Steve Traylen 2005-11-23 13:10:10 UTC
*** Bug 173982 has been marked as a duplicate of this bug. ***

Comment 2 Jeff Moyer 2005-11-23 19:55:02 UTC
My guess is that you are running into the recursive bind mount issue.  Is there
any console output?  I.e. do you see a kernel panic and related stack trace? 
Also note that you are not running the latest autofs package.

Comment 3 Steve Traylen 2005-11-24 16:49:38 UTC
Hi

  Yes with autofs-4.1.3-154.i386.rpm this problem completly goes away.

  Steve


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