NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/48852: CD9660 RockRidge: device files not properly handled



>Number:         48852
>Category:       kern
>Synopsis:       Either the cd9660 file system or makefs mishandle device nodes
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 30 07:15:00 +0000 2014
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.43
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 6.99.43 NetBSD 6.99.43 (NIGHT-OWL) #256: 
Mon May 26 09:45:23 CEST 2014 
martin%night-owl.duskware.de@localhost:/usr/src/sys/arch/amd64/compile/NIGHT-OWL
 amd64
Architecture: x86_64
Machine: amd64
>Description:

As far as I understand, the CD9660 file system with rockridge
extensions should be able to represent device nodes.

When testing, I found it only partly works: node type (c or b) is
properly preserved, but major/minor all get set to 0. This leads
to funny effects, as /dev/null is now the same as /dev/console (just
to mention one of the less critical ones).

>How-To-Repeat:

(as root, for MAKEDEV to work) do:

mkdir cdrom
mkdir cdrom/dev
cp /dev/MAKEDEV cdrom/dev
( cd cdrom/dev && sh ./MAKEDEV all )
makefs -t cd9660 -o rockridge test.iso cdrom
rump_cd9660 ./test.iso /mnt
ls -l /mnt/dev/console /mnt/dev/null

>Fix:
n/a



Home | Main Index | Thread Index | Old Index