From owner-freebsd-jail@FreeBSD.ORG Sat Aug 20 20:49:58 2011 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B68F106566C; Sat, 20 Aug 2011 20:49:58 +0000 (UTC) (envelope-from prvs=12137168ef=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 9306A8FC15; Sat, 20 Aug 2011 20:49:57 +0000 (UTC) X-MDAV-Processed: mail1.multiplay.co.uk, Sat, 20 Aug 2011 21:49:23 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Sat, 20 Aug 2011 21:49:23 +0100 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-5.0 required=6.0 tests=USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.2.5 Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50014676446.msg; Sat, 20 Aug 2011 21:49:23 +0100 X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=12137168ef=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <7585E1DAE11E47488CD5A7F038957F4D@multiplay.co.uk> From: "Steven Hartland" To: "Andriy Gapon" References: eBSD.org><82E865FBA30747078AF6EE3C1701F973@multiplay.co.uk><4E4FE55A.9000101@FreeBSD.org> <4E501A6A.3030801@FreeBSD.org> Date: Sat, 20 Aug 2011 21:50:51 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Cc: freebsd-jail@FreeBSD.org, freebsd-stable@FreeBSD.org Subject: Re: debugging frequent kernel panics on 8.2-RELEASE X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2011 20:49:58 -0000 ----- Original Message ----- From: "Andriy Gapon" >> diff -u sys/kern/kern_jail.c.orig sys/kern/kern_jail.c >> --- sys/kern/kern_jail.c.orig 2011-08-20 21:17:14.856618854 +0100 >> +++ sys/kern/kern_jail.c 2011-08-20 21:18:35.307201425 +0100 >> @@ -2455,7 +2455,8 @@ >> if (--tpr->pr_uref > 0) >> break; >> KASSERT(tpr != &prison0, ("prison0 pr_uref=0")); >> - mtx_unlock(&tpr->pr_mtx); >> + if (tpr != pr) >> + mtx_unlock(&tpr->pr_mtx); >> } >> /* Done if there were only user references to remove. */ >> if (!(flags & PD_DEREF)) { > > Not sure if this would fly as is - please double check the later block where > pr->pr_mtx is re-locked. Will do, I'm now 99.9% sure this is the problem and even better I now have a reproducible scenario :) Something else you many be more interested in Andriy:- I added in debugging options DDB & INVARIANTS to see if I can get a more useful info and the panic results in a looping panic constantly scrolling up the console. Not sure if this is a side effect of the patches we've been trying. Going to see if I can confirm that, lmk if there's something you want me to try? Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.