linux-yocto/arch/x86
Uros Bizjak 757a9e78a1 x86/vdso: Fix output operand size of RDPID
[ Upstream commit ac9c408ed19d535289ca59200dd6a44a6a2d6036 ]

RDPID instruction outputs to a word-sized register (64-bit on x86_64 and
32-bit on x86_32). Use an unsigned long variable to store the correct size.

LSL outputs to 32-bit register, use %k operand prefix to always print the
32-bit name of the register.

Use RDPID insn mnemonic while at it as the minimum binutils version of
2.30 supports it.

  [ bp: Merge two patches touching the same function into a single one. ]

Fixes: ffebbaedc8 ("x86/vdso: Introduce helper functions for CPU and node number")
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250616095315.230620-1-ubizjak@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 11:56:25 +02:00
..
boot x86/sev: Evict cache lines during SNP memory validation 2025-08-15 12:05:12 +02:00
coco x86/tdx: Fix "in-kernel MMIO" check 2024-10-17 15:21:29 +02:00
configs
crypto crypto: x86/aegis128 - access 32-bit arguments as 32-bit 2024-12-14 19:53:58 +01:00
entry x86/bugs: Rename MDS machinery to something more generic 2025-07-10 15:59:53 +02:00
events perf/x86/intel: Fix crash in icl_update_topdown_event() 2025-08-28 16:26:10 +02:00
hyperv x86/hyperv: Fix usage of cpu_online_mask to get valid cpu 2025-08-15 12:04:46 +02:00
ia32
include x86/vdso: Fix output operand size of RDPID 2025-10-15 11:56:25 +02:00
kernel x86/vmscape: Add old Intel CPUs to affected list 2025-09-11 17:19:16 +02:00
kvm KVM: SVM: Sync TPR from LAPIC into VMCB::V_TPR even if AVIC is active 2025-09-25 10:58:53 +02:00
lib x86/its: Add support for ITS-safe return thunk 2025-05-18 08:21:26 +02:00
math-emu
mm minmax: add a few more MIN_T/MAX_T users 2025-10-02 13:40:43 +02:00
net x86/its: FineIBT-paranoid vs ITS 2025-05-18 08:21:26 +02:00
pci PCI: Detect and trust built-in Thunderbolt chips 2024-12-14 19:54:47 +01:00
platform x86/pvh: Call C code via the kernel virtual mapping 2025-04-25 10:44:01 +02:00
power
purgatory x86/purgatory: Switch to the position-independent small code model 2024-06-12 11:03:12 +02:00
ras
realmode
tools x86/tools: Drop duplicate unlikely() definition in insn_decoder_test.c 2025-07-06 10:58:04 +02:00
um um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h 2025-07-06 10:57:55 +02:00
video
virt/vmx/tdx
xen Grab mm lock before grabbing pt lock 2025-02-21 13:49:59 +01:00
.gitignore
Kbuild
Kconfig x86/vmscape: Enable the mitigation 2025-09-11 17:19:15 +02:00
Kconfig.assembler
Kconfig.cpu x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6 2024-02-23 09:12:43 +01:00
Kconfig.debug x86/kconfig: Select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y 2024-06-12 11:03:50 +02:00
Makefile x86/boot: Compile boot code with -std=gnu11 too 2025-07-17 18:32:06 +02:00
Makefile_32.cpu
Makefile.um