x86, MCE: Robustify mcheck_init_device
authorBorislav Petkov <bp@suse.de>
Fri, 20 Jun 2014 21:16:45 +0000 (23:16 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 24 Jun 2014 13:17:01 +0000 (15:17 +0200)
commit27c934158c5be0bebfb2970da521b9d9efc0058b
treee943e5c07306850caca97f81c8c387b826c7e2f8
parent38356c1fbd8cd0f44a32ede2c97f0eb639d06613
x86, MCE: Robustify mcheck_init_device

BorisO reports that misc_register() fails often on xen. The current code
unregisters the CPU hotplug notifier in that case. If then a CPU is
offlined and onlined back again, we end up with a second timer running
on that CPU, leading to soft lockups and system hangs.

So let's leave the hotcpu notifier always registered - even if
mce_device_create failed for some cores and never unreg it so that we
can deal with the timer handling accordingly.

Reported-and-Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: http://lkml.kernel.org/r/1403274493-1371-1-git-send-email-boris.ostrovsky@oracle.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/mcheck/mce.c
This page took 0.02366 seconds and 5 git commands to generate.