Bjorn Helgaas
4fa3e78be7
Driver core: treat unregistered bus_types as having no devices
...
A bus_type has a list of devices (klist_devices), but the list and the
subsys_private structure that contains it are not initialized until the
bus_type is registered with bus_register().
The panic/reboot path has fixups that look up devices in pci_bus_type. If
we panic before registering pci_bus_type, the bus_type exists but the list
does not, so mach_reboot_fixups() trips over a null pointer and panics
again:
mach_reboot_fixups
pci_get_device
..
bus_find_device(&pci_bus_type, ...)
bus->p is NULL
Joonsoo reported a problem when panicking before PCI was initialized.
I think this patch should be sufficient to replace the patch he posted
here: https://lkml.org/lkml/2012/12/28/75 ("[PATCH] x86, reboot: skip
reboot_fixups in early boot phase")
Reported-by: Joonsoo Kim <js1304@gmail.com >
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2013-02-03 17:55:29 -08:00
..
2013-01-25 21:06:30 -08:00
2013-01-25 12:21:46 -08:00
2013-01-25 21:06:30 -08:00
2013-01-03 15:57:04 -08:00
2013-01-03 15:57:16 -08:00
2013-02-03 17:55:29 -08:00
2013-01-08 07:31:49 -08:00
2013-01-25 21:06:30 -08:00
2012-12-12 18:07:07 -08:00
2013-01-03 15:57:16 -08:00
2013-01-03 15:57:16 -08:00
2013-01-22 11:41:56 -08:00
2013-01-23 20:30:52 -08:00
2013-01-03 15:57:15 -08:00
2013-01-03 15:57:16 -08:00
2013-01-25 21:06:30 -08:00
2013-01-15 14:18:04 +01:00
2013-01-03 15:57:02 -08:00
2013-01-22 13:28:40 +01:00
2013-01-25 21:06:30 -08:00
2013-01-17 12:11:26 -08:00
2012-11-19 14:30:25 +01:00
2012-11-27 06:44:10 -08:00
2012-12-13 12:00:02 -08:00
2013-01-03 15:57:16 -08:00
2013-01-25 21:06:30 -08:00
2013-01-25 21:06:30 -08:00
2013-01-03 15:57:16 -08:00
2013-01-03 15:57:16 -08:00
2013-01-17 11:58:00 -08:00
2013-01-09 21:47:22 -08:00
2012-11-28 11:41:36 -08:00
2013-01-25 21:06:30 -08:00
2013-01-11 11:38:05 -08:00
2013-01-25 21:06:30 -08:00
2013-01-22 11:41:56 -08:00
2013-01-03 15:57:15 -08:00
2013-01-22 11:41:56 -08:00
2013-01-25 12:21:46 -08:00
2012-12-11 14:08:47 -08:00
2012-12-14 14:42:53 -08:00
2013-01-21 14:52:43 -08:00
2013-01-21 14:52:44 -08:00
2013-01-11 11:38:05 -08:00
2013-01-21 14:52:44 -08:00
2012-12-21 17:08:06 -08:00
2013-01-25 21:06:30 -08:00
2013-01-22 11:41:56 -08:00
2013-01-21 14:52:44 -08:00
2013-01-03 15:57:14 -08:00
2013-01-25 21:06:30 -08:00
2013-01-25 21:06:30 -08:00
2013-01-25 21:06:30 -08:00
2013-01-25 12:21:47 -08:00
2013-01-22 12:33:47 -08:00
2013-01-03 15:57:16 -08:00
2012-12-19 10:58:53 +00:00
2012-10-09 16:22:18 +09:00
2013-01-03 15:57:16 -08:00
2013-01-03 15:57:03 -08:00
2013-01-22 16:36:23 -08:00
2013-01-11 11:38:41 -08:00
2013-01-22 11:41:57 -08:00
2013-01-21 14:52:44 -08:00
2013-01-03 13:10:53 +01:00
2013-01-25 12:21:47 -08:00
2013-01-03 15:57:16 -08:00
2013-01-03 15:57:16 -08:00
2012-12-12 18:07:07 -08:00
2013-01-22 11:41:57 -08:00
2012-12-11 13:13:55 -08:00
2013-01-15 09:38:59 +09:00
2013-01-21 14:52:44 -08:00
2013-01-11 11:39:03 -08:00
2013-01-22 11:41:57 -08:00
2013-01-16 15:57:54 +01:00
2013-01-11 11:39:03 -08:00
2013-01-21 14:52:45 -08:00
2013-01-11 20:57:58 +09:00
2013-01-03 15:57:16 -08:00
2013-01-25 12:21:47 -08:00
2013-01-08 07:31:49 -08:00
2013-01-25 21:06:30 -08:00
2013-01-10 21:00:37 -08:00
2013-01-25 12:21:47 -08:00
2013-01-25 21:06:30 -08:00
2012-12-12 12:05:15 -08:00
2013-01-25 21:06:30 -08:00
2012-11-26 15:58:43 -08:00
2013-01-15 10:45:26 -07:00
2013-01-21 14:52:45 -08:00
2013-01-25 21:06:30 -08:00
2012-12-18 09:58:09 -08:00
2013-01-11 11:39:04 -08:00
2013-01-17 12:11:27 -08:00
2012-10-25 12:02:11 -07:00
2013-01-22 11:41:58 -08:00
2013-01-25 12:21:48 -08:00
2013-01-18 12:02:52 -08:00
2013-01-03 15:57:01 -08:00
2012-11-16 08:14:18 -08:00
2012-11-16 08:14:18 -08:00