From wilcox@first.nosc.mil  Thu Jan 23 10:24:52 1997
Received: from first.nosc.mil (first.nosc.mil [128.49.219.120])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA03052
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Jan 1997 10:24:51 -0800 (PST)
Received: (from wilcox@localhost) by first.nosc.mil (8.7.5/8.7.3) id KAA00462; Thu, 23 Jan 1997 10:28:31 -0800 (PST)
Message-Id: <199701231828.KAA00462@first.nosc.mil>
Date: Thu, 23 Jan 1997 10:28:31 -0800 (PST)
From: wilcox@nosc.mil
Reply-To: wilcox@nosc.mil
To: FreeBSD-gnats-submit@freebsd.org
Subject: mknod minor device field overflow warning
X-Send-Pr-Version: 3.2

>Number:         2567
>Category:       bin
>Synopsis:       mknod doesn't warn when minor overlaps major
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 23 10:30:01 PST 1997
>Closed-Date:    Sun Apr 26 23:41:54 PDT 1998
>Last-Modified:  Sun Apr 26 23:42:09 PDT 1998
>Originator:     Dwight R. Wilcox
>Release:        FreeBSD 2.1.5-STABLE i386
>Organization:
NRaD Code 4122, San Diego, CA 92152
>Environment:

	Nothing unusual relevant to this problem.

>Description:

	The /sbin/mknod command fails to warn the user when a minor
	device number field is given which has non-zero bits overlapping
	the major device number field.  For example:
	
	/sbin/mknod specialfile c 20 256
	
	will set the major device number to 21 and the minor device
	number to 0.

>How-To-Repeat:

	See description above.

>Fix:
	
	Verify that bits 8-15 of the minor device number are zero.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sun Apr 26 23:41:54 PDT 1998 
State-Changed-Why:  
critter phk> /sbin/mknod specialfile c 20 256 
mknod: major or minor number too large 
>Unformatted:

