From owner-freebsd-usb@FreeBSD.ORG Wed Jun 20 07:11: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 E8F0316A400 for ; Wed, 20 Jun 2007 07:11:32 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from webmail11.yandex.ru (webmail11.yandex.ru [213.180.200.52]) by mx1.freebsd.org (Postfix) with ESMTP id A74B213C448 for ; Wed, 20 Jun 2007 07:11:32 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from YAMAIL (webmail11.yandex.ru) by mail.yandex.ru id ; Wed, 20 Jun 2007 11:11:26 +0400 Received: from [195.151.56.249] ([195.151.56.249]) by mail.yandex.ru with HTTP; Wed, 20 Jun 2007 11:11:25 +0400 (MSD) Date: Wed, 20 Jun 2007 11:11:25 +0400 (MSD) From: "R.Mahmatkhanov" Sender: cvs-src@yandex.ru Message-Id: <4678D31D.000001.03344@webmail11.yandex.ru> MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] Errors-To: cvs-src@yandex.ru To: freebsd-usb@freebsd.org X-MsgDayCount: 3 X-BornDate: 1169586000 X-Source-Ip: 195.151.56.249 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Fw: Re: Panic on post-freeze current with ucom X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cvs-src@yandex.ru 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:11:33 -0000 --- Forwarded message -- From: R.Mahmatkhanov To: Date: 20.06.07 11:09 Subject: Re: Panic on post-freeze current with ucom >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. Yes, but i forgot to mention that it working like a charm in RELENG_6. In fact i believe that this problem is appeared rigth after recent usb-subsystem cleansing. > >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. Thanks, i will try. > >--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> >> --- End of forwarded message --