Re: [PATCH v4] KVM: arm64: nv: Keep the shadow S2 MMUs at fixed addresses

Karl Mehltretter <[email protected]>
Newsgroups dev.linux.lists.sashiko-reviews,dev.linux.lists.kvmarm
Message-ID <[email protected]>
On Fri, Aug 07, 2026 at 08:17:08PM +0100, [email protected] wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
> 
> New issues:
> - [Medium] The `kvm->arch.nested_mmus` array is leaked if VM creation fails after `kvm_arch_init_vm()` completes successfully.
> 

This issue is valid. generic VM-creation failures after that point can
call kvm_arch_destroy_vm() without freeing it. I’ll add the missing 
kvfree(kvm->arch.nested_mmus) there in v5.

Thanks,
Karl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.