Bug 173983 - autofs and kernel crash when host name cannot be resolved in DNS.
autofs and kernel crash when host name cannot be resolved in DNS.
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: autofs (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Moyer
Brock Organ
: 173982 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2005-11-23 08:07 EST by Steve Traylen
Modified: 2007-11-30 17:07 EST (History)
3 users (show)

See Also:
Fixed In Version: autofs-4.1.3-154.i386.rpm
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-24 11:49:38 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Steve Traylen 2005-11-23 08:07:26 EST
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:


  Since redhat exterprise 3 moved from 




  we have found that for entry like 

  # /etc/auto.master
  /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 

  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:

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 


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.

Comment 1 Steve Traylen 2005-11-23 08:10:10 EST
*** Bug 173982 has been marked as a duplicate of this bug. ***
Comment 2 Jeff Moyer 2005-11-23 14:55:02 EST
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 11:49:38 EST

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


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