Bug 26942

Summary: attempting to open a devfs device node causes crash
Product: Base System Reporter: jmallett <jmallett>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description jmallett 2001-04-29 05:20:01 UTC
On my machine running 4.3-STABLE using devfs, with a swap device of ad0s2b, attempting to open /dev/rad0s2b using vi or to run strings on it (as root) causes a total crash.

Fix: 

na
How-To-Repeat: sudo vi /dev/rad0s2b
Comment 1 dima 2001-04-29 05:35:26 UTC
jmallett@newgold.net writes:
> 
> >Number:         26942
> >Category:       kern
> >Synopsis:       attempting to open a devfs device node causes crash
> >Description:
> On my machine running 4.3-STABLE using devfs, with a swap device of
> ad0s2b, attempting to open /dev/rad0s2b using vi or to run strings
> on it (as root) causes a total crash.

The devfs in RELENG_4, which is broken, isn't the same as the devfs in
HEAD, which works quite well.  In other words: don't use devfs on
-stable: it won't work.
Comment 2 Joseph Mallett 2001-04-29 06:11:37 UTC
Are there any plans to fix this in 4.x?

--
+--------------------------------------+
| <jmallett@xMach.org>  Joseph Mallett |
|                      xMach Core Team |
+--------------------------------------+
| xMach: Proactively Unbloated         |
|           Microkernel BSD            |
| IRC: irc.openprojects.net/#xMach     |
| Web: www.xMach.org                   |
+--------------------------------------+

On Sat, 28 Apr 2001, Dima Dorfman wrote:

> jmallett@newgold.net writes:
> >
> > >Number:         26942
> > >Category:       kern
> > >Synopsis:       attempting to open a devfs device node causes crash
> > >Description:
> > On my machine running 4.3-STABLE using devfs, with a swap device of
> > ad0s2b, attempting to open /dev/rad0s2b using vi or to run strings
> > on it (as root) causes a total crash.
>
> The devfs in RELENG_4, which is broken, isn't the same as the devfs in
> HEAD, which works quite well.  In other words: don't use devfs on
> -stable: it won't work.
>
Comment 3 dima 2001-04-29 06:18:54 UTC
Joseph Mallett <jmallett@xMach.org> writes:
> Are there any plans to fix this in 4.x?

Not that I know of.  I doubt phk will want to MFC it.  The devfs in
RELENG_4 is a completely different system, written by a different
author.

> 
> --
> +--------------------------------------+
> | <jmallett@xMach.org>  Joseph Mallett |
> |                      xMach Core Team |
> +--------------------------------------+
> | xMach: Proactively Unbloated         |
> |           Microkernel BSD            |
> | IRC: irc.openprojects.net/#xMach     |
> | Web: www.xMach.org                   |
> +--------------------------------------+
> 
> On Sat, 28 Apr 2001, Dima Dorfman wrote:
> 
> > jmallett@newgold.net writes:
> > >
> > > >Number:         26942
> > > >Category:       kern
> > > >Synopsis:       attempting to open a devfs device node causes crash
> > > >Description:
> > > On my machine running 4.3-STABLE using devfs, with a swap device of
> > > ad0s2b, attempting to open /dev/rad0s2b using vi or to run strings
> > > on it (as root) causes a total crash.
> >
> > The devfs in RELENG_4, which is broken, isn't the same as the devfs in
> > HEAD, which works quite well.  In other words: don't use devfs on
> > -stable: it won't work.
> >
>
Comment 4 Poul-Henning Kamp freebsd_committer freebsd_triage 2001-05-23 21:10:11 UTC
State Changed
From-To: open->closed

Don't use DEVFS prior to late 5.0-CURRENT.