]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: hyp-stub: Forbid kprobing of the hyp-stub
authorJames Morse <james.morse@arm.com>
Thu, 24 Jan 2019 16:32:56 +0000 (16:32 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 1 Feb 2019 14:10:01 +0000 (14:10 +0000)
commita430fbe9f758b03a6096545055f2157bad846c8e
tree0dbe05cf87c553864d3632457cb5dce8867e23d4
parent670299bd5e419116381f0d28692b7b4eb889d2f3
arm64: hyp-stub: Forbid kprobing of the hyp-stub

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 <james.morse@arm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/hyp-stub.S