]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpu/hotplug: Set CPU_SMT_NOT_SUPPORTED early
authorThomas Gleixner <tglx@linutronix.de>
Fri, 13 Jul 2018 14:23:24 +0000 (16:23 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 11 Aug 2018 00:44:45 +0000 (20:44 -0400)
commitce9a09600b38c083ba7a533f661546f528b91499
treeef56cf3687bebd8c4c5dd0636773831abfe14fc6
parent4d366d35c7c13171ca3a508f26efcf1a57093f1d
cpu/hotplug: Set CPU_SMT_NOT_SUPPORTED early

The CPU_SMT_NOT_SUPPORTED state is set (if the processor does not support
SMT) when the sysfs SMT control file is initialized.

That was fine so far as this was only required to make the output of the
control file correct and to prevent writes in that case.

With the upcoming l1tf command line parameter, this needs to be set up
before the L1TF mitigation selection and command line parsing happens.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20180713142323.121795971@linutronix.de
Orabug: 28220674
CVE: CVE-2018-3620

(cherry picked from commit fee0aede6f4739c87179eca76136f83210953b86)

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Conflicts:
arch/x86/kernel/cpu/bugs.c
kernel/cpu.c
Contextual: Modified bugs_64.c instead of bugs.c
arch/x86/kernel/cpu/bugs_64.c
include/linux/cpu.h
kernel/cpu.c