Re: [PATCH v2 3/4] arm64: hyp-stub: Forbid kprobing of the hyp-stub

2019-02-01 Thread James Morse
Hi Christoffer, On 31/01/2019 08:04, Christoffer Dall wrote: > On Thu, Jan 24, 2019 at 04:32:56PM +, James Morse wrote: >> 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 tex

Re: [PATCH v2 3/4] arm64: hyp-stub: Forbid kprobing of the hyp-stub

2019-01-31 Thread Christoffer Dall
On Thu, Jan 24, 2019 at 04:32:56PM +, James Morse wrote: > 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 cau

[PATCH v2 3/4] arm64: hyp-stub: Forbid kprobing of the hyp-stub

2019-01-24 Thread James Morse
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. Si