From owner-freebsd-current@FreeBSD.ORG Mon Jun 27 21:25:20 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C74816A41F; Mon, 27 Jun 2005 21:25:20 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC3E943D53; Mon, 27 Jun 2005 21:25:19 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.41.231] (Not Verified[65.202.103.25]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Mon, 27 Jun 2005 17:39:01 -0400 From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 27 Jun 2005 16:56:14 -0400 User-Agent: KMail/1.8 References: <20050618005118.GA97030@xor.obsecurity.org> <20050620164744.M66638@mail.chesapeake.net> In-Reply-To: <20050620164744.M66638@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506271656.15881.jhb@FreeBSD.org> Cc: Jeff Roberson , current@freebsd.org, Kris Kennaway Subject: Re: "panic: mutex Giant not owned" in do_execve() X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2005 21:25:20 -0000 On Monday 20 June 2005 04:47 pm, Jeff Roberson wrote: > On Fri, 17 Jun 2005, Kris Kennaway wrote: > > quad e450 running up-to-date -current: > > > > panic: mutex Giant not owned at ../../../kern/kern_mutex.c:299 > > cpuid = 0 > > KDB: enter: panic > > [thread pid 52851 tid 100456 ] > > Stopped at kdb_enter+0x3c: ta %xcc, 1 > > db> wh > > Tracing pid 52851 tid 100456 td 0xfffff80077c61560 > > panic() at panic+0x16c > > _mtx_assert() at _mtx_assert+0x6c > > _mtx_unlock_flags() at _mtx_unlock_flags+0x68 > > do_execve() at do_execve+0xa0c > > Can you tell me what code is at do_execve+0xa0c? It's down below. It's the VFS_UNLOCK_GIANT() after the #ifdef MAC stuff: > > kern_execve() at kern_execve+0x7c > > execve() at execve+0x38 > > syscall() at syscall+0x2d4 > > -- reserved %o7=0 -- > > userland() at 0x40223400 > > user trace: trap %o7=0 > > pc 0x40223400, sp 0x7fdffffd021 > > done > > > > #12 0x00000000c01525cc in do_execve (td=0xfffff80077c61560, args=0xc, > > mac_p=0x0) at ../../../kern/kern_exec.c:789 > > #13 0x00000000c0151b3c in kern_execve (td=0xfffff80077c61560, > > args=0xeea6f670, mac_p=0x0) at > > ../../../kern/kern_exec.c:250 > > #14 0x00000000c0151a78 in execve (td=0xfffff80077c61560, uap=0xeea6f8c0) > > at ../../../kern/kern_exec.c:185 > > #15 0x00000000c02f3cd4 in syscall (tf=0xeea6f880) at > > ../../../sparc64/sparc64/trap.c:592 > > (kgdb) frame 12 > > #12 0x00000000c01525cc in do_execve (td=0xfffff80077c61560, args=0xc, > > mac_p=0x0) at ../../../kern/kern_exec.c:789 > > 789 VFS_UNLOCK_GIANT(vfslocked); > > (kgdb) list > > 784 #ifdef MAC > > 785 mac_execve_exit(imgp); > > 786 if (interplabel != NULL) > > 787 mac_vnode_label_free(interplabel); > > 788 #endif > > 789 VFS_UNLOCK_GIANT(vfslocked); > > 790 return (error); > > 791 } > > 792 > > 793 int See, line 789 here. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org