Subject: kern/26680: panic when running MAKEDEV on newly-built LFS
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tls@netbsd.org>
List: netbsd-bugs
Date: 08/15/2004 19:08:05
>Number:         26680
>Category:       kern
>Synopsis:       running MAKEDEV on a newly-built LFS panics a 2.0 kernel.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 16 05:15:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0_BETA
>Organization:
	
>Environment:
	
	
System: NetBSD 2.0_BETA (SCHREBER) #4: Fri Jul 16 20:52:17 UTC 2004  root@ADMIN:/usr/src/sys/arch/xen/compile/SCHREBER i386

Architecture: i386
Machine: i386
>Description:
	I was building a LFS root filesystem for a new domain under
	NetBSD/xen and got the following when running MAKEDEV in the
	new filesystem's /dev:

mode   8576nlink  1uid    0gid    0size   0blocks 0
inum  12123
Direct Addresses
100000
000000
000
panic: inconsistent inode
Stopped in pid 690.1 (mknod) at netbsd:cpu_Debugger+0x4:        leave
cpu_Debugger(c3a1bd28,0,c3a1bd1c,0,c3a66200) at netbsd:cpu_Debugger+0x4
panic(c02b7bb9,c0516d00,c0516c00,c3a1bd5c,0) at netbsd:panic+0x11d
lfs_vinit(c05d5800,c3a1bdb8,c074bcfc,0,c3bafbbc) at netbsd:lfs_vinit+0x301
lfs_vget(c05d5800,2f5b,c3a1be74,c39dc1a0,c3a1be64) at netbsd:lfs_vget+0x396
lfs_mknod(c3a1be14,0,c03faa40,1,c02aad00) at netbsd:lfs_mknod+0x1d8
VOP_MKNOD(c38699b4,c3a1be74,c3a1be88,c3a1beb4,c040f280) at netbsd:VOP_MKNOD+0x34

(c371dad4,c3a1bf64,c3a1bf5c,0,c027d05c) at netbsd:+0x10b232
syscall_plain() at netbsd:syscall_plain+0x7e
--- syscall (number 14) ---
0x4807aa03:
Stopped in pid 690.1 (mknod) at netbsd:cpu_Debugger+0x4:        leave
db> 

>How-To-Repeat:
	Make an LFS filesystem.  Extract the NetBSD system binaries into it.
	change directory into the filesystem's /dev and run ./MAKEDEV.  Boom.
>Fix:
	Beats me.  Are any LFS pullups missing from 2.0?
>Release-Note:
>Audit-Trail:
>Unformatted: