Subject: kern/36679: vnode problems with layered (mount_union) fs, mfs on ffs
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <gcw@primenet.com.au>
List: netbsd-bugs
Date: 07/23/2007 03:35:00
>Number:         36679
>Category:       kern
>Synopsis:       crash with vnode problems with mount_union fs (mfs on ffs)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 23 03:35:00 +0000 2007
>Originator:     Geoff C. Wing
>Release:        NetBSD 4.99.25 (2007-07-23)
>Organization:
>Environment:
System: NetBSD g.primenet.com.au 4.99.25 NetBSD 4.99.25 (G) #0: Mon Jul 23 11:20:34 EST 2007 gcw@g.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/G i386
Architecture: i386
Machine: i386
>Description:
	Immediately reproducible on my system with mfs/ffs/DIAGNOSTIC

	% mount_mfs -s 512m mfs /mnt
	% mount_union /mnt/obj /usr/pkgsrc
	% cd /usr/pkgsrc
	...
	assert from kern/vnode_if.c:135 (with DIAGNOSTIC option)
	((*vpp)->v_size != VSIZENOTSET && (*vpp)->v_writesize != VSIZENOTSET)

	(ddb) bt (from handwritten notes)
	...
	dead_default_error()
	lookup()
	namei()
	do_sys_stat()
	sys__stat30()
	syscal_plain()
	  syscall(387)


>How-To-Repeat:
	See up.
>Fix:
	?