From owner-freebsd-usb@FreeBSD.ORG Wed Jun 20 07:19:32 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0505016A400 for ; Wed, 20 Jun 2007 07:19:32 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 9D06E13C45D for ; Wed, 20 Jun 2007 07:19:31 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l5K7GVPr025803; Wed, 20 Jun 2007 01:16:31 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 20 Jun 2007 01:17:04 -0600 (MDT) Message-Id: <20070620.011704.-494097370.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200706200857.25030.hselasky@c2i.net> References: <46790374.8040903@yandex.ru> <200706200857.25030.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 20 Jun 2007 01:16:31 -0600 (MDT) Cc: cvs-src@yandex.ru, freebsd-usb@freebsd.org Subject: Re: Panic on post-freeze current with ucom X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 07:19:32 -0000 In message: <200706200857.25030.hselasky@c2i.net> Hans Petter Selasky writes: : On Wednesday 20 June 2007 12:37, R.Mahmatkhanov wrote: : > Good Day. : > : : Hi, : : The parsing of the USB descriptors in general is not very fault tolerant in : the old USB stack. Probably there is a missing range or NULL check somewhere. This most likely is a careless mistake I made in the general cleanups I did recently... However if it isn't... : Unfortunately my new USB stack does not yet compile on the latest 7-current. : Else you should try that, and if that fixes the problem, the people still : maintaining the old USB stack should backport the parsing routines for the : USB descriptors. That sounds like a reasonable change to bite off. Can you suggest the set of routines that would work best to try to back port? Warner : --HPS : : > I just move to latest -current/i386 after the code freeze. And i catch : > 100% reproduceble panic condition. It happens when i plug my mobile : > phone to USB port. How it does: : > : > ucom0: 1.10/0.00, addr 2> on uhub1 : > Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 : > fault virtual address = 0x4 : > fault code = supervisor read, page not present : > instruction pointer = 0x20: 0xc06ca396 : > stack pointer = 0x28: 0xdd30a760 : > frame pointer = 0x28: 0xdd30a760 : > code segment = base 0x0, limit 0xfffff, type = 0x1b, DPL 0, pres 1, : > = def32 1, gran 1 : > processor eflags = interrupt enabled, resume; IOPL = 0 : > current process = 28 (usb1) : > [thread pid 28 tid 100023] : > Stopped at usb_get_interface_descruptor+0x6: movl 0x4(%eax), %eax : > db> : > : _______________________________________________ : freebsd-usb@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-usb : To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" : :