linux-stable/arch/riscv
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
..
boot riscv: dts: sophgo: fix DMA data-width configuration for CV18xx 2025-05-22 14:29:35 +02:00
configs
crypto crypto: lib/Kconfig - Hide arch options from user 2025-05-02 07:59:32 +02:00
errata RISC-V: errata: Use medany for relocatable builds 2025-04-10 14:39:32 +02:00
include riscv: use lw when reading int cpu in asm_per_cpu 2025-09-09 18:58:26 +02:00
kernel riscv: use lw when reading int cpu in new_vmalloc_check 2025-09-09 18:58:26 +02:00
kvm RISC-V: KVM: fix stack overrun when loading vlenb 2025-09-04 15:31:52 +02:00
lib
mm mm/ptdump: take the memory hotplug lock inside ptdump_walk_pgd() 2025-08-20 18:30:55 +02:00
net riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id 2025-09-09 18:58:26 +02:00
purgatory riscv/purgatory: 4B align purgatory_start 2025-04-10 14:39:33 +02:00
tools
Kbuild
Kconfig riscv: Only allow LTO with CMODEL_MEDANY 2025-09-09 18:58:26 +02:00
Kconfig.debug
Kconfig.errata
Kconfig.socs
Kconfig.vendor
Makefile
Makefile.postlink