Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2011 21:50:51 +0100
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Andriy Gapon" <avg@FreeBSD.org>
Cc:        freebsd-jail@FreeBSD.org, freebsd-stable@FreeBSD.org
Subject:   Re: debugging frequent kernel panics on 8.2-RELEASE
Message-ID:  <7585E1DAE11E47488CD5A7F038957F4D@multiplay.co.uk>
References:  eBSD.org><82E865FBA30747078AF6EE3C1701F973@multiplay.co.uk><4E4FE55A.9000101@FreeBSD.org> <B367F6CE151B4B6A8B0E048022D7F8AB@multiplay.co.uk><D34B2BC140E14E8A8D450474CCC39CB8@multiplay.co.uk> <4E501A6A.3030801@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- 
From: "Andriy Gapon" <avg@FreeBSD.org>

>> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7585E1DAE11E47488CD5A7F038957F4D>