Revert "ANDROID: KVM: arm64: Prevent kmemleak from accessing .hyp.data"

This reverts commit 8ee914a539.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I0892eaf93fe03af579974fef5605be79194e82a9
This commit is contained in:
Will Deacon
2022-07-22 15:38:24 +01:00
parent 95b22fd138
commit c9be48501b

View File

@@ -2177,7 +2177,6 @@ static int finalize_hyp_mode(void)
* at, which would end badly once 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);
kmemleak_free_part(__va(hyp_mem_base), hyp_mem_size);
return pkvm_drop_host_privileges();
}