linux/arch/loongarch
Bibo Mao 6bcfb7f46d LoongArch: KVM: Fix base address calculation in kvm_eiointc_regs_access()
In function kvm_eiointc_regs_access(), the register base address is
caculated from array base address plus offset, the offset is absolute
value from the base address. The data type of array base address is
u64, it should be converted into the "void *" type and then plus the
offset.

Cc: <stable@vger.kernel.org>
Fixes: d3e43a1f34 ("LoongArch: KVM: Use 64-bit register definition for EIOINTC").
Reported-by: Aurelien Jarno <aurel32@debian.org>
Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1131431
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2026-03-26 14:29:09 +08:00
..
boot LoongArch: dts: loongson-2k1000: Add nand controller support 2026-02-10 19:31:33 +08:00
configs LoongArch changes for v6.19 2025-12-13 05:44:03 +12:00
crypto loongarch/crc32: expose CRC32 functions through lib 2024-12-01 17:23:01 -08:00
include LoongArch: vDSO: Emit GNU_EH_FRAME correctly 2026-03-26 14:29:09 +08:00
kernel LoongArch: vDSO: Emit GNU_EH_FRAME correctly 2026-03-26 14:29:09 +08:00
kvm LoongArch: KVM: Fix base address calculation in kvm_eiointc_regs_access() 2026-03-26 14:29:09 +08:00
lib LoongArch: Adjust misc routines for 32BIT/64BIT 2025-12-08 18:09:17 +08:00
mm LoongArch changes for v7.0 2026-02-14 12:47:15 -08:00
net LoongArch: BPF: Make arch_protect_bpf_trampoline() return 0 2026-03-16 10:36:01 +08:00
pci LoongArch: Workaround LS2K/LS7A GPU DMA hang bug 2026-03-26 14:29:09 +08:00
power LoongArch: Adjust misc routines for 32BIT/64BIT 2025-12-08 18:09:17 +08:00
vdso LoongArch: vDSO: Emit GNU_EH_FRAME correctly 2026-03-26 14:29:09 +08:00
Kbuild LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
Kconfig LoongArch: Only use SC.Q when supported by the assembler 2026-03-16 10:36:00 +08:00
Kconfig.debug LoongArch: Only allow OBJTOOL & ORC unwinder if toolchain supports -mthin-add-sub 2024-06-21 10:18:40 +08:00
Makefile LoongArch: Adjust default config files for 32BIT/64BIT 2025-12-08 18:09:17 +08:00