On Sat, Apr 15, 2017 at 07:01:23PM +0200, Thomas Gleixner wrote: > From: Sebastian Andrzej Siewior <bige...@linutronix.de> > > If intel_snb_check_microcode() is invoked via > microcode_init -> perf_check_microcode -> intel_snb_check_microcode > > then get_online_cpus() is invoked nested. This works with the current > implementation of get_online_cpus() but prevents converting it to a percpu > rwsem. > > intel_snb_check_microcode() is also invoked from intel_sandybridge_quirk() > unprotected. > > Drop get_online_cpus() from intel_snb_check_microcode() and add it to > intel_sandybridge_quirk() so both call sites are protected. > > Signed-off-by: Sebastian Andrzej Siewior <bige...@linutronix.de> > Signed-off-by: Thomas Gleixner <t...@linutronix.de> > Cc: Peter Zijlstra <pet...@infradead.org> > Cc: Borislav Petkov <b...@alien8.de> > Cc: x...@kernel.org
Acked-by: Borislav Petkov <b...@suse.de> -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.