NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-xen/41649: Kernel panic on loading LKM + PF on netbsd5 dom0 and domU kernels



>Number:         41649
>Category:       port-xen
>Synopsis:       Kernel panic on loading LKM + PF on netbsd5 dom0 and domU 
>kernels
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-xen-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 29 20:55:00 +0000 2009
>Originator:     Prudhvi Krishna Surapaneni
>Release:        netbsd-5.0
>Organization:
>Environment:
NetBSD hayadum.surapaneni.in 5.0 NetBSD 5.0 (XEN3_DOMU) #0: Sun Apr 26 06:40:06 
UTC 2009  
builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-RELEASE/amd64/200904260229Z-obj/home/builds/ab/netbsd-5-0-RELEASE/src/sys/arch/amd64/compile/XEN3_DOMU
 amd64
>Description:
When loading pf.o lkm ( as described in netbsd pf docs 
http://www.netbsd.org/docs/network/pf.html#enable ) the kernel panics

-bash-4.0# xm create dom1 -c
Using config file "/usr/pkg/etc/xen/dom1".
Started domain dom1
: AMD 686-class, 2009MHz, id 0x40fb2
xenbus0 at hypervisor0: Xen Virtual Bus Interface
xencons0 at hypervisor0: Xen Virtual Console Driver
xencons0: using event channel 2
xbd0 at xenbus0 id 1: Xen Virtual Block Device Interface
xennet0 at xenbus0 id 0: Xen Virtual Network Interface
xennet0: MAC address 00:16:3e:2a:dc:8f
raidattach: Asked for 8 units
Kernelized RAIDframe activated
Searching for RAID components...
boot device: xbd0
root on xbd0a dumps on xbd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
Mon Jun 29 15:44:45 UTC 2009
swapctl: adding /dev/xbd0b as swap device at priority 0
Starting file system checks:
/dev/rxbd0a: INCORRECT BLOCK COUNT I=296302 (12 should be 0) (CORRECTED)
/dev/rxbd0a: INCORRECT BLOCK COUNT I=296352 (4 should be 0) (CORRECTED)
/dev/rxbd0a: UNREF FILE I=296302  OWNER=0 MODE=100664
/dev/rxbd0a: SIZE=0 MTIME=Jun 29 15:29 2009  (CLEARED)
/dev/rxbd0a: UNREF FILE I=296352  OWNER=0 MODE=100644
/dev/rxbd0a: SIZE=0 MTIME=Jun 29 15:29 2009  (CLEARED)
/dev/rxbd0a: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rxbd0a: SUMMARY INFORMATION BAD (SALVAGED)
/dev/rxbd0a: BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/rxbd0a: 20623 files, 261465 used, 1738462 free (214 frags, 217281 blocks, 
0.0% fragmentation)
/dev/rxbd0a: MARKING FILE SYSTEM CLEAN
Setting tty flags.
pf.o: panic: kernel diagnostic assertion "cv_is_valid(cv)" failed: file 
"/home/builds/ab/netbsd-5-0-RELEASE/src/sys/kern/kern_condvar.c", line 329
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff80377a25 cs e030 rflags 246 cr2  7f7ffda45000 
cpl 0 rsp ffffa00046af36a0
Stopped in pid 36.1 (modload) at        netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x242
__kernassert() at netbsd:__kernassert+0x2d
cv_broadcast() at netbsd:cv_broadcast+0x41
callback_run_roundrobin() at netbsd:callback_run_roundrobin+0xe0
uvm_map_prepare() at netbsd:uvm_map_prepare+0x1a7
uvm_map() at netbsd:uvm_map+0xd0
uvm_km_alloc() at netbsd:uvm_km_alloc+0xa8
lkmioctl() at netbsd:lkmioctl+0x549
VOP_IOCTL() at netbsd:VOP_IOCTL+0x31
vn_ioctl() at netbsd:vn_ioctl+0x6d
sys_ioctl() at netbsd:sys_ioctl+0x134
syscall() at netbsd:syscall+0xb4
ds          0x36b0
es          0x8e4c
fs          0x36b0
gs          0x8f27
rdi         0
rsi         0xd
rbp         0xffffa00046af36a0
rbx         0xffffa00046af36b0
rdx         0
rcx         0
rax         0x1
r8          0xffffffff80594fc0  cpu_info_primary
r9          0x1
r10         0xffffa00046af35c0
r11         0xffffffff8038fbf0  xenconscn_putc
r12         0x104
r13         0xffffffff80485b08  copyright+0x8fac8
r14         0
r15         0
rip         0xffffffff80377a25  breakpoint+0x5
cs          0xe030
rflags      0x246
rsp         0xffffa00046af36a0
ss          0xe02b
netbsd:breakpoint+0x5:  leave
db>

cat /usr/pkg/etc/xen/dom1

#kernel = "/netbsd-INSTALL_XEN3_DOMU"
kernel = "/netbsd-XEN3_DOMU"
memory = 1024 
name   = "dom1"

disk   = ['file:/var/xen/nbsd-disk,0x01,w']
vif    = ['bridge=bridge0']
root   = "xbd0"


>How-To-Repeat:
load lkm and pf onboot on dom0 and domU kernels.
>Fix:



Home | Main Index | Thread Index | Old Index