From owner-freebsd-stable@FreeBSD.ORG Thu Mar 6 07:06:59 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E3A71ED6 for ; Thu, 6 Mar 2014 07:06:59 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id 9EFA57C3 for ; Thu, 6 Mar 2014 07:06:59 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id 2F8E410020F for ; Thu, 6 Mar 2014 08:06:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 77CA51609A3 for ; Thu, 6 Mar 2014 08:07:51 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GFZDgCb7v1Us for ; Thu, 6 Mar 2014 08:07:50 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id B62571604C5 for ; Thu, 6 Mar 2014 08:07:50 +0100 (CET) Message-ID: <53181EC1.90103@bitfrost.no> Date: Thu, 06 Mar 2014 08:07:45 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: FreeBSD Stable Subject: Fwd: KASSERT in vm_map.c References: <530EFC76.9010302@bitfrost.no> In-Reply-To: <530EFC76.9010302@bitfrost.no> X-Forwarded-Message-Id: <530EFC76.9010302@bitfrost.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 07:06:59 -0000 FYI -------- Original Message -------- Subject: KASSERT in vm_map.c Date: Thu, 27 Feb 2014 09:51:02 +0100 From: Hans Petter Selasky To: Konstantin Belousov Hi, Using 9-stable I hit a KASSERT when EHCI is loading: --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2301,9 +2301,11 @@ vm_map_unwire(vm_map_t map, vm_offset_t start, vm_offset_t end, * Mark the entry in case the map lock is released. (See * above.) */ +#if 0 KASSERT((entry->eflags & MAP_ENTRY_IN_TRANSITION) == 0 && entry->wiring_thread == NULL, ("owned map entry %p", entry)); +#endif entry->eflags |= MAP_ENTRY_IN_TRANSITION; entry->wiring_thread = curthread; /* Is the KASSERT() wrong or is my USB code wrong. Simply add to GENERIC: > +options INVARIANTS # Enable calls of extra sanity checking > +options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS > +options WITNESS # Enable checks to detect deadlocks and cycles > +options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed > + Should be trivial to reproduce. Thank you! --HPS