From owner-freebsd-current@FreeBSD.ORG Wed Aug 13 11:02:04 2003 Return-Path: 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 2133937B401 for ; Wed, 13 Aug 2003 11:02:04 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7175643FDD for ; Wed, 13 Aug 2003 11:02:03 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp42.pn.xcllnt.net (dhcp42.pn.xcllnt.net [192.168.4.242]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7DI23wO088521 for ; Wed, 13 Aug 2003 11:02:03 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp42.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp42.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7DI232F000706 for ; Wed, 13 Aug 2003 11:02:03 -0700 (PDT) (envelope-from marcel@dhcp42.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp42.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h7DI22AY000705 for current@FreeBSD.org; Wed, 13 Aug 2003 11:02:02 -0700 (PDT) (envelope-from marcel) Date: Wed, 13 Aug 2003 11:02:02 -0700 From: Marcel Moolenaar To: current@FreeBSD.org Message-ID: <20030813180202.GA643@dhcp42.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: LOR: sigacts vs Giant X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 13 Aug 2003 18:02:04 -0000 Gang, When the copyout() in sendsig() fails and we call sigexit(), we get into the following LOR: lock order reversal 1st 0xe0000000300ffca8 sigacts (sigacts) @ kern/subr_trap.c:260 2nd 0xe000000000b75250 Giant (Giant) @ kern/kern_sig.c:2407 Stack backtrace: witness_lock Stopped at Debugger+0x31: nop.m 0x0 db> trace Debugger(0xe000000000a41340, 0xe00000000078abe0, 0xea3, 0x1) at Debugger+0x30 witness_lock(0xe000000000b75250, 0x8, 0xe000000000a3cdc9, 0x967) at witness_lock+0xf60 _mtx_lock_flags(0xe000000000b75250, 0x0, 0xe000000000a3cdc0, 0x967, 0xe000000000747470, 0x30d, 0xe000000000a5c661) at _mtx_lock_flags+0x130 sigexit(0xe00000002fa4c000, 0xb, 0xe00000002f94afc8, 0xe0000000009ebfe0) at sigexit+0x140 sendsig(0x400000000005fbf0, 0x2, 0xa00000002308d360, 0x0) at sendsig+0x520 postsig(0x2, 0xe00000002fa4c000, 0xe0000000300ff000, 0xe00000002f94afc8) at postsig+0x7f0 ast(0xa00000002308d400) at ast+0x820 : FYI, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net