From: Andrew Morton <akpm@osdl.org>
To: Greg KH <greg@kroah.com>
Cc: stoffel@lucent.com, linux-kernel@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net
Subject: Re: 2.6.0-test4-mm4 - USD disconnect oops
Date: Tue, 2 Sep 2003 18:13:36 -0700 [thread overview]
Message-ID: <20030902181336.5dfe624f.akpm@osdl.org> (raw)
In-Reply-To: <20030903000448.GA21173@kroah.com>
Greg KH <greg@kroah.com> wrote:
>
> On Tue, Sep 02, 2003 at 07:59:36PM -0400, John Stoffel wrote:
> > >>>>> "Greg" == Greg KH <greg@kroah.com> writes:
> >
> > >> Here's the backtrace, my .config is at the end. It's a PIII Xeon 2 x
> > >> 550mhz, Dell Precision 610 motherboard/system, 768mb of RAM. The only
> > >> USB devices are the controllers and the CompactFlash reader, which
> > >> works great under 2.4.
> >
> > Greg> Does this happen on 2.6.0-test4? (no -mm).
> >
> > Well, I can now use the usb-storage device under 2.6.0-test4 without
> > any problems, but I just did a quick test. So there's something in
> > -mm4 which is messing me and usb in general up. I've made the
> > following changes though, so I should go back and check:
> >
> > - upgrade to module-init-tools-0.9.13
> > - upgrade to hotplug-2003_08_05-1
> > hotplug-base-2003_08_05-1
> >
> > I'll see if I can figure out what changed in the -mm4 patch to cause
> > this problem. Could it be the kobject patch Akpm posted? It looks
> > like the oops I've gotten.
>
> Try adding that patch and see if it helps. It sure can't hurt as it
> fixes a real bug in the -mm tree :)
>
Yes. It's the same oops.
diff -puN lib/kobject.c~kobject-unlimited-name-lengths-use-after-free-fix lib/kobject.c
--- 25/lib/kobject.c~kobject-unlimited-name-lengths-use-after-free-fix Tue Sep 2 14:43:47 2003
+++ 25-akpm/lib/kobject.c Tue Sep 2 14:43:47 2003
@@ -445,13 +445,13 @@ void kobject_cleanup(struct kobject * ko
struct kset * s = kobj->kset;
pr_debug("kobject %s: cleaning up\n",kobject_name(kobj));
+ if (kobj->k_name != kobj->name)
+ kfree(kobj->k_name);
+ kobj->k_name = NULL;
if (t && t->release)
t->release(kobj);
if (s)
kset_put(s);
- if (kobj->k_name != kobj->name)
- kfree(kobj->k_name);
- kobj->k_name = NULL;
}
/**
_
next prev parent reply other threads:[~2003-09-03 1:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-01 2:25 John Stoffel
2003-09-01 6:59 ` Greg KH
2003-09-02 23:59 ` John Stoffel
2003-09-03 0:04 ` Greg KH
2003-09-03 1:13 ` Andrew Morton [this message]
2003-09-03 2:25 ` John Stoffel
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=20030902181336.5dfe624f.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=stoffel@lucent.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®