linux/arch/riscv
Radim Krčmář f4ea67a722 riscv: use lw when reading int cpu in asm_per_cpu
REG_L 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: be97d0db5f ("riscv: VMAP_STACK overflow detection thread-safe")
Cc: stable@vger.kernel.org
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Link: https://lore.kernel.org/r/20250725165410.2896641-5-rkrcmar@ventanamicro.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2025-09-05 15:31:24 -06:00
..
boot soc: new SoC support for 6.17 2025-07-29 11:17:24 -07:00
configs soc: defconfig updates for 6.16 2025-07-29 11:27:41 -07:00
crypto lib/crypto: riscv/sha512: Migrate optimized SHA-512 code to library 2025-06-30 09:26:19 -07:00
errata RISC-V: errata: Use medany for relocatable builds 2025-03-26 15:56:37 -07:00
include riscv: use lw when reading int cpu in asm_per_cpu 2025-09-05 15:31:24 -06:00
kernel riscv: use lw when reading int cpu in new_vmalloc_check 2025-09-05 15:30:45 -06:00
kvm RISC-V: KVM: Avoid re-acquiring memslot in kvm_riscv_gstage_map() 2025-07-28 22:28:31 +05:30
lib Crypto library updates for 6.17 2025-07-28 17:58:52 -07:00
mm Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
net riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id 2025-09-05 15:31:20 -06:00
purgatory Crypto library updates for 6.17 2025-07-28 17:58:52 -07:00
tools riscv: Stop considering R_RISCV_NONE as bad relocations 2025-07-16 08:13:55 -07:00
Kbuild riscv: migrate to the generic rule for built-in DTB 2025-03-18 13:30:13 +00:00
Kconfig riscv: Only allow LTO with CMODEL_MEDANY 2025-09-04 16:25:46 -06:00
Kconfig.debug riscv: Add tests for riscv module loading 2023-11-07 14:59:32 -08:00
Kconfig.errata riscv: Add ghostwrite vulnerability 2025-01-18 12:33:39 -08:00
Kconfig.socs riscv: add Andes SoC family Kconfig support 2025-07-21 16:51:52 +02:00
Kconfig.vendor riscv: Add SiFive xsfvqmaccdod and xsfvqmaccqoq vendor extensions 2025-05-08 11:01:43 -07:00
Makefile riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS 2025-06-05 11:09:30 -07:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00