linux-stable/arch
Radim Krčmář 8352fdfc04 riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id
commit 8a16586fa7 upstream.

emit_ld is wrong, because thread_info.cpu is 32-bit, not xlen-bit wide.
The struct currently has a hole after cpu, so little endian accesses
seemed fine.

Fixes: 2ddec2c80b ("riscv, bpf: inline bpf_get_smp_processor_id()")
Cc: stable@vger.kernel.org
Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/r/20250812090256.757273-4-rkrcmar@ventanamicro.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-09 18:58:26 +02:00
..
alpha
arc
arm ARM: tegra: Use I/O memcpy to write to IRAM 2025-08-20 18:30:24 +02:00
arm64 arm64: ftrace: fix unreachable PLT for ftrace_caller in init_module with CONFIG_DYNAMIC_FTRACE 2025-09-09 18:58:15 +02:00
csky
hexagon
loongarch LoongArch: vDSO: Remove -nostdlib complier flag 2025-09-09 18:58:05 +02:00
m68k m68k: Fix lost column on framebuffer debug console 2025-08-28 16:30:54 +02:00
microblaze
mips mips: lantiq: xway: sysctrl: rename the etop node 2025-09-04 15:31:43 +02:00
nios2
openrisc
parisc parisc: Update comments in make_insert_tlb 2025-08-28 16:31:00 +02:00
powerpc powerpc/kvm: Fix ifdef to remove build warning 2025-09-04 15:31:45 +02:00
riscv riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id 2025-09-09 18:58:26 +02:00
s390 s390/hypfs: Enable limited access during lockdown 2025-08-28 16:31:16 +02:00
sh sh: Do not use hyphen in exported variable name 2025-08-15 12:13:56 +02:00
sparc
um um: Re-evaluate thread flags repeatedly 2025-08-20 18:30:32 +02:00
x86 x86/mm/64: define ARCH_PAGE_TABLE_SYNC_MASK and arch_sync_kernel_mappings() 2025-09-09 18:58:15 +02:00
xtensa
.gitignore
Kconfig