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>] [day] [month] [year] [list]
Message-ID: <20240419165224.73859-1-brgerst@gmail.com>
Date: Fri, 19 Apr 2024 12:52:24 -0400
From: Brian Gerst <brgerst@...il.com>
To: linux-kernel@...r.kernel.org,
	x86@...nel.org
Cc: Ingo Molnar <mingo@...nel.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Borislav Petkov <bp@...en8.de>,
	Brian Gerst <brgerst@...il.com>
Subject: [PATCH] x86/smp: Remove dead call to switch_gdt_and_percpu_base()

smpboot.c is only built when CONFIG_SMP is set, so the call to
switch_gdt_and_percpu_base() is dead code.

Signed-off-by: Brian Gerst <brgerst@...il.com>
---
 arch/x86/kernel/smpboot.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index a58109583c47..f752047688ab 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1128,12 +1128,6 @@ void arch_thaw_secondary_cpus_end(void)
  */
 void __init native_smp_prepare_boot_cpu(void)
 {
-	int me = smp_processor_id();
-
-	/* SMP handles this from setup_per_cpu_areas() */
-	if (!IS_ENABLED(CONFIG_SMP))
-		switch_gdt_and_percpu_base(me);
-
 	native_pv_lock_init();
 }
 

base-commit: 7fcd76de8a7bc12e930ef383a157ce99d711715d
-- 
2.44.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ