From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964955AbXAJRAu (ORCPT ); Wed, 10 Jan 2007 12:00:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964957AbXAJRAu (ORCPT ); Wed, 10 Jan 2007 12:00:50 -0500 Received: from smtp-out001.kontent.com ([81.88.40.215]:36874 "EHLO smtp-out.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964955AbXAJRAu (ORCPT ); Wed, 10 Jan 2007 12:00:50 -0500 From: Oliver Neukum To: linux-usb-devel@lists.sourceforge.net Subject: Re: [linux-usb-devel] 2.6.20-rc4: null pointer deref in khubd Date: Wed, 10 Jan 2007 18:01:04 +0100 User-Agent: KMail/1.8 Cc: Alan Stern , Andrew Morton , Greg KH , Pavel Machek , kernel list References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701101801.04525.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 10. Januar 2007 17:14 schrieb Alan Stern: > On Wed, 10 Jan 2007, Oliver Neukum wrote: > > > Am Mittwoch, 10. Januar 2007 11:49 schrieb Pavel Machek: > > > usb 2-1: new full speed USB device using uhci_hcd and address 68 > > > usb 2-1: USB disconnect, address 68 > > > usb 2-1: unable to read config index 0 descriptor/start > > > usb 2-1: chopping to 0 config(s) > > > > Does anybody know a legitimate reasons a device should have > > 0 configurations? Independent of the reason of this bug, should we disallow > > such devices and error out? > > About the only reason to allow such devices is so that the user can run > lsusb to try and get more information about the problem. With no > configurations, the device won't be useful for anything. Regarding the bug this device uncovers, it seems to me that this in drivers/base/core.c if (parent) klist_add_tail(&dev->knode_parent, &parent->klist_children); should make knode_parent a valid node under all circumstances. Hm. Regards Oliver