]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Map hyp text as RO and dump instr on panic
authorMostafa Saleh <smostafa@google.com>
Tue, 9 Sep 2025 13:36:31 +0000 (13:36 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 15 Sep 2025 12:04:23 +0000 (13:04 +0100)
commit6f1ece1e868839cf81a28c77e19420ff57df7ecf
tree97c536bf24791677da91d2a245d79b8a5d2196f7
parent92b7624fe052ffb0b7b70d96cd514e02e91664a8
KVM: arm64: Map hyp text as RO and dump instr on panic

Map the hyp text section as RO, there are no secrets there
and that allows the kernel extract info for debugging.

As in case of panic we can now dump the faulting instructions
similar to the kernel.

Signed-off-by: Mostafa Saleh <smostafa@google.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/handle_exit.c
arch/arm64/kvm/hyp/nvhe/setup.c