ANDROID: KVM: arm64: Ignore modules with empty .hyp.text section
Modules with an empty '.hyp.text' section do not contain any EL2 code and should therefore be ignored for the purposes of hypervisor module loading. Failing to ignore such modules will likely result in a later loading failure due to the absence of '.hyp.reloc', which is not present for non-hypervisor modules. Don't bother parsing the other '.hyp.*' sections for modules with an empty '.hyp.text' section and return early success to allow the module to load as a normal kernel module. Fixes: ace50253 ("ANDROID: KVM: arm64: Resolve hyp module addresses using ELF sections") Signed-off-by:Will Deacon <will@kernel.org> Signed-off-by:
Will Deacon <willdeacon@google.com> Bug: 261855285 Change-Id: Idc24f95881c520b40038f77cd5af5ccc1d23624f
Loading
Please sign in to comment