Subject: kern/34608: vnd(4) panic with VND_COMPRESSION without a compressed image
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <juan@xtrarom.org>
List: netbsd-bugs
Date: 09/25/2006 13:10:03
>Number:         34608
>Category:       kern
>Synopsis:       vnd(4) panic with VND_COMPRESSION without a compressed image
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 25 13:10:02 +0000 2006
>Originator:     Juan RP
>Release:        NetBSD 4.99.3
>Organization:
>Environment:
System: NetBSD nocturno 4.99.3 NetBSD 4.99.3 (Nocturno-ACPI) #90: Mon Sep 25 13:45:49 CEST 2006 juan@nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno-ACPI i386
Architecture: i386
Machine: i386
>Description:
	Another panic with vnd(4):

	Try the following:
	
	$ makefs -t ffs usr_lib.fs /usr/lib
	$ vndcompress usr_lib.fs usr_lib.zfs
	$ vnconfig -z vnd0 usr_lib.fs
	$ mount /dev/vnd0a /mnt

	It will panic with the following bt:

kernel: supervisor trap integer divide fault, code=0
Stopped in pid 291.1 (vnd0) at  netbsd:__qdivrem+0x38:  divl    %esi,%eax
db> __qdivrem(10000,0,0,0,0) at netbsd:__qdivrem+0x38
__divdi3(10000,0,0,0,200) at netbsd:__divdi3+0x50
vndthread(c1cc2000,7c8000,7cf000,0,c01002e6) at netbsd:vndthread+0x17f
db>

>How-To-Repeat:
>Fix:
	Yes, please. Also I want VND_COMPRESSION fixed for 4.0,
	otherwise mklivecd is not very useful.