Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/percpu/64: Remove fixed_percpu_data

Now that the stack protector canary value is a normal percpu variable,
fixed_percpu_data is unused and can be removed.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250123190747.745588-10-brgerst@gmail.com

authored by

Brian Gerst and committed by
Ingo Molnar
b5c4f953 9d7de2aa

-14
-8
arch/x86/include/asm/processor.h
··· 421 421 } __aligned(IRQ_STACK_SIZE); 422 422 423 423 #ifdef CONFIG_X86_64 424 - struct fixed_percpu_data { 425 - char gs_base[40]; 426 - unsigned long reserved; 427 - }; 428 - 429 - DECLARE_PER_CPU_FIRST(struct fixed_percpu_data, fixed_percpu_data) __visible; 430 - DECLARE_INIT_PER_CPU(fixed_percpu_data); 431 - 432 424 static inline unsigned long cpu_kernelmode_gs_base(int cpu) 433 425 { 434 426 #ifdef CONFIG_SMP
-4
arch/x86/kernel/cpu/common.c
··· 2023 2023 EXPORT_PER_CPU_SYMBOL(const_pcpu_hot); 2024 2024 2025 2025 #ifdef CONFIG_X86_64 2026 - DEFINE_PER_CPU_FIRST(struct fixed_percpu_data, 2027 - fixed_percpu_data) __aligned(PAGE_SIZE) __visible; 2028 - EXPORT_PER_CPU_SYMBOL_GPL(fixed_percpu_data); 2029 - 2030 2026 static void wrmsrl_cstar(unsigned long val) 2031 2027 { 2032 2028 /*
-1
arch/x86/kernel/vmlinux.lds.S
··· 477 477 */ 478 478 #define INIT_PER_CPU(x) init_per_cpu__##x = ABSOLUTE(x) 479 479 INIT_PER_CPU(gdt_page); 480 - INIT_PER_CPU(fixed_percpu_data); 481 480 INIT_PER_CPU(irq_stack_backing_store); 482 481 483 482 #ifdef CONFIG_MITIGATION_UNRET_ENTRY
-1
arch/x86/tools/relocs.c
··· 830 830 * __per_cpu_load 831 831 * 832 832 * The "gold" linker incorrectly associates: 833 - * init_per_cpu__fixed_percpu_data 834 833 * init_per_cpu__gdt_page 835 834 */ 836 835 static int is_percpu_sym(ElfW(Sym) *sym, const char *symname)