[PATCH v2] KVM: arm64: Fix NULL pointer access issue
Marc Zyngier
maz at kernel.org
Mon Sep 15 03:49:14 PDT 2025
On Tue, 02 Sep 2025 11:48:25 +0800, Yingchao Deng wrote:
> When linux is booted in EL1, macro "host_data_ptr()" is a wrapper that
> resolves to "&per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)",
> is_hyp_mode_available() return false during kvm_arm_init, the per-CPU base
> pointer __kvm_nvhe_kvm_arm_hyp_percpu_base[cpu] remains uninitialized.
> Consequently, any access via per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)
> will result in a NULL pointer.
>
> [...]
Applied to next, thanks!
[1/1] KVM: arm64: Fix NULL pointer access issue
commit 27d2b47eef033f1fc6c0452dc1017e43dad5fe14
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list