We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcbfb58 commit 56961c6Copy full SHA for 56961c6
arch/arm64/kvm/arm.c
@@ -2112,11 +2112,11 @@ static int finalize_hyp_mode(void)
2112
return 0;
2113
2114
/*
2115
- * Exclude HYP BSS from kmemleak so that it doesn't get peeked
2116
- * at, which would end badly once the section is inaccessible.
2117
- * None of other sections should ever be introspected.
+ * Exclude HYP sections from kmemleak so that they don't get peeked
+ * at, which would end badly once inaccessible.
2118
*/
2119
kmemleak_free_part(__hyp_bss_start, __hyp_bss_end - __hyp_bss_start);
+ kmemleak_free_part(__va(hyp_mem_base), hyp_mem_size);
2120
return pkvm_drop_host_privileges();
2121
}
2122
0 commit comments