Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264844AbUDWPbh (ORCPT ); Fri, 23 Apr 2004 11:31:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264841AbUDWPbh (ORCPT ); Fri, 23 Apr 2004 11:31:37 -0400 Received: from mail.kroah.org ([65.200.24.183]:51636 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S264844AbUDWPbe (ORCPT ); Fri, 23 Apr 2004 11:31:34 -0400 Date: Fri, 23 Apr 2004 08:31:11 -0700 From: Greg KH To: Dmitry Torokhov Cc: Marcel Holtmann , Andrew Morton , linux-kernel@vger.kernel.org, Simon Kelley Subject: Re: [OOPS/HACK] atmel_cs and the latest changes in sysfs/symlink.c Message-ID: <20040423153111.GB12126@kroah.com> References: <200404230142.46792.dtor_core@ameritech.net> <1082723147.1843.14.camel@merlin> <200404230802.42293.dtor_core@ameritech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404230802.42293.dtor_core@ameritech.net> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2338 Lines: 53 On Fri, Apr 23, 2004 at 08:02:40AM -0500, Dmitry Torokhov wrote: > On Friday 23 April 2004 07:25 am, Marcel Holtmann wrote: > > Hi Dmitry, > > > > > The latest change in sysfs/symlink (conversion to use kobject_name instead > > > of name fiedld directly) broke atmel_cs driver: > > > > > > Apr 23 00:30:10 core kernel: Oops: 0000 [#1] > > > Apr 23 00:30:10 core kernel: PREEMPT > > > Apr 23 00:30:10 core kernel: CPU: 0 > > > Apr 23 00:30:10 core kernel: EIP: 0060:[] Not tainted > > > Apr 23 00:30:10 core kernel: EFLAGS: 00010246 (2.6.6-rc2) > > > Apr 23 00:30:10 core kernel: EIP is at object_path_length+0x19/0x30 > > > > Apr 23 00:30:10 core kernel: Call Trace: > > > Apr 23 00:30:10 core kernel: [] sysfs_create_link+0x29/0x140 > > > Apr 23 00:30:10 core kernel: [] kobject_hotplug+0x58/0x60 > > > Apr 23 00:30:10 core kernel: [] class_device_dev_link+0x30/0x40 > > > > > > > Below is the "fix" that helps avoid oopsing, and should be removed when > > > atmel_cs driver properly registers atmel_device. > > > > I haven't tested it yet, but the same problem should apply to the > > bt3c_cs driver for the 3Com Bluetooth card. Are there any patches > > available that integrates the PCMCIA subsystem into the driver model, so > > we don't have to hack around it if a firmware download is needed? > > > I do not know. But the problem seems to be somewhat widespread - I just got > oops with the following trace: > > [] sysfs_create_link+0x29/0x140 > [] kobject_hotplug+0x58/0x60 > [] class_device_dev_link+0x30/0x40 > [] class_device_add+0xed/0x130 > [] usb_register_dev+0x12b/0x170 [usbcore] > [] hiddev_connect+0x7a/0x120 [usbhid] > > I think we should not oops, just complain loudly, when we come across a > kobject which has never beek kobject_add()ed, like in patch below. No, we need to oops, as that's a real bug. Can you post the whole oops that was generated with this usb problem? I can't seem to duplicate this here. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/