Bug 2738 - [DEVFS problem] Kernel crashes when you mount more than one device on a mount point (oops!)
Summary: [DEVFS problem] Kernel crashes when you mount more than one device on a mount...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Julian Elischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1997-02-14 22:10 UTC by zach
Modified: 1997-05-03 22:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zach 1997-02-14 22:10:01 UTC
I mounted devfs on /mnt, then mounted /dev/sd1c on /mnt
(forgot about devfs).  Then, when I tried to umount, the
machine did a cold boot (no panic).  I was trying to
configure sd1 to eventually be sd0 (finally figured it out).

Fix: 

don't mount two different devices on the same mount point...
How-To-Repeat: 
mount_devfs devfs /mnt
mount /dev/sd1c /mnt
umount devfs # message saying devfs wasn't mounted...
umount /mnt # probably not what I _should_ have done, but...
            # instant cold boot (no panic).
Comment 1 John-Mark Gurney freebsd_committer freebsd_triage 1997-02-15 03:02:05 UTC
State Changed
From-To: open->closed

originator confirms closure because real bug is with umounting devfs 
Comment 2 mpp freebsd_committer freebsd_triage 1997-02-16 07:25:25 UTC
State Changed
From-To: closed->open

Re-opened because there is still a devfs problem here, 
and there are no other PRs open on that problem. 


Comment 3 mpp freebsd_committer freebsd_triage 1997-02-16 07:25:25 UTC
Responsible Changed
From-To: freebsd-bugs->julian

Devfs is Julian's baby. 
Comment 4 Joerg Wunsch freebsd_committer freebsd_triage 1997-05-03 22:21:21 UTC
State Changed
From-To: open->closed

Suggested fixes from PR # 3276 and 3469 applied, in rev 1.36 and 
1.17 of devfs_tree.c, and devfs_vfsops.c, respectively. 

Thanks for the fixes! 

(There are still problems regarding the final umount, but the kernel 
doesn't crash anymore.)