diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index f0e282244752..86cbee644a39 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -2139,11 +2139,11 @@ static int finalize_hyp_mode(void) return 0; /* - * Exclude HYP BSS from kmemleak so that it doesn't get peeked - * at, which would end badly once the section is inaccessible. - * None of other sections should ever be introspected. + * Exclude HYP BSS and DATA from kmemleak so that they don't get peeked + * at, which would end badly once the sections are inaccessible. */ kmemleak_free_part(__hyp_bss_start, __hyp_bss_end - __hyp_bss_start); + kmemleak_free_part(__hyp_data_start, __hyp_data_end - __hyp_data_start); return pkvm_drop_host_privileges(); }