lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-bebd024e4815b1a170fcd21ead9c2222b23ce9e6@git.kernel.org>
Date:   Thu, 28 Mar 2019 05:39:18 -0700
From:   tip-bot for Thomas Gleixner <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     michael.h.kelley@...rosoft.com, jkosina@...e.cz,
        linux-kernel@...r.kernel.org, luto@...nel.org, riel@...riel.com,
        kys@...rosoft.com, mingo@...nel.org, mojha@...eaurora.org,
        Tianyu.Lan@...rosoft.com, peterz@...radead.org, hpa@...or.com,
        jpoimboe@...hat.com, tglx@...utronix.de,
        torvalds@...ux-foundation.org, bp@...en8.de,
        konrad.wilk@...cle.com, gregkh@...uxfoundation.org
Subject: [tip:smp/urgent] x86/smp: Enforce CONFIG_HOTPLUG_CPU when SMP=y

Commit-ID:  bebd024e4815b1a170fcd21ead9c2222b23ce9e6
Gitweb:     https://git.kernel.org/tip/bebd024e4815b1a170fcd21ead9c2222b23ce9e6
Author:     Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Tue, 26 Mar 2019 17:36:06 +0100
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Thu, 28 Mar 2019 13:34:58 +0100

x86/smp: Enforce CONFIG_HOTPLUG_CPU when SMP=y

The SMT disable 'nosmt' command line argument is not working properly when
CONFIG_HOTPLUG_CPU is disabled. The teardown of the sibling CPUs which are
required to be brought up due to the MCE issues, cannot work. The CPUs are
then kept in a half dead state.

As the 'nosmt' functionality has become popular due to the speculative
hardware vulnerabilities, the half torn down state is not a proper solution
to the problem.

Enforce CONFIG_HOTPLUG_CPU=y when SMP is enabled so the full operation is
possible.

Reported-by: Tianyu Lan <Tianyu.Lan@...rosoft.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Acked-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Konrad Wilk <konrad.wilk@...cle.com>
Cc: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Mukesh Ojha <mojha@...eaurora.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Jiri Kosina <jkosina@...e.cz>
Cc: Rik van Riel <riel@...riel.com>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Micheal Kelley <michael.h.kelley@...rosoft.com>
Cc: "K. Y. Srinivasan" <kys@...rosoft.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Borislav Petkov <bp@...en8.de>
Cc: K. Y. Srinivasan <kys@...rosoft.com>
Cc: stable@...r.kernel.org
Link: https://lkml.kernel.org/r/20190326163811.598166056@linutronix.de

---
 arch/x86/Kconfig | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index c1f9b3cf437c..5ad92419be19 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2217,14 +2217,8 @@ config RANDOMIZE_MEMORY_PHYSICAL_PADDING
 	   If unsure, leave at the default value.
 
 config HOTPLUG_CPU
-	bool "Support for hot-pluggable CPUs"
+	def_bool y
 	depends on SMP
-	---help---
-	  Say Y here to allow turning CPUs off and on. CPUs can be
-	  controlled through /sys/devices/system/cpu.
-	  ( Note: power management support will enable this option
-	    automatically on SMP systems. )
-	  Say N if you want to disable CPU hotplug.
 
 config BOOTPARAM_HOTPLUG_CPU0
 	bool "Set default setting of cpu0_hotpluggable"

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ