Current-Users archive

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

repeatable crypto panic



I have a Soekris net4521 that panics every time it starts sshd.
I am booting NET4501 with several additions, including DIAGNOSTIC
and an MD root (see attachments).  A non-DIAGNOSTIC kernel with an
NFS root starts sshd without any trouble.

I looked briefly at the source, and the panic looks impossible to
me:

Starting sshd.
panic: kernel diagnostic assertion "mutex_owned(&crypto_mtx)" failed: file 
"/u3/dyoung/pristine-nbsd/src/sys/opencrypto/crypto.c", line 308
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c0156ed4 cs c0320008 eflags 246 cr2 bb813010 ilevel 8
Stopped in pid 1243.1 (sshd) at netbsd:breakpoint+0x4:  popl    %ebp
ds          0x10
es          0x10
fs          0x30
gs          0x10
edi         0xc840cafc
esi         0xc034912a  copyright+0x2d6aa
ebp         0xc840c9fc
ebx         0x104
edx         0xc0355780  cpu_info_primary
ecx         0
eax         0x1
eip         0xc0156ed4  breakpoint+0x4
cs          0x8
eflags      0x246
esp         0xc840c9fc
ss          0x10
netbsd:breakpoint+0x4:  popl    %ebp
breakpoint(c20d1150,2,c840ca3c,c840ca28,8,0,c840ca4c,c02e3474,c034912a,c031c1a2)
 at netbsd:breakpoint+0x4
panic(c034912a,c031c1a2,c0320776,c032078f,134,4,c840ca8c,c01dc45c,c20d1101,c20d1
160) at netbsd:panic+0x182
__kernassert(c031c1a2,c032078f,134,c0320776,c208d800,c841baa0,c840caac,c1de9500,
1,c208d874) at netbsd:__kernassert+0x28
crypto_newsession(c840cb44,c840cafc,1,c1de677c,1002,c208d800,c840caec,c025cad8,c
840cb20,c840cafc) at netbsd:crypto_newsession+0x33
cryptodev_session(0,c2173dc0,ffffffff,0,0,0,2b87467,c20a5f80,0,c2173dac) at netb
sd:cryptodev_session+0x2fe
cryptof_ioctl(c8393ac0,c01c6365,c840cc50,c840cd00,0,3,c01c,c839f1e8,c01c6365,c84
0cc50) at netbsd:cryptof_ioctl+0x178
sys_ioctl(c83ec500,c840cd00,c840cd28,8,bb813000,c83915b4,2,3,c01c6365,bfbfe320) 
a
t netbsd:sys_ioctl+0x21e
syscall(c840cd48,b3,ab,1f,1f,1f,bbb86370,bfbfe348,bbbb0e40,bfbfe320) at netbsd:s
yscall+0xe0
db{0}> 

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933
# $Id$

include "./elan2"

# Enable the hooks used for initializing the root memory-disk.
options         MEMORY_RBFLAGS=0        # do not boot to single-user mode
options         MEMORY_DISK_HOOKS       # loaded via kernel module
options         MEMORY_DISK_IS_ROOT     # force root on memory disk
options         MEMORY_DISK_SERVER=0    # no userspace memory disk support
options         MEMORY_DISK_ROOT_SIZE=54000     # 32MB memory disk, in blocks
#options SYSCALL_DEBUG
options DIAGNOSTIC
options DEBUG_MEMLOAD
# $Id$

include         "arch/i386/conf/NET4501"

maxusers        8               # estimated number of users
 
no options      SYSVMSG         # System V-like message queues
no options      SYSVSEM         # System V-like semaphores

#options                MODULAR         # new style module framework

makeoptions     DEBUG="-g"      # compile full symbol table

# Compatibility options
no options      COMPAT_NOMID    # NetBSD 0.8, 386BSD, and BSDI
no options      COMPAT_09       # NetBSD 0.9
no options      COMPAT_10       # NetBSD 1.0
no options      COMPAT_11       # NetBSD 1.1
no options      COMPAT_12       # NetBSD 1.2, 386BSD, and BSDI
no options      COMPAT_13       # NetBSD 1.3, 386BSD, and BSDI
no options      COMPAT_14       # NetBSD 1.4
no options      COMPAT_15       # NetBSD 1.5
no options      COMPAT_16       # NetBSD 1.6
no options      COMPAT_20       # NetBSD 2.0
no options      COMPAT_30       # NetBSD 3.0 compatibility.
no options      COMPAT_40       # NetBSD 4.0
no options      COMPAT_43       # 4.3BSD, 386BSD, and BSDI
no options      COMPAT_386BSD_MBRPART # recognize old partition ID
no options      COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
 
no file-system  MFS             # memory file system
no file-system  NFS             # Network File System client
no file-system  FDESC           # /dev/fd
no file-system  KERNFS          # /kern
file-system     NULLFS          # loopback file system
no file-system  PROCFS          # /proc
file-system     UNION           # union file system
file-system     TMPFS           # Efficient memory file-system
 
no options      MROUTING        # IP multicast routing
no options      PIM             # Protocol Independent Multicast
 
no config               netbsd
config          netbsd  root on md0a type ffs
 
elanpar*        at elansc?
elanpex*        at elansc?
 
no pseudo-device        ipfilter                # IP filter (firewall) and NAT
no pseudo-device        ppp                     # Point-to-Point Protocol
no pseudo-device        pppoe                   # PPP over Ethernet (RFC 2516)
no pseudo-device        tun                     # network tunneling over tty
no pseudo-device        tap                     # virtual Ethernet
no pseudo-device        gif                     # IPv[46] over IPv[46] tunnel 
(RFC1933)
no pseudo-device        faith                   # IPv[46] tcp relay translation 
i/f
no pseudo-device        vlan                    # IEEE 802.1q encapsulation
 
# debug options for wireless
options ATW_DEBUG
options RTW_DEBUG
options RAL_DEBUG
options WI_DEBUG
options WI_RING_DEBUG

# debug options for Cardbus
#options CBB_DEBUG
#options CARDBUS_DEBUG
#options CARDSLOT_DEBUG

# Turn on RADIX_MPATH for CUWiN images.
#options RADIX_MPATH

# debug options for routing
options GRE_DEBUG
options GETIFA_DEBUG
options IEEE80211_DEBUG_REFCNT
#options IFAREF_DEBUG
#options RN_DEBUG
#options RTCACHE_DEBUG

# Disable stack protection.
#makeoptions    USE_SSP="no"

#options        KSTACK_CHECK_MAGIC
#options        LOCKDEBUG
#options        DEBUG_MEMLOAD

#
# Change these either by booting with -d and writing db_onpanic,
# db_fromconsole, or else by writing the sysctls ddb.onpanic,
# ddb.fromconsole.
#
options DDB_FROMCONSOLE=0

options IPSELSRC

pseudo-device   cmos
pseudo-device   drvctl
pseudo-device   ksyms                   # /dev/ksyms (necessary because
                                        # /netbsd is not on the ramdisk)
pseudo-device   lockstat
pseudo-device   md              1       # memory disk device (ramdisk)
pseudo-device   neticp
pseudo-device   pf                      # PF packet filter
pseudo-device   pflog                   # PF log if

# Kernel profiling support
#makeoptions    PROF="-pg"
#options                GPROF

options         VNODE_OP_NOINLINE       # conserve memory
options         MALLOC_NOINLINE         # conserve memory

# $Id$

include "./elan2"

file-system     NFS             # Network File System client

no options      NFS_BOOT_BOOTPARAM
options         NFS_V2_ONLY

 # Kernel root file system and dump configuration.
no config       netbsd
config          netbsd  root on sip0 type nfs


Home | Main Index | Thread Index | Old Index