gbde atttach on sparc64 = kernel panic

From: matt <matt_at_grogged.dyndns.org>
Date: Sun, 4 May 2003 22:38:18 -0500 (CDT)
I've been playing with gbde on the latest sparc64 current (last saturday
anyhow), everytime I try and "gbde attach *devicename*" I get a kernel
panic - I'm trying to attach gbde to the md() device (which in turn is
pointed at a file on a ufs1 filesystem).  More details below:

/usr/src/sys/sparc64/conf/GENERIC - unchanged, except for options GEOM_BDE
was added.


db> panic
panic: from debugger
cpuid = 0;
Debugger("panic")
Stopped at      Debugger+0x1c:  ta              %xcc, 1
db> show reg
g0          0xc0312403
g1                   0
g2                 0x1
g3                   0
g4            0xff0000
g5              0xff00  fpu_fault_size+0xfd4c
g6          0xe2ccd980
g7          0xc03e8e30  pcpu0+0x1aa8
i0                0x12
i1          0xfffff8003cfaa630
i2          0xe2ccc520
i3                 0xa
i4          0xe2ccc5c8
i5                   0
i6          0xe2ccbc81
i7          0xc0272274  Debugger+0x14
tnpc        0xc0272280  Debugger+0x20
tpc         0xc027227c  Debugger+0x1c
tstate      0x441d001603
Debugger+0x1c:  ta              %xcc, 1
db> trace
panic() at panic+0x134
trap() at trap+0x324
-- memory address not aligned sfar=0xfffff80035cace51 sfsr=0x40029%o7=0xc014bd9c --
Decode() at Decode+0x34
MD5Update() at MD5Update+0x94
g_bde_decode_lock() at g_bde_decode_lock+0x320
g_bde_decrypt_lockx() at g_bde_decrypt_lockx+0x194
g_bde_decrypt_lock() at g_bde_decrypt_lock+0xb4
g_bde_create_geom() at g_bde_create_geom+0x238
gctl_create_geom() at gctl_create_geom+0x80
g_ctl_ioctl_ctl() at g_ctl_ioctl_ctl+0x1b0
g_ctl_ioctl() at g_ctl_ioctl+0xb8
spec_ioctl() at spec_ioctl+0x178
spec_vnoperate() at spec_vnoperate+0x1c
vn_ioctl() at vn_ioctl+0x174
ioctl() at ioctl+0x3b4
syscall() at syscall+0x2a8
-- syscall (54, FreeBSD ELF64, ioctl) %o7=0x106fb8 --
userland() at 0x107c68
user trace: trap %o7=0x106fb8
pc 0x107c68, sp 0x7fdffffe921
pc 0x1008a4, sp 0x7fdffffe9e1
pc 0x101ab4, sp 0x7fdffffeab1
pc 0x1001dc, sp 0x7fdfffff221
pc 0, sp 0x7fdfffff2e1
done
db> show witness
Sleep locks:
0 g_xdown -- last acquired _at_ geom/geom_io.c:344
2  Giant -- last acquired _at_ vm/vm_object.c:380
3   mntvnode -- last acquired _at_ kern/vfs_subr.c:1042
10   vnode interlock -- last acquired _at_ kern/vfs_subr.c:2169
11    Malloc Stats -- last acquired _at_ kern/kern_malloc.c:231
11    spechash -- last acquired _at_ kern/vfs_subr.c:2059
11    Syncer mtx -- last acquired _at_ kern/vfs_subr.c:1773
11    vnode_free_list -- last acquired _at_ kern/vfs_subr.c:936
11    lockmgr -- last acquired _at_ kern/kern_lock.c:549
11    UMA cpu -- last acquired _at_ vm/uma_core.c:1693
12     UMA zone -- last acquired _at_ vm/uma_core.c:1711
3   eventhandler -- last acquired _at_ kern/subr_eventhandler.c:212
4    eventhandler list -- last acquired _at_ fs/devfs/devfs_vnops.c:381
3   devstat -- last acquired _at_ kern/subr_devstat.c:82
3   kernel linker -- last acquired _at_ kern/kern_linker.c:429
3   rip -- last acquired _at_ netinet/in_pcb.c:821
3   UMA lock -- last acquired _at_ vm/uma_core.c:1171
5    PCPU KMAP ENTRY -- last acquired _at_ vm/uma_core.c:253
6     KMAP ENTRY -- last acquired _at_ vm/uma_core.c:267
11   UMA cpu -- (already displayed)
3   taskqueue list -- last acquired _at_ kern/subr_taskqueue.c:86
3   ithread -- last acquired _at_ kern/kern_intr.c:268
3   pseudofs_vncache -- last acquired _at_ fs/pseudofs/pseudofs_vncache.c:227
3   rman head -- last acquired _at_ kern/subr_rman.c:109
3   sf_bufs list lock -- last acquired _at_ kern/uipc_syscalls.c:1623
4    system map -- last acquired _at_ vm/vm_map.c:2757
5     PCPU KMAP ENTRY -- (already displayed)
5     vm object_list -- last acquired _at_ vm/vm_object.c:220
6      vm object -- last acquired _at_ ufs/ffs/ffs_vnops.c:552
7       vm page queue mutex -- last acquired _at_ kern/vfs_bio.c:1326
10       vnode interlock -- (already displayed)
3   p_peers -- last acquired _at_ kern/kern_exit.c:240
3   g_disk_done -- last acquired _at_ geom/geom_disk.c:168
4    bio queue -- last acquired _at_ geom/geom_io.c:64
11   UMA cpu -- (already displayed)
3   devd -- last acquired _at_ kern/subr_bus.c:478
11   Malloc Stats -- (already displayed)
11   UMA cpu -- (already displayed)
3   pseudofs -- last acquired _at_ fs/pseudofs/pseudofs_fileno.c:86
3   sem -- last acquired _at_ kern/sysv_sem.c:1156
3   bpf global lock -- last acquired _at_ net/bpf.c:982
3   GEOM orphanage -- last acquired _at_ geom/geom_event.c:168
3   dirhash list -- last acquired _at_ ufs/ufs/ufs_dirhash.c:245
4    dirhash -- last acquired _at_ ufs/ufs/ufs_dirhash.c:359
3   pbuf mutex -- last acquired _at_ vm/vm_pager.c:462
3   ufs ihash -- last acquired _at_ ufs/ufs/ufs_ihash.c:188
db> show witness
Sleep locks:
0 g_xdown -- last acquired _at_ geom/geom_io.c:344
2  Giant -- last acquired _at_ vm/vm_object.c:380
3   mntvnode -- last acquired _at_ kern/vfs_subr.c:1042
10   vnode interlock -- last acquired _at_ kern/vfs_subr.c:2169
11    Malloc Stats -- last acquired _at_ kern/kern_malloc.c:231
11    spechash -- last acquired _at_ kern/vfs_subr.c:2059
11    Syncer mtx -- last acquired _at_ kern/vfs_subr.c:1773
11    vnode_free_list -- last acquired _at_ kern/vfs_subr.c:936
11    lockmgr -- last acquired _at_ kern/kern_lock.c:549
11    UMA cpu -- last acquired _at_ vm/uma_core.c:1693
12     UMA zone -- last acquired _at_ vm/uma_core.c:1711
3   eventhandler -- last acquired _at_ kern/subr_eventhandler.c:212
4    eventhandler list -- last acquired _at_ fs/devfs/devfs_vnops.c:381
3   devstat -- last acquired _at_ kern/subr_devstat.c:82
3   kernel linker -- last acquired _at_ kern/kern_linker.c:429
3   rip -- last acquired _at_ netinet/in_pcb.c:821
3   UMA lock -- last acquired _at_ vm/uma_core.c:1171
5    PCPU KMAP ENTRY -- last acquired _at_ vm/uma_core.c:253
6     KMAP ENTRY -- last acquired _at_ vm/uma_core.c:267
11   UMA cpu -- (already displayed)
3   taskqueue list -- last acquired _at_ kern/subr_taskqueue.c:86
3   ithread -- last acquired _at_ kern/kern_intr.c:268
3   pseudofs_vncache -- last acquired _at_ fs/pseudofs/pseudofs_vncache.c:227
3   rman head -- last acquired _at_ kern/subr_rman.c:109
3   sf_bufs list lock -- last acquired _at_ kern/uipc_syscalls.c:1623
4    system map -- last acquired _at_ vm/vm_map.c:2757
5     PCPU KMAP ENTRY -- (already displayed)
5     vm object_list -- last acquired _at_ vm/vm_object.c:220
6      vm object -- last acquired _at_ ufs/ffs/ffs_vnops.c:552
7       vm page queue mutex -- last acquired _at_ kern/vfs_bio.c:1326
10       vnode interlock -- (already displayed)
3   p_peers -- last acquired _at_ kern/kern_exit.c:240
3   g_disk_done -- last acquired _at_ geom/geom_disk.c:168
4    bio queue -- last acquired _at_ geom/geom_io.c:64
11   UMA cpu -- (already displayed)
3   devd -- last acquired _at_ kern/subr_bus.c:478
11   Malloc Stats -- (already displayed)
11   UMA cpu -- (already displayed)
3   pseudofs -- last acquired _at_ fs/pseudofs/pseudofs_fileno.c:86
3   sem -- last acquired _at_ kern/sysv_sem.c:1156
3   bpf global lock -- last acquired _at_ net/bpf.c:982
3   GEOM orphanage -- last acquired _at_ geom/geom_event.c:168
3   dirhash list -- last acquired _at_ ufs/ufs/ufs_dirhash.c:245
4    dirhash -- last acquired _at_ ufs/ufs/ufs_dirhash.c:359
3   pbuf mutex -- last acquired _at_ vm/vm_pager.c:462
3   ufs ihash -- last acquired _at_ ufs/ufs/ufs_ihash.c:188
10   vnode interlock -- (already displayed)
3   bdone lock -- last acquired _at_ kern/vfs_bio.c:2974
3   netisr lock -- last acquired _at_ net/netisr.c:215
4    arp_inq -- last acquired _at_ net/netisr.c:233
4    udp -- last acquired _at_ netinet/udp_usrreq.c:977
5     inp -- last acquired _at_ netinet/tcp_usrreq.c:621
6      rman -- last acquired _at_ kern/subr_rman.c:196
11      Malloc Stats -- (already displayed)
11      UMA cpu -- (already displayed)
6      bpf interface lock -- last acquired _at_ net/bpf.c:1088
7       bpf cdev lock -- last acquired _at_ net/bpf.c:1090
8        sellck -- last acquired _at_ kern/sys_generic.c:1190
6      if send queue -- last acquired _at_ dev/hme/if_hme.c:994
6      radix node head -- last acquired _at_ net/route.c:139
11      Malloc Stats -- (already displayed)
7       mbuf PCPU list lock -- last acquired _at_ kern/subr_mbuf.c:917
72
7       ifnet -- last acquired _at_ net/if.c:1170
7       ifaddr -- last acquired _at_ net/route.c:671
11      UMA cpu -- (already displayed)
6      random reseed -- last acquired _at_ dev/random/yarrow.c:170
4    tcp -- last acquired _at_ netinet/tcp_usrreq.c:621
5     inp -- (already displayed)
4    ip_inq -- last acquired _at_ net/netisr.c:233
3   buffer daemon lock -- last acquired _at_ kern/vfs_bio.c:2096
3   mntid -- last acquired _at_ kern/vfs_subr.c:571
4    mountlist -- last acquired _at_ kern/vfs_subr.c:3492
3   fdesc -- last acquired _at_ kern/kern_descrip.c:1408
4    filedesc structure -- last acquired _at_ kern/kern_descrip.c:1691
7     bpf cdev lock -- (already displayed)
5     pipe mutex -- last acquired _at_ kern/sys_pipe.c:1382
8      sellck -- (already displayed)
6      sigio lock -- last acquired _at_ kern/kern_descrip.c:564
7       process group -- last acquired _at_ kern/kern_proc.c:276
8        process lock -- last acquired _at_ sparc64/sparc64/trap.c:557
9         struct pargs.ref -- last acquired _at_ kern/kern_proc.c:1025
9         ktrace -- last acquired _at_ kern/kern_fork.c:601
9         session -- last acquired _at_ fs/specfs/spec_vnops.c:618
10         vnode interlock -- (already displayed)
10         uidinfo hash -- last acquired _at_ kern/kern_resource.c:876
11          uidinfo struct -- last acquired _at_ order list:0
12           allprison -- last acquired _at_ kern/kern_jail.c:414
3   buf queue lock -- last acquired _at_ kern/vfs_bio.c:1391
3   needsbuffer lock -- last acquired _at_ kern/vfs_bio.c:291
3   runningbufspace lock -- last acquired _at_ kern/vfs_bio.c:309
3   accounting -- last acquired _at_ kern/kern_acct.c:228
3   md bio queue -- last acquired _at_ dev/md/md.c:571
0 g_xup -- last acquired _at_ geom/geom_io.c:363
2  Giant -- (already displayed)
0 GEOM event stalling -- last acquired _at_ geom/geom_event.c:156
1  GEOM topology -- last acquired _at_ geom/geom_event.c:157
2   Giant -- (already displayed)
0 module subsystem sx lock -- last acquired _at_ kern/kern_module.c:330
0 kernel environment -- last acquired _at_ kern/kern_environment.c:287
0 sysctl lock -- last acquired _at_ kern/kern_sysctl.c:1244
1  malloc -- last acquired _at_ kern/kern_malloc.c:549
1  filelist lock -- last acquired _at_ kern/kern_descrip.c:1152
4   filedesc structure -- (already displayed)
1  allproc -- last acquired _at_ kern/sched_4bsd.c:253
2   Giant -- (already displayed)
0 proctree -- last acquired _at_ fs/specfs/spec_vnops.c:616
1  allproc -- (already displayed)

Spin locks:

Locks which were never acquired:
ip6_inq
pseudofs_fileno
msq
semid
cd9660_ihash
taskqueue
strategy
UUID generator mutex lock
securelevel mutex lock
jumbo mutex
phys_pager list
dev_pager list
dev_pager create
swap_pager list
vm map sleep mutex
db>
Received on Sun May 04 2003 - 18:48:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:06 UTC