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 7d0586f commit a6b22d1Copy full SHA for a6b22d1
arch/arm64/kvm/arm.c
@@ -2011,11 +2011,11 @@ static int finalize_hyp_mode(void)
2011
return 0;
2012
2013
/*
2014
- * Exclude HYP BSS from kmemleak so that it doesn't get peeked
2015
- * at, which would end badly once the section is inaccessible.
2016
- * 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.
2017
*/
2018
kmemleak_free_part(__hyp_bss_start, __hyp_bss_end - __hyp_bss_start);
+ kmemleak_free_part(__va(hyp_mem_base), hyp_mem_size);
2019
return pkvm_drop_host_privileges();
2020
}
2021
0 commit comments