]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitc064750e35cb63f5ec9bb8736de40a7279408e6d
treebe6afb93734b3fe335439a2e62d2d03dcf51288e
parent419f18409f345f0ddb710859a2f8d1c2db82eda8
arm64: hyp-stub: Forbid kprobing of the hyp-stub

BugLink: https://bugs.launchpad.net/bugs/1837664
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 <james.morse@arm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm64/kernel/hyp-stub.S