All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Dave Young <hidave.darkstar@gmail.com>
Cc: Jiri Kosina <jikos@jikos.cz>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.24-rc2-mm1
Date: Thu, 15 Nov 2007 16:49:47 -0800	[thread overview]
Message-ID: <20071116004947.GA24887@kroah.com> (raw)
In-Reply-To: <a8e1da0711151639q4be735d2kc8af9d2b5584d1ee@mail.gmail.com>

On Fri, Nov 16, 2007 at 08:39:12AM +0800, Dave Young wrote:
> On Nov 16, 2007 3:23 AM, Greg KH <greg@kroah.com> wrote:
> >
> > On Wed, Nov 14, 2007 at 10:19:48AM -0800, Greg KH wrote:
> > > On Wed, Nov 14, 2007 at 06:02:07PM +0100, Jiri Kosina wrote:
> > > > On Wed, 14 Nov 2007, Jiri Kosina wrote:
> > > >
> > > > > > I'd suspect the driver tree.  I think I'll need to do a quick -mm2
> > > > > > without that tree present.
> > > > > I am just verifying whether reverting kset changes fixes this, will let
> > > > > you know soon.
> > > >
> > > > OK, so I reverted
> > > > gregkh-driver-kset-convert-block_subsys-to-use-kset_create (which made me
> > > > also revert gregkh-driver-kobject-remove-subsystem_register-functions and
> > > > gregkh-driver-kset-remove-decl_subsys-macro so that we compile). Both the
> > > > error message from lockdep and more importantly the spinlock lockup have
> > > > gone, and the system with these patches reverted boots for me fine.
> > > >
> > > > Well not that fine, I still see (which is the same backtrace that caused
> > > > the lockup with plain -rc2-mm1, but doesn't make the machine hang):
> > > >
> > > > floppy0: Floppy io-port 0x03f2 in use
> > > > WARNING: at lib/kref.c:33 kref_get()
> > > >
> > > > Call Trace:
> > > >  [<ffffffff8035bd43>] kobject_add+0x9b/0x197
> > > >  [<ffffffff8035c6e1>] kref_get+0x2f/0x36
> > > >  [<ffffffff8035b82f>] kobject_get+0x12/0x17
> > > >  [<ffffffff8035bd55>] kobject_add+0xad/0x197
> > > >  [<ffffffff802c9a36>] register_disk+0x48/0x205
> > > >  [<ffffffff80355cf3>] add_disk+0x34/0x3d
> > > >  [<ffffffff8083cd99>] rd_init+0x172/0x1e1
> > > >  [<ffffffff8082063a>] kernel_init+0x175/0x2e6
> > > >  [<ffffffff8025193c>] trace_hardirqs_on+0x115/0x139
> > > >  [<ffffffff80598769>] trace_hardirqs_on_thunk+0x35/0x3a
> > > >  [<ffffffff8025193c>] trace_hardirqs_on+0x115/0x139
> > > >  [<ffffffff8020c628>] child_rip+0xa/0x12
> > > >  [<ffffffff8020bd3f>] restore_args+0x0/0x30
> > > >  [<ffffffff808204c5>] kernel_init+0x0/0x2e6
> > > >  [<ffffffff8020c61e>] child_rip+0x0/0x12
> > >
> > > someone is trying to call kref_get on a kobject that has not been
> > > initialized yet, which could be the reason the newer patches break
> > > something, as the pointers are not set up properly with a call to
> > > kobject_init() first.
> > >
> > > But, alloc_disk() should have been called on this gendisk for it to work
> > > properly at all, unless something is trashing that structure?
> > >
> > > I'm way confused...
> >
> > This patch, as found by Dave Young, should fix the issue:
> >
> > I'll roll it into my larger patchset so that Andrew will get it
> > automatically next release, but here it is for people to use now.
> >
> > thanks,
> >
> > greg k-h
> >
> > --------------
> >
> > From: Greg Kroah-Hartman <gregkh@suse.de>
> > Subject: fix bug with adding new block devices in -mm
> >
> > need to set the kset before initializing the kobject.
> >
> >
> > ---
> >  block/genhd.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- a/block/genhd.c
> > +++ b/block/genhd.c
> > @@ -718,9 +718,9 @@ struct gendisk *alloc_disk_node(int mino
> >                         }
> >                 }
> >                 disk->minors = minors;
> > -               kobject_init(&disk->kobj);
> >                 disk->kobj.kset = block_kset;
> >                 disk->kobj.ktype = &ktype_block;
> > +               kobject_init(&disk->kobj);
> >                 rand_initialize_disk(disk);
> >                 INIT_WORK(&disk->async_notify,
> >                         media_change_notify_thread);
> >
> > -
> Hi,
> Could you please add signed-off by me?
> 
> Signed-off-by: Dave Young <hidave.darkstar@gmail.com>

Sure, but I've modified the original patch to not include this bug in
the first place, so there's really not much to sign off on there, sorry.

I will add your name as helping out with it, if that's ok.

thanks,

greg k-h

  reply	other threads:[~2007-11-16  0:54 UTC|newest]

Thread overview: 190+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14  1:59 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  3:12 ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  3:49   ` 2.6.24-rc2-mm1 Greg KH
2007-11-14  4:39     ` 2.6.24-rc2-mm1 Matthew Dharm
2007-11-14  5:33       ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  8:23         ` 2.6.24-rc2-mm1 Matthew Dharm
2007-11-14  9:23           ` 2.6.24-rc2-mm1 Gabriel C
2007-11-15 17:15             ` 2.6.24-rc2-mm1 Matthew Dharm
2007-11-15 18:14               ` 2.6.24-rc2-mm1 Boaz Harrosh
2007-11-15 21:42                 ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  4:18   ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14 20:29     ` 2.6.24-rc2-mm1 mark gross
2007-11-14 20:40       ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-15 17:22         ` 2.6.24-rc2-mm1 mark gross
2007-11-15 20:05           ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-15 17:23         ` 2.6.24-rc2-mm1 mark gross
2007-11-15 19:19         ` 2.6.24-rc2-mm1 mark gross
2007-11-15 21:40           ` 2.6.24-rc2-mm1 Gabriel C
2007-11-15 22:56           ` 2.6.24-rc2-mm1 mark gross
2007-11-15 23:01           ` [PATCH] pm-qos-remove-locks-around-blocking-notifier.patch ... was 2.6.24-rc2-mm1 mark gross
2007-11-14  3:40 ` [PATCH] Fix build failure when CONFIG_INFINIBAND_IPOIB_CM is not defined Tony Breeds
2007-11-15 14:49   ` Mel Gorman
2007-11-14  3:41 ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  4:55   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  5:10     ` 2.6.24-rc2-mm1 Ulrich Drepper
2007-11-14  5:27     ` 2.6.24-rc2-mm1 Gabriel C
2007-11-14  5:45     ` 2.6.24-rc2-mm1 Zan Lynx
2007-11-14  6:18 ` 2.6.24-rc2-mm1 Dave Young
2007-11-14  6:38   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  6:47     ` 2.6.24-rc2-mm1 Dave Young
2007-11-14  8:41       ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  9:32         ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14  9:36         ` 2.6.24-rc2-mm1 Dave Young
2007-11-14 16:59           ` 2.6.24-rc2-mm1 Greg KH
2007-11-14 18:38             ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-14 19:19               ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 21:27                 ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15  1:01                   ` 2.6.24-rc2-mm1 Dave Young
2007-11-15  2:38                     ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15  3:11                       ` 2.6.24-rc2-mm1 Dave Young
2007-11-15  8:14                       ` 2.6.24-rc2-mm1 Dave Young
2007-11-15  8:51                         ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15 17:06                         ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 17:16                           ` 2.6.24-rc2-mm1 Kay Sievers
2007-11-15 18:59                             ` 2.6.24-rc2-mm1 Greg KH
2007-11-14  6:32 ` [PATCH] [2.6.24-rc2-mm1] Fix dependencies for FSL_DMA Olof Johansson
2007-11-14  8:56 ` 2.6.24-rc2-mm1 -- mkfs failing on variety of fs types Andy Whitcroft
2007-11-14 10:28   ` Andrew Morton
2007-11-14 10:46     ` Dmitry Monakhov
2007-11-14 14:40 ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 14:59   ` 2.6.24-rc2-mm1 Matthias Urlichs
2007-11-14 15:04     ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 15:43       ` 2.6.24-rc2-mm1 Matthias Urlichs
2007-11-14 15:49         ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 16:29 ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 16:39   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14 16:40     ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 17:02       ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 17:38         ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-14 18:19         ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 19:23           ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 21:41             ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-15 21:53               ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-15 22:04                 ` 2.6.24-rc2-mm1 Jiri Kosina
2007-11-16  0:39             ` 2.6.24-rc2-mm1 Dave Young
2007-11-16  0:49               ` Greg KH [this message]
2007-11-16  0:55                 ` 2.6.24-rc2-mm1 Dave Young
2007-11-14 19:16 ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-14 20:29   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-14 20:55     ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-14 22:48     ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-15 17:36       ` 2.6.24-rc2-mm1 Jan Blunck
2007-11-15 18:36         ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-15 21:24         ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-15 21:34           ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-16  5:29             ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-16 14:03           ` 2.6.24-rc2-mm1 Jan Blunck
2007-11-16 20:11             ` 2.6.24-rc2-mm1 Torsten Kaiser
2007-11-14 20:24 ` broken suspend [Was: 2.6.24-rc2-mm1] Jiri Slaby
2007-11-14 20:36   ` Andrew Morton
2007-11-14 21:48   ` Rafael J. Wysocki
2007-11-15 23:59     ` Jiri Slaby
2007-11-15 23:59     ` Jiri Slaby
2007-11-16  0:38       ` Greg KH
2007-11-16 16:10         ` Alan Stern
2007-11-17 15:08           ` Jiri Slaby
2007-11-17 15:12             ` Jiri Slaby
2007-11-17 15:12             ` Jiri Slaby
2007-11-17 16:13             ` Alan Stern
2007-11-17 16:13             ` Alan Stern
2007-11-17 20:37             ` Rafael J. Wysocki
2007-11-17 21:58               ` Alan Stern
2007-11-18 12:42                 ` Jiri Slaby
2007-11-18 12:42                 ` Jiri Slaby
2007-11-18 13:06                   ` Jiri Slaby
2007-11-18 13:42                     ` Rafael J. Wysocki
2007-11-18 13:42                     ` Rafael J. Wysocki
2007-11-18 13:53                       ` Jiri Slaby
2007-11-18 13:53                       ` Jiri Slaby
2007-11-18 15:03                         ` Rafael J. Wysocki
2007-11-18 14:49                           ` Jiri Slaby
2007-11-18 15:23                             ` Rafał J. Wysocki
2007-11-18 15:15                               ` Jiri Slaby
2007-11-18 15:15                               ` Jiri Slaby
2007-11-18 17:07                                 ` Alan Stern
2007-11-18 17:07                                 ` Alan Stern
2007-11-18 19:09                                   ` Jiri Slaby
2007-11-18 19:09                                     ` Jiri Slaby
2007-11-18 22:27                                     ` Jiri Slaby
2007-11-18 22:27                                       ` Jiri Slaby
2007-11-18 22:27                                       ` [lm-sensors] " Jiri Slaby
2007-11-19  3:04                                       ` Alan Stern
2007-11-19  3:04                                         ` Alan Stern
2007-11-19 20:01                                         ` [lm-sensors] " Rudolf Marek
2007-11-19 20:01                                           ` Rudolf Marek
2007-11-19 20:27                                           ` Alan Stern
2007-11-19 21:53                                           ` [lm-sensors] " Rafael J. Wysocki
2007-11-19 21:53                                             ` Rafael J. Wysocki
2007-11-19 21:53                                           ` Rafael J. Wysocki
2007-11-19 20:01                                         ` Rudolf Marek
2007-11-19  3:04                                       ` Alan Stern
2007-11-19 20:27                                       ` [lm-sensors] " Alan Stern
2007-11-19 20:27                                         ` Alan Stern
2007-11-20 13:15                                         ` [lm-sensors] " Mark M. Hoffman
2007-11-20 13:15                                         ` Mark M. Hoffman
2007-11-20 13:15                                           ` Mark M. Hoffman
2007-11-20 23:46                                           ` Rafael J. Wysocki
2007-11-21  0:00                                             ` Rafael J. Wysocki
2007-11-21 15:54                                             ` Alan Stern
2007-11-26  8:57                                             ` Jiri Slaby
2007-11-26  8:57                                               ` Jiri Slaby
2007-11-26  8:57                                             ` Jiri Slaby
2007-11-21  0:00                                           ` Rafael J. Wysocki
2007-11-21 15:54                                       ` Alan Stern
2007-11-21 15:54                                         ` Alan Stern
2007-11-21 19:19                                         ` Rafael J. Wysocki
2007-11-21 19:19                                         ` Rafael J. Wysocki
2007-11-21 19:19                                           ` Rafael J. Wysocki
2007-11-18 22:27                                     ` Rafael J. Wysocki
2007-11-18 22:27                                     ` Rafael J. Wysocki
2007-11-18 22:12                                       ` Jiri Slaby
2007-11-18 22:42                                         ` Rafael J. Wysocki
2007-11-18 22:42                                         ` Rafael J. Wysocki
2007-11-18 22:12                                       ` Jiri Slaby
2007-11-18 15:23                             ` Rafał J. Wysocki
2007-11-18 14:49                           ` Jiri Slaby
2007-11-18 15:03                         ` Rafael J. Wysocki
2007-11-18 13:06                   ` Jiri Slaby
2007-11-17 21:58               ` Alan Stern
2007-11-17 20:37             ` Rafael J. Wysocki
2007-11-17 15:08           ` Jiri Slaby
2007-11-16 16:10         ` Alan Stern
2007-11-16  0:38       ` Greg KH
2007-11-15  4:29 ` 2.6.24-rc2-mm1 (memory hotplug x86_64/vmemmap fix) KAMEZAWA Hiroyuki
2007-11-15  5:39   ` Kamalesh Babulal
2007-11-15  8:56   ` Andrew Morton
2007-11-15  9:18     ` KAMEZAWA Hiroyuki
2007-11-15 10:30       ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [0/3] KAMEZAWA Hiroyuki
2007-11-15 10:33         ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [1/3] memory_add_physaddr_to_nid export for acpi memhotplug.ko KAMEZAWA Hiroyuki
2007-11-15 10:35         ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [2/3] fix section mismatch in vmammap_allock_block KAMEZAWA Hiroyuki
2007-11-16  0:53           ` Andrew Morton
2007-11-16  4:45             ` KAMEZAWA Hiroyuki
2007-11-15 10:36         ` [PATCH][2.6.24-rc2-mm1] memory hotplug x86_64 fix [3/3] fix section mismatch in init_memory_mapping KAMEZAWA Hiroyuki
2007-11-16  0:59           ` Andrew Morton
2007-11-16  5:09             ` KAMEZAWA Hiroyuki
2007-11-15  9:39   ` 2.6.24-rc2-mm1 (memory hotplug x86_64/vmemmap fix) Andy Whitcroft
2007-11-15 10:05     ` KAMEZAWA Hiroyuki
2007-11-15 10:02 ` 2.6.24-rc2-mm1 -- strange apparent network failures Andy Whitcroft
2007-11-16  0:28   ` Kevin Winchester
2007-11-16  0:44     ` Andrew Morton
2007-11-16  1:01       ` Kevin Winchester
2007-11-16  1:09         ` Andrew Morton
2007-11-17  5:16       ` Andrew Morgan
2007-11-17 12:48         ` Kevin Winchester
2007-11-17 23:52           ` Andrew Morgan
2007-11-18  0:50             ` Kevin Winchester
2007-11-18  1:17               ` Kevin Winchester
2007-11-18  1:57               ` Andrew Morgan
2007-11-18  1:23             ` Kevin Winchester
2007-11-17 13:57         ` Andy Whitcroft
2007-11-16  1:21     ` Tom
2007-11-15 10:50 ` 2.6.24-rc2-mm1 -- QLogics ISP1020 gone missing Andy Whitcroft
2007-11-15 19:25 ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 20:47   ` 2.6.24-rc2-mm1 Andrew Morton
2007-11-16  0:01     ` 2.6.24-rc2-mm1 Greg KH
2007-11-15 22:25 ` 2.6.24-rc2-mm1: undefined reference to `local_apic_timer_c2_ok' Mariusz Kozlowski
2007-11-15 22:49   ` Len Brown
2007-11-15 23:35     ` Mariusz Kozlowski
2007-11-15 22:34 ` [parisc-linux] [PATCH] parisc: balance parenthesis in pte_free_kernel() Mariusz Kozlowski
2007-11-15 22:34 ` Mariusz Kozlowski

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=20071116004947.GA24887@kroah.com \
    --to=greg@kroah.com \
    --cc=akpm@linux-foundation.org \
    --cc=hidave.darkstar@gmail.com \
    --cc=jikos@jikos.cz \
    --cc=linux-kernel@vger.kernel.org \
    /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.