From: Chuck Ebbert <cebbert@redhat.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg KH <greg@kroah.com>, Pete Zaitcev <zaitcev@redhat.com>,
linux-usb-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, Matthew Wilcox <matthew@wil.cx>
Subject: Re: Oops in make_class_name in 2.6.22.1 on Fedora
Date: Mon, 22 Oct 2007 18:06:46 -0400 [thread overview]
Message-ID: <471D1EF6.6030503@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0709111106140.3852-100000@iolanthe.rowland.org>
On 09/11/2007 11:11 AM, Alan Stern wrote:
>>>
>>> I do not seem to be able to find an answer, sorry.
>>> Do you happen to remember if this was fixed after 2.6.22.1:
>>>
>>> localhost kernel: EIP is at make_class_name+0x27/0x7a
>>> localhost kernel: [<c05586f1>] class_device_del+0x97/0x119
>>> localhost kernel: [<c055877b>] class_device_unregister+0x8/0x10
>>> localhost kernel: [<e08735f4>] __scsi_remove_device+0x1d/0x60 [scsi_mod]
>>> localhost kernel: [<e08711ae>] scsi_forget_host+0x2d/0x4a [scsi_mod]
>>> localhost kernel: [<e086c49c>] scsi_remove_host+0x65/0xd5 [scsi_mod]
>>> localhost kernel: [<e0e76775>] storage_disconnect+0xe/0x16 [usb_storage]
>>> localhost kernel: [<c056f8b8>] usb_unbind_interface+0x44/0x85
>>> localhost kernel: [<c0557df7>] __device_release_driver+0x6e/0x8b
>>>
>>> Obviously a known bug but all I see is users reporting it. In my case
>>> it's this:
>>> https://bugzilla.redhat.com/show_bug.cgi?id=253424
>>> I saw Alan giving it a try here:
>>> http://lkml.org/lkml/2007/7/12/259
>> I think this was a scsi problem that has been fixed, but don't really
>> remember the exact commit.
>
> Yes. There are some bugs in the SCSI async-scanning code, and there is
> a patch to fix them:
>
> http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=a93a091df8232fad60867d41fbc3be855a0b78f2
>
> It is scheduled for 2.6.24. For now, people can work around the bug by
> disabling CONFIG_SCSI_SCAN_ASYNC.
>
The bug still happens with that patch applied and CONFIG_SCSI_SCAN_ASYNC
enabled. In the marked line, class_dev->class->name is NULL and this causes
the oops in make_class_name().
static void remove_deprecated_class_device_links(struct class_device *class_dev)
{
char *class_name;
if (!class_dev->dev)
return;
===>> class_name = make_class_name(class_dev->class->name, &class_dev->kobj);
if (class_name)
sysfs_remove_link(&class_dev->dev->kobj, class_name);
kfree(class_name);
}
next prev parent reply other threads:[~2007-10-22 22:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 3:26 Oops in make_class_name in 2.6.22.1 on Fedora Pete Zaitcev
2007-09-11 6:12 ` Greg KH
2007-09-11 9:17 ` Cornelia Huck
2007-09-11 15:11 ` Alan Stern
2007-10-22 22:06 ` Chuck Ebbert [this message]
2007-10-30 16:50 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=471D1EF6.6030503@redhat.com \
--to=cebbert@redhat.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=matthew@wil.cx \
--cc=stern@rowland.harvard.edu \
--cc=zaitcev@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.