From nobody@FreeBSD.org  Thu Jan 26 14:01:18 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 902B316A420
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Jan 2006 14:01:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5886C43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Jan 2006 14:01:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0QE1Icb047981
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Jan 2006 14:01:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k0QE1Iu3047977;
	Thu, 26 Jan 2006 14:01:18 GMT
	(envelope-from nobody)
Message-Id: <200601261401.k0QE1Iu3047977@www.freebsd.org>
Date: Thu, 26 Jan 2006 14:01:18 GMT
From: George Neville-Neil <gnn@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: LOR in opencrypto/crypto.c
X-Send-Pr-Version: www-2.3

>Number:         92368
>Category:       kern
>Synopsis:       [crypto] recursed on non-recursive mutex in opencrypto/crypto.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 26 14:10:02 GMT 2006
>Closed-Date:    Mon Jul 16 13:08:57 GMT 2007
>Last-Modified:  Mon Jul 16 13:08:57 GMT 2007
>Originator:     George Neville-Neil
>Release:        7.x (HEAD)
>Organization:
>Environment:
>Description:
When running the TAHI IPSec IPv4 conformance tests the following LOR occurs:

(kgdb) where
#0  kdb_enter (msg=0x12 <Address 0x12 out of bounds>)
    at ../../../kern/subr_kdb.c:292
#1  0xc04fc78b in panic (
    fmt=0xc069e6b9 "_mtx_lock_sleep: recursed on non-recursive mutex %s @ %s:%d\n") at ../../../kern/kern_shutdown.c:539
#2  0xc04f4862 in _mtx_lock_sleep (m=0xc076089c, tid=3256572352, opts=0, 
    file=0xc06b16d9 "../../../opencrypto/crypto.c", line=669)
    at ../../../kern/kern_mutex.c:463
#3  0xc04f4559 in _mtx_lock_flags (m=0xc076089c, opts=0, 
    file=0xc06b16d9 "../../../opencrypto/crypto.c", line=669)
    at ../../../kern/kern_mutex.c:286
#4  0xc05d8c0a in crypto_dispatch (crp=0xc250e240)
    at ../../../opencrypto/crypto.c:678
#5  0xc05a7e0a in ah_output (m=0xc232fc00, isr=0xc2503a00, mp=0x0, skip=20, 
    protoff=9) at ../../../netipsec/xform_ah.c:1100
#6  0xc059c792 in ipsec4_process_packet (m=0xc232fe00, isr=0xc2503a00, 
    flags=0, tunalready=0) at ../../../netipsec/ipsec_output.c:472
#7  0xc059c1cb in ipsec_process_done (m=0xc232fe00, isr=0xc23c4d80)
    at ../../../netipsec/ipsec_output.c:158
#8  0xc05a93f1 in esp_output_cb (crp=0xc250e280)
    at ../../../netipsec/xform_esp.c:921
#9  0xc05d9260 in crypto_done (crp=0xc250e280)
    at ../../../opencrypto/crypto.c:988
#10 0xc05dab86 in swcr_init () at ../../../opencrypto/cryptosoft.c:1005
#11 0xc05d90ee in crypto_freereq (crp=0xc22a6740) at uma.h:303
#12 0xc05d8c32 in crypto_dispatch (crp=0xc250e280)
    at ../../../opencrypto/crypto.c:690
#13 0xc05a921a in esp_output (m=0xc232fe00, isr=0xc23c4d80, mp=0x0, skip=20, 
    protoff=9) at ../../../netipsec/xform_esp.c:853
#14 0xc059c792 in ipsec4_process_packet (m=0xc232fe00, isr=0xc23c4d80, 
    flags=0, tunalready=0) at ../../../netipsec/ipsec_output.c:472
#15 0xc05897eb in ip_output (m=0xc232fe00, opt=0x0, ro=0xcbfc8b84, flags=0, 
    imo=0x0, inp=0x0) at ../../../netinet/ip_output.c:612
#16 0xc0586b71 in icmp_send (m=0xc232fe00, opts=0x0)
    at ../../../netinet/ip_icmp.c:829
#17 0xc0586ae6 in icmp_reflect (m=0xc232fe00) at ../../../netinet/ip_icmp.c:793
#18 0xc05866c4 in icmp_input (m=0xc232fe00, off=20)
    at ../../../netinet/ip_icmp.c:537
#19 0xc05875b5 in ip_input (m=0xc232fe00) at ../../../netinet/ip_input.c:743
#20 0xc0570bd2 in netisr_processqueue (ni=0xc0755e58)
    at ../../../net/netisr.c:236
#21 0xc0570dba in swi_net (dummy=0x0) at ../../../net/netisr.c:349
#22 0xc04e94e6 in ithread_execute_handlers (p=0xc21b4684, ie=0xc21de080)
    at ../../../kern/kern_intr.c:662
#23 0xc04e9617 in ithread_loop (arg=0xc217e860)
    at ../../../kern/kern_intr.c:745
#24 0xc04e8778 in fork_exit (callout=0xc04e95b0 <ithread_loop>, 
    arg=0xc217e860, frame=0xcbfc8d38) at ../../../kern/kern_fork.c:790
#25 0xc064f79c in Xatpic_intr0 () at atpic_vector.s:61
#26 0x00000000 in ?? ()  

>How-To-Repeat:
Run the TAHI conformance tests.
>Fix:
None currently known.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Thu Jun 14 18:08:41 UTC 2007 
State-Changed-Why:  

To submitter:  Are you able to recreate this on a more recent copy 
of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92368 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Mon Jul 16 13:07:37 UTC 2007 
State-Changed-Why:  
Feedback timeout (1 month). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92368 
>Unformatted:
