Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754686AbbFQCPI (ORCPT ); Tue, 16 Jun 2015 22:15:08 -0400 Received: from mga03.intel.com ([134.134.136.65]:44752 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752764AbbFQCPC (ORCPT ); Tue, 16 Jun 2015 22:15:02 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,629,1427785200"; d="scan'208";a="728865965" From: Rui Wang To: bp@suse.de, tony.luck@intel.com, gong.chen@intel.com Cc: linux-kernel@vger.kernel.org, Rui Wang Subject: MCE bug? Date: Wed, 17 Jun 2015 09:57:14 +0800 Message-Id: <1434506234-610-1-git-send-email-rui.y.wang@intel.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1845 Lines: 40 Hi Boris & Tony, While injecting MCEs using einj, I encountered a panic: [ 0.305697] mce: CPU supports 22 MCE banks [ 0.310288] BUG: unable to handle kernel NULL pointer dereference at 00000000 00000100 [ 0.319057] IP: [] __queue_work+0x32/0x370 [ 0.325398] PGD 0 [ 0.327656] Oops: 0000 [#1] SMP ... [ 0.484045] Call Trace: [ 0.486780] [] queue_work_on+0x2b/0x50 [ 0.492821] [] mce_schedule_work.part.16+0x29/0x30 [ 0.500020] [] machine_check_poll+0x249/0x260 [ 0.506733] [] __mcheck_cpu_init_generic+0x33/0x100 [ 0.514018] [] mcheck_cpu_init+0x161/0x4b0 [ 0.520443] [] identify_cpu+0x365/0x450 [ 0.526576] [] identify_boot_cpu+0x10/0x7e [ 0.532994] [] check_bugs+0x9/0x2d [ 0.538643] [] start_kernel+0x469/0x495 [ 0.544771] [] ? set_init_arg+0x55/0x55 [ 0.550900] [] ? early_idt_handlers+0x120/0x120 [ 0.557805] [] x86_64_start_reservations+0x2a/0x2c [ 0.565001] [] x86_64_start_kernel+0x13d/0x14c It happened after the machine rebooted (due to an injected fatal error). It tried to find leftover banks and then called mce_schedule_work() in machine_check_poll(), but it seemed too early and system_wq wasn't allocated yet, thus the NULL pointer. Is it a known problem? I'm based on Linux 4.1.0-rc3-7. Thanks Rui -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/