diff options
| author | James Morse <james.morse@arm.com> | 2019-01-24 16:32:56 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-06 19:43:07 +0100 |
| commit | 7685bb0efb0c9ecec18abe9c6226243014222344 (patch) | |
| tree | 9f555256c2420f2b69922846f68e6b6b81f11518 /include/linux/debugobjects.h | |
| parent | 1472585f511fc3a6e95f1be1d6acf87fbb4cde43 (diff) | |
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 <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>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
