Ingo Molnar
15c1247953
Revert "perf/x86/intel/uncore: Move uncore_box_init() out of driver initialization"
This reverts commit c05199e5a5
.
Vince Weaver reported the following crash while perf fuzzing:
[ 79.473121] kernel BUG at mm/vmalloc.c:1335!
[ 79.694391] Call Trace:
[ 79.696997] <IRQ>
[ 79.699090] [<ffffffff811b2130>] get_vm_area_caller+0x40/0x50
[ 79.705505] [<ffffffff81039f4d>] ? snb_uncore_imc_init_box+0x6d/0x90
[ 79.712414] [<ffffffff810635e5>] __ioremap_caller+0x195/0x350
[ 79.718610] [<ffffffff81039f4d>] ? snb_uncore_imc_init_box+0x6d/0x90
[ 79.725462] [<ffffffff81427f6b>] ? debug_object_activate+0x14b/0x1e0
[ 79.732346] [<ffffffff810637b7>] ioremap_nocache+0x17/0x20
[ 79.738283] [<ffffffff81039f4d>] snb_uncore_imc_init_box+0x6d/0x90
[ 79.744945] [<ffffffff81039cf7>] snb_uncore_imc_event_start+0xb7/0x110
[ 79.752020] [<ffffffff81039d97>] snb_uncore_imc_event_add+0x47/0x60
[ 79.758832] [<ffffffff81162cbb>] event_sched_in.isra.85+0xfb/0x330
[ 79.765519] [<ffffffff81162f5f>] group_sched_in+0x6f/0x1e0
[ 79.771481] [<ffffffff8101df1a>] ? native_sched_clock+0x2a/0x90
[ 79.777858] [<ffffffff811637bc>] __perf_event_enable+0x25c/0x2a0
[ 79.784418] [<ffffffff810f3e69>] ? tick_nohz_irq_exit+0x29/0x30
[ 79.790820] [<ffffffff8115ef30>] ? cpu_clock_event_start+0x40/0x40
[ 79.797546] [<ffffffff8115ef80>] remote_function+0x50/0x60
[ 79.803535] [<ffffffff810f8cd1>] flush_smp_call_function_queue+0x81/0x180
[ 79.810840] [<ffffffff810f9763>] generic_smp_call_function_single_interrupt+0x13/0x60
[ 79.819328] [<ffffffff8104b5e8>] smp_trace_call_function_single_interrupt+0x38/0xc0
[ 79.827614] [<ffffffff816de9be>] trace_call_function_single_interrupt+0x6e/0x80
[ 79.835465] <EOI>
[ 79.837543] [<ffffffff8156e8b5>] ? cpuidle_enter_state+0x65/0x160
[ 79.844377] [<ffffffff8156e8a1>] ? cpuidle_enter_state+0x51/0x160
[ 79.851015] [<ffffffff8156e9e7>] cpuidle_enter+0x17/0x20
[ 79.856791] [<ffffffff810b6e39>] cpu_startup_entry+0x399/0x440
[ 79.863165] [<ffffffff816c9ddb>] rest_init+0xbb/0xd0
The offending commit is clearly confused as it moves heavy initialization
work into IPI context.
Revert it.
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Yan, Zheng <zheng.z.yan@intel.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-06-09 11:44:37 +02:00
..
2015-04-24 08:23:45 -07:00
2015-04-20 10:19:03 -07:00
2015-06-09 11:44:37 +02:00
2015-04-14 14:37:47 -07:00
2015-04-06 09:24:09 +02:00
2014-06-04 16:53:57 -07:00
2014-10-20 14:18:45 +02:00
2014-12-23 10:43:35 +01:00
2014-05-23 10:47:19 -06:00
2014-11-12 21:17:27 +01:00
2015-03-17 09:25:29 +01:00
2015-03-06 08:32:58 +01:00
2013-09-25 14:07:57 +02:00
2014-12-13 12:42:51 -08:00
2014-01-21 16:19:47 -08:00
2014-10-17 13:40:51 -07:00
2015-03-23 11:14:17 +01:00
2015-02-24 15:58:06 +01:00
2014-01-06 21:25:18 -08:00
2015-04-13 13:23:34 -07:00
2015-02-23 18:37:13 +01:00
2015-04-13 13:23:34 -07:00
2015-04-18 11:42:49 -04:00
2015-04-21 09:33:10 -07:00
2014-09-24 14:47:39 +02:00
2015-04-11 10:40:02 +02:00
2015-04-26 17:57:38 -07:00
2014-11-11 17:57:46 +01:00
2015-01-20 11:38:33 +10:30
2015-02-04 12:10:42 +01:00
2015-06-02 09:39:40 +02:00
2015-06-02 09:39:40 +02:00
2015-06-02 09:39:40 +02:00
2013-02-27 13:38:57 -08:00
2015-02-12 18:54:13 -08:00
2014-12-03 15:14:30 +01:00
2013-09-25 14:23:07 +02:00
2015-05-20 11:58:26 +02:00
2014-10-28 12:01:08 +01:00
2015-03-06 08:32:58 +01:00
2014-09-19 13:08:43 +02:00
2015-03-23 11:14:17 +01:00
2015-03-23 11:14:17 +01:00
2014-09-13 18:38:29 +02:00
2015-03-05 15:25:05 +10:30
2015-04-08 09:02:13 +02:00
2013-10-19 19:45:35 -04:00
2012-07-26 15:07:20 +02:00
2014-10-14 02:18:21 +02:00
2015-04-08 09:01:54 +02:00
2014-01-03 14:37:13 +00:00
2015-04-14 16:48:59 -07:00
2014-12-10 12:49:39 +01:00
2014-05-21 10:22:59 -07:00
2014-12-22 15:40:49 +01:00
2014-12-16 14:08:17 +01:00
2014-12-16 14:08:17 +01:00
2015-04-18 11:42:49 -04:00
2014-12-01 14:08:58 -05:00
2013-07-14 19:36:56 -04:00
2015-04-03 15:26:15 +02:00
2014-07-31 08:05:42 -07:00
2014-10-17 13:40:55 -07:00
2014-04-24 10:26:38 +02:00
2014-07-28 15:25:40 -07:00
2013-08-09 07:54:00 -07:00
2015-04-14 16:49:02 -07:00
2014-04-10 19:51:32 -07:00
2014-06-04 16:53:57 -07:00
2014-01-06 21:25:18 -08:00
2014-06-04 16:53:57 -07:00
2015-04-11 13:08:53 +02:00
2015-01-20 12:50:14 +01:00
2015-04-01 17:02:43 +02:00
2012-09-05 10:52:25 +02:00
2015-03-24 19:42:38 +01:00
2015-04-26 17:57:38 -07:00
2015-05-06 11:22:03 +02:00
2015-03-23 11:14:17 +01:00
2015-04-27 15:49:30 +02:00
2014-09-15 17:53:35 -07:00
2015-04-01 14:08:09 +02:00
2015-03-07 11:12:43 +01:00
2015-04-01 13:17:39 +02:00
2014-07-16 12:29:36 -06:00
2015-02-12 18:54:13 -08:00
2014-11-04 20:13:28 +01:00
2015-04-13 13:31:32 -07:00
2015-04-18 11:31:11 -04:00
2014-05-05 16:07:44 -07:00
2015-04-14 13:36:04 -07:00
2013-01-22 10:08:00 -08:00
2015-03-31 10:01:17 +02:00
2015-03-04 06:16:21 +01:00
2013-08-06 14:20:18 -07:00
2013-08-02 16:17:47 -07:00
2014-10-17 13:40:52 -07:00
2014-10-17 13:40:52 -07:00
2013-07-31 14:25:51 +02:00
2015-03-06 23:05:39 +01:00
2015-03-23 11:14:17 +01:00
2015-01-22 21:45:07 +01:00
2013-09-30 19:55:51 +02:00
2012-11-13 15:48:27 -05:00
2013-07-16 15:14:48 -07:00
2015-04-14 13:58:48 -07:00
2014-02-19 17:12:24 +01:00
2014-01-06 21:25:18 -08:00
2015-01-23 10:53:52 +01:00
2015-03-23 11:14:17 +01:00
2015-03-06 08:32:58 +01:00
2014-11-04 20:43:14 +01:00
2014-08-01 15:09:45 -07:00
2014-11-10 10:46:35 +01:00
2015-03-27 09:45:06 +01:00
2014-11-11 15:14:30 -07:00
2015-02-13 21:21:41 -08:00
2015-03-23 10:14:00 +01:00