From owner-freebsd-stable@FreeBSD.ORG Thu Mar 6 21:27:40 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 E333EF9 for ; Thu, 6 Mar 2014 21:27:40 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BAB2BD5C for ; Thu, 6 Mar 2014 21:27:40 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 967AAB94B; Thu, 6 Mar 2014 16:27:39 -0500 (EST) From: John Baldwin To: freebsd-stable@freebsd.org Subject: Re: Fwd: KASSERT in vm_map.c Date: Thu, 6 Mar 2014 16:24:52 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <530EFC76.9010302@bitfrost.no> <53181EC1.90103@bitfrost.no> In-Reply-To: <53181EC1.90103@bitfrost.no> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201403061624.52580.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 06 Mar 2014 16:27:39 -0500 (EST) Cc: Hans Petter Selasky 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 21:27:40 -0000 On Thursday, March 06, 2014 2:07:45 am Hans Petter Selasky wrote: > 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. The KASSERT is correct. Can you provide more details from your panic? (Do you have a crash dump?) It sounds like two threads are mucking with the same vm_map_entry at the same time. -- John Baldwin