Red Hat Bugzilla – Bug 173983
autofs and kernel crash when host name cannot be resolved in DNS.
Last modified: 2007-11-30 17:07:09 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
then a command such as
hangs and the kernel crashes instantly when the hostname cannot be
From the changelog there were some changes in autofs in this area with
Version-Release number of selected component (if applicable):
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.
This unfortuantly hits us quite hard since we have always used a & in
the hostname in our mount map.
and then maintain DNS aliases pointing at the various disks.
*** Bug 173982 has been marked as a duplicate of this bug. ***
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.
Yes with autofs-4.1.3-154.i386.rpm this problem completly goes away.