From: James Morse Date: Thu, 24 Jan 2019 16:32:56 +0000 (+0000) Subject: arm64: hyp-stub: Forbid kprobing of the hyp-stub X-Git-Tag: v4.19.20~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f40ebe14b97154c303e46294fc95da9fe38334ae;p=platform%2Fkernel%2Flinux-rpi3.git arm64: hyp-stub: Forbid kprobing of the hyp-stub commit 8fac5cbdfe0f01254d9d265c6aa1a95f94f58595 upstream. The hyp-stub is loaded by the kernel's early startup code at EL2 during boot, before KVM takes ownership later. The hyp-stub's text is part of the regular kernel text, meaning it can be kprobed. A breakpoint in the hyp-stub causes the CPU to spin in el2_sync_invalid. Add it to the __hyp_text. Signed-off-by: James Morse Cc: stable@vger.kernel.org Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/arm64/kernel/hyp-stub.S index e1261fb..17f325b 100644 --- a/arch/arm64/kernel/hyp-stub.S +++ b/arch/arm64/kernel/hyp-stub.S @@ -28,6 +28,8 @@ #include .text + .pushsection .hyp.text, "ax" + .align 11 ENTRY(__hyp_stub_vectors)