[Bug 8891] New: mdev creates /dev/root symlink to incorrect device, because it doesn't check device type (block/char)

bugzilla at busybox.net bugzilla at busybox.net
Mon Apr 25 13:40:05 UTC 2016


https://bugs.busybox.net/show_bug.cgi?id=8891

            Bug ID: 8891
           Summary: mdev creates /dev/root symlink to incorrect device,
                    because it doesn't check device type (block/char)
           Product: Busybox
           Version: 1.24.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: jakub at jirutka.cz
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

When there are two device nodes, block and character, with the same major:minor
numbers*, then mdev may create /dev/root symlink to the character device
instead the block device.

lrwxrwxrwx  1 root root        4 Apr 25 12:50 root -> rtc0
crw-------  1 root root 254,   0 Apr 25  2016 rtc0
brw-rw----  1 root disk 254,   0 Apr 25 12:39 vda
brw-rw----  1 root disk 254,  16 Apr 25  2016 vdb

I think that this bug was introduced in commit a7e3d052
(https://github.com/mirror/busybox/commit/a7e3d052).

* At any point in time on one system the major:minor numbers **for each type of
device** are unique, i.e. major:minor is not unique across various device
types.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list