From: Greg KH <greg@kroah.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Ingo Molnar <mingo@elte.hu>,
diffie@gmail.com, linux-kernel@vger.kernel.org,
diffie@blazebox.homeip.net
Subject: Re: 2.6.10-rc1-mm3
Date: Mon, 8 Nov 2004 14:42:59 -0800 [thread overview]
Message-ID: <20041108224259.GA14506@kroah.com> (raw)
In-Reply-To: <20041107234225.02c2f9b6.akpm@osdl.org>
On Sun, Nov 07, 2004 at 11:42:25PM -0800, Andrew Morton wrote:
> Ingo Molnar <mingo@elte.hu> wrote:
> >
> > > Weird. Can you send me the .config?
> >
> > reproducible here too with Paul's .config.
>
> Me too. The problem starts out at tty_register_driver():
>
> if ( !(driver->flags & TTY_DRIVER_NO_DEVFS) ) {
> for(i = 0; i < driver->num; i++)
> tty_register_device(driver, i, NULL);
>
> That NULL for the struct device* propagates all the way down to
> class_hotplug_name() and bang. This bug is present in Linus's tree.
>
>
> 0xc026d8ce in class_hotplug_name (kset=0xc03ccf80, kobj=0xc17b3614) at drivers/base/class.c:278
> 278 return class_dev->class->name;
> (gdb) bt
> #0 0xc026d8ce in class_hotplug_name (kset=0xc03ccf80, kobj=0xc17b3614) at drivers/base/class.c:278
> #1 0xc02164eb in kobject_hotplug (kobj=0xc17b3614, action=0) at lib/kobject_uevent.c:243
> #2 0xc0215f3a in kobject_add (kobj=0xc17b3614) at lib/kobject.c:188
> #3 0xc026db46 in class_device_add (class_dev=0xc17b360c) at drivers/base/class.c:401
> #4 0xc026dc0d in class_device_register (class_dev=0xc17b360c) at drivers/base/class.c:427
> #5 0xc026e09f in class_simple_device_add (cs=0xcffa3d80, dev=0, device=0x0, fmt=0x0)
> at drivers/base/class_simple.c:153
> #6 0xc0254b8d in tty_register_device (driver=0xc1781c00, index=0, device=0x0) at drivers/char/tty_io.c:2708
> #7 0xc0254ed0 in tty_register_driver (driver=0xc1781c00) at drivers/char/tty_io.c:2845
> #8 0xc0577a1b in legacy_pty_init () at drivers/char/pty.c:299
> #9 0xc0577be9 in pty_init () at drivers/char/pty.c:406
> #10 0xc05647da in do_initcalls () at init/main.c:625
> #11 0xc056484e in do_basic_setup () at init/main.c:668
> #12 0xc0100410 in init (unused=0x80) at init/main.c:736
> #13 0xc0104255 in kernel_thread_helper () at arch/i386/kernel/process.c:293
>
> I assume that tty_register_driver is at fault, but will call in Greg for
> adjudication.
No, tty_register_driver() can give NULL as a device associated with the
tty device, that's legal.
And calling class_simple_device_add() with NULL as a device is legal.
And setting the class_dev.dev to NULL in class_simple_device_add() is
legal.
And the associated with a struct device has nothing to do with the
class_dev->class->name field.
None of this code has changed recently.
So I don't see how that could be failing here. And why I don't see this
on my boxes...
thanks,
greg k-h
next prev parent reply other threads:[~2004-11-08 22:44 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-06 19:04 2.6.10-rc1-mm3 Paul Blazejowski
2004-11-07 10:48 ` 2.6.10-rc1-mm3 Andrew Morton
2004-11-07 17:24 ` 2.6.10-rc1-mm3 Paul Blazejowski
2004-11-08 7:59 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-08 7:42 ` 2.6.10-rc1-mm3 Andrew Morton
2004-11-08 22:42 ` Greg KH [this message]
2004-11-09 5:27 ` 2.6.10-rc1-mm3 Andrew Morton
2004-11-09 7:14 ` 2.6.10-rc1-mm3 Greg KH
2004-11-09 8:05 ` 2.6.10-rc1-mm3 Greg KH
2004-11-09 8:15 ` 2.6.10-rc1-mm3 Andrew Morton
2004-11-09 8:27 ` 2.6.10-rc1-mm3 Greg KH
2004-11-09 12:11 ` 2.6.10-rc1-mm3 Tejun Heo
2004-11-09 7:53 ` 2.6.10-rc1-mm3 Olivier Poitrey
2004-11-09 8:22 ` 2.6.10-rc1-mm3 Arjan van de Ven
2004-11-09 9:25 ` 2.6.10-rc1-mm3 Olivier Poitrey
2004-11-09 10:37 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-09 9:39 ` 2.6.10-rc1-mm3 Andrew Morton
2004-11-09 10:44 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-09 10:33 ` 2.6.10-rc1-mm3 Andries Brouwer
2004-11-11 1:52 ` 2.6.10-rc1-mm3 H. Peter Anvin
2004-11-09 18:24 ` 2.6.10-rc1-mm3 Paul Blazejowski
-- strict thread matches above, loose matches on Subject: below --
2004-11-08 12:34 2.6.10-rc1-mm3 Karsten Wiese
2004-11-08 21:40 ` 2.6.10-rc1-mm3 Karsten Wiese
2004-11-08 22:25 ` 2.6.10-rc1-mm3 linux-os
2004-11-08 23:30 ` 2.6.10-rc1-mm3 Chris Wright
[not found] <20041105001328.3ba97e08.akpm@osdl.org.suse.lists.linux.kernel>
[not found] ` <418B5C70.7090206@kolivas.org.suse.lists.linux.kernel>
2004-11-05 11:53 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 12:16 ` 2.6.10-rc1-mm3 Con Kolivas
2004-11-05 12:23 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 8:13 2.6.10-rc1-mm3 Andrew Morton
2004-11-05 9:41 ` 2.6.10-rc1-mm3 Lorenzo Allegrucci
2004-11-05 10:17 ` 2.6.10-rc1-mm3 Andrew Morton
2004-11-05 10:48 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 12:36 ` 2.6.10-rc1-mm3 Lorenzo Allegrucci
2004-11-05 10:22 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-05 10:38 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 11:09 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-05 11:17 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 11:24 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-05 11:43 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 12:15 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-05 12:22 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 12:57 ` 2.6.10-rc1-mm3 Rafael J. Wysocki
2004-11-05 13:02 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 17:47 ` 2.6.10-rc1-mm3 Rafael J. Wysocki
2004-11-05 11:20 ` 2.6.10-rc1-mm3 Russell King
2004-11-05 11:30 ` 2.6.10-rc1-mm3 Andi Kleen
2004-11-05 10:17 ` 2.6.10-rc1-mm3 Ingo Molnar
2004-11-05 15:54 ` 2.6.10-rc1-mm3 Michael Baehr
2004-11-05 10:56 ` 2.6.10-rc1-mm3 Con Kolivas
2004-11-05 18:07 ` 2.6.10-rc1-mm3 Rafael J. Wysocki
2004-11-05 18:07 ` 2.6.10-rc1-mm3 Adam Heath
2004-11-06 7:16 ` 2.6.10-rc1-mm3 Pasi Savolainen
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=20041108224259.GA14506@kroah.com \
--to=greg@kroah.com \
--cc=akpm@osdl.org \
--cc=diffie@blazebox.homeip.net \
--cc=diffie@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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.