]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mcelog: Get rid of RCU remnants
authorBorislav Petkov <bp@suse.de>
Wed, 1 Nov 2017 16:47:54 +0000 (17:47 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 1 Nov 2017 20:24:36 +0000 (21:24 +0100)
commit9baeacc761a69039579774374c95a8f9d3bde91b
treec0be993507d8fd7276a853a2eac524809f87afeb
parent1b0a4aed39bd8e0d5944c290fc80e1b0fa34e0f7
x86/mcelog: Get rid of RCU remnants

Jeremy reported a suspicious RCU usage warning in mcelog.

/dev/mcelog is called in process context now as part of the notifier
chain and doesn't need any of the fancy RCU and lockless accesses which
it did in atomic context.

Axe it all in favor of a simple mutex synchronization which cures the
problem reported.

Fixes: 80ffaeb27966 ("x86/mce: Factor out and deprecate the /dev/mcelog driver")
Reported-by: Jeremy Cline <jcline@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-and-tested-by: Tony Luck <tony.luck@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: linux-edac@vger.kernel.org
Cc: Laura Abbott <labbott@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20171101164754.xzzmskl4ngrqc5br@pd.tnic
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1498969
arch/x86/kernel/cpu/mcheck/dev-mcelog.c