Masanori ITOH
9cb6e10851
percpu: fix list_head init bug in __percpu_counter_init()
commit 8474b591fa upstream.
WARNING: at lib/list_debug.c:26 __list_add+0x3f/0x81()
Hardware name: Express5800/B120a [N8400-085]
list_add corruption. next->prev should be prev (ffffffff81a7ea00), but was dead000000200200. (next=ffff88080b872d58).
Modules linked in: aoe ipt_MASQUERADE iptable_nat nf_nat autofs4 sunrpc bridge 8021q garp stp llc ipv6 cpufreq_ondemand acpi_cpufreq freq_table dm_round_robin dm_multipath kvm_intel kvm uinput lpfc scsi_transport_fc igb ioatdma scsi_tgt i2c_i801 i2c_core dca iTCO_wdt iTCO_vendor_support pcspkr shpchp megaraid_sas [last unloaded: aoe]
Pid: 54, comm: events/3 Tainted: G W 2.6.34-vanilla1 #1
Call Trace:
[<ffffffff8104bd77>] warn_slowpath_common+0x7c/0x94
[<ffffffff8104bde6>] warn_slowpath_fmt+0x41/0x43
[<ffffffff8120fd2e>] __list_add+0x3f/0x81
[<ffffffff81212a12>] __percpu_counter_init+0x59/0x6b
[<ffffffff810d8499>] bdi_init+0x118/0x17e
[<ffffffff811f2c50>] blk_alloc_queue_node+0x79/0x143
[<ffffffff811f2d2b>] blk_alloc_queue+0x11/0x13
[<ffffffffa02a931d>] aoeblk_gdalloc+0x8e/0x1c9 [aoe]
[<ffffffffa02aa655>] aoecmd_sleepwork+0x25/0xa8 [aoe]
[<ffffffff8106186c>] worker_thread+0x1a9/0x237
[<ffffffffa02aa630>] ? aoecmd_sleepwork+0x0/0xa8 [aoe]
[<ffffffff81065827>] ? autoremove_wake_function+0x0/0x39
[<ffffffff810616c3>] ? worker_thread+0x0/0x237
[<ffffffff810653ad>] kthread+0x7f/0x87
[<ffffffff8100aa24>] kernel_thread_helper+0x4/0x10
[<ffffffff8106532e>] ? kthread+0x0/0x87
[<ffffffff8100aa20>] ? kernel_thread_helper+0x0/0x10
It's because there is no initialization code for a list_head contained in
the struct backing_dev_info under CONFIG_HOTPLUG_CPU, and the bug comes up
when block device drivers calling blk_alloc_queue() are used. In case of
me, I got them by using aoe.
Signed-off-by: Masanori Itoh <itoumsn@nttdata.co.jp>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-12-09 13:26:37 -08:00
..
2008-07-25 10:53:26 -07:00
2008-04-18 22:17:17 -04:00
2009-09-21 15:14:55 +02:00
2009-01-04 15:53:34 -08:00
2007-10-20 00:26:10 +02:00
2009-07-29 19:10:35 -07:00
2008-07-24 10:47:33 -07:00
2009-08-21 09:26:15 -07:00
2008-06-06 11:29:10 -07:00
2008-12-16 18:40:32 +01:00
2009-01-06 15:59:11 -08:00
2009-06-19 14:58:13 +02:00
2008-07-28 15:05:23 +02:00
2009-06-11 19:27:07 +03:00
2008-02-03 17:48:52 +02:00
2008-07-12 08:22:32 -05:00
2009-04-12 16:10:51 +02:00
2009-10-11 11:20:58 -07:00
2009-06-16 19:47:47 -07:00
2009-08-07 10:39:56 -07:00
2009-09-24 07:21:05 -07:00
2009-09-24 07:21:05 -07:00
2009-02-19 13:36:55 -08:00
2008-05-05 16:47:14 +10:00
2008-06-12 10:47:58 +02:00
2010-01-18 10:19:33 -08:00
2009-07-28 13:45:22 -07:00
2009-06-12 21:47:04 +09:30
2009-10-11 11:20:58 -07:00
2009-01-01 10:12:19 +10:30
2008-04-29 08:11:16 -07:00
2010-05-12 14:57:00 -07:00
2009-06-18 13:04:05 -07:00
2009-06-16 19:47:53 -07:00
2009-06-16 19:47:51 -07:00
2007-10-19 11:53:41 -07:00
2010-03-15 08:49:37 -07:00
2009-09-15 09:37:12 -07:00
2008-07-26 12:00:07 -07:00
2008-10-16 11:21:33 -07:00
2007-10-17 08:42:50 -07:00
2009-07-17 09:11:31 +10:00
2007-07-31 15:39:39 -07:00
2009-06-15 13:27:38 +10:00
2009-10-27 16:42:42 +11:00
2008-08-01 08:39:34 -05:00
2009-07-01 22:28:44 +02:00
2009-03-06 12:48:55 +01:00
2009-01-06 10:44:30 -08:00
2009-04-16 16:17:09 -07:00
2009-06-15 21:30:24 -07:00
2008-01-24 20:40:05 -08:00
2010-04-01 15:58:56 -07:00
2008-12-25 11:01:42 +11:00
2008-07-25 10:53:29 -07:00
2009-08-27 12:25:26 -07:00
2009-03-13 01:32:36 +01:00
2010-04-01 15:58:56 -07:00
2009-03-26 22:45:23 -07:00
2008-10-13 10:10:37 -07:00
2010-12-09 13:26:37 -08:00
2008-07-26 12:00:07 -07:00
2009-01-06 15:59:11 -08:00
2009-01-06 17:10:04 -08:00
2009-11-19 18:11:29 +00:00
2008-07-30 16:29:19 -07:00
2008-07-28 16:30:20 -07:00
2010-01-18 10:19:33 -08:00
2009-06-16 19:47:56 -07:00
2008-02-08 09:22:31 -08:00
2008-01-30 13:33:00 +01:00
2009-07-31 12:28:45 +02:00
2008-07-26 12:00:10 -07:00
2009-01-30 15:47:34 +01:00
2009-01-08 08:31:14 -08:00
2007-10-19 11:53:43 -07:00
2008-10-23 11:42:20 -05:00
2009-11-18 17:18:13 -08:00
2009-08-21 10:36:03 +02:00
2008-07-26 12:00:10 -07:00
2008-07-22 19:24:31 +10:00
2008-07-08 02:37:54 -07:00
2008-07-08 02:38:27 -07:00
2008-07-08 02:38:09 -07:00
2009-10-01 16:11:16 -07:00